How to set up a local working version of TopTreeAnalysis - TopBrussels/TopTreeAnalysis GitHub Wiki
##check out TopTreeAnalysisBase (common code)
#mkdir TopBrussels
cd TopBrussels
git init TopTreeAnalysisBase
cd TopTreeAnalysisBase/
git remote add origin [email protected]:TopBrussels/TopTreeAnalysisBase.git
git fetch origin
Now checkout a branch (like CMSSW_53X)
git checkout -b <branch> origin/<branch>
Next you can compile with 'make'; this will create libTopTreeAna.so and libTopTreeAnaContent.so libraries and copy them to a ~/lib directory.
Analys-specific code should reside in TopTreeAnalysis. Unfortunately it seems difficult in GIT to check out separate subdirectories of a repository (there seems to be a possibility however, see https://www.kernel.org/pub/software/scm/git/docs/git-read-tree.html#_sparse_checkout). For now we can check out the whole TopTreeAnalysis package, and adapt in the Makefile which code to compile.
##check out TopTreeAnalysis (analysis-specific code)
cd ../TopBrussels
git init TopTreeAnalysis
cd TopTreeAnalysis
git remote add origin [email protected]:TopBrussels/TopTreeAnalysis.git
git fetch origin
Now checkout a branch (like CMSSW_53X)
git checkout -b <branch> origin/<branch>
If you are only interested in compiling your analysis-specific code, you should adapt the Makefile, to create a library of your code when doing 'make' (an example is VLQSearch/Makefile, that creates an analysis-specific library libVLQAnalysis53.so).