simple Ntuple maker
To set up the code follow the following recipe
export SCRAM_ARCH=sslc6_amd64_gcc493
cmsrel CMSSW_7_6_3
cd CMSSW_7_6_3/src
cmsenv
git cms-init
git clone https://github.com/TopBrussels/TopTreeProducer TopBrussels/TopTreeProducer
cd TopBrussels/TopTreeProducer/
git checkout CMSSW_76X
cd src
make
cd ../../..
git clone https://github.com/TopBrussels/TopTreeAnalysisBase TopBrussels/TopTreeAnalysisBase/
cd TopBrussels/TopTreeAnalysisBase/
git checkout CMSSW_76X
make
cd ../../
git clone git@github.com:TopBrussels/DisplacedTops.git TopBrussels/DisplacedTops
cd TopBrussels/DisplacedTops
git checkout master
cd ../../
scram b -j8
cd -
source compile.sh
source compile.sh TreeMaker.cc
./TreeMaker WWToLNuQQ Diboson 1 390 1 2 1 41297.4650368 47.693 0.0 dcap://maite.iihe.ac.be:/pnfs/iihe/cms/store/user/fblekman/TopTree/CMSSW_74X_v8/WWToLNuQQ_13TeV-powheg/crab_WWToLNuQQ_13TeV-powheg-RunIISpring15DR74-Asympt25ns_MCRUN2_74_V9-v1-CMSSW_74X_v8-MCRUN2_74_V9/151029_124630/0000/TOPTREE_7.root dcap://maite.iihe.ac.be:/pnfs/iihe/cms/store/user/fblekman/TopTree/CMSSW_74X_v8/WWToLNuQQ_13TeV-powheg/crab_WWToLNuQQ_13TeV-powheg-RunIISpring15DR74-Asympt25ns_MCRUN2_74_V9-v1-CMSSW_74X_v8-MCRUN2_74_V9/151029_124630/0000/TOPTREE_6.root dcap://maite.iihe.ac.be:/pnfs/iihe/cms/store/user/fblekman/TopTree/CMSSW_74X_v8/WWToLNuQQ_13TeV-powheg/crab_WWToLNuQQ_13TeV-powheg-RunIISpring15DR74-Asympt25ns_MCRUN2_74_V9-v1-CMSSW_74X_v8-MCRUN2_74_V9/151029_124630/0000/TOPTREE_5.root ElEl 3 0 2000000
cd localsubmission
// edit the createSubmitScriptWithCopy.py and edit the "channels" array to choose the decay channel you want to rune over // make sure that the correct xml file will be loaded. This will select the list of the samples to run over.
emacs createSubmitScriptWithCopy.py
// create all the jobs python createSubmitScriptWithCopy.py
// launch the jobs
cd SubmitScripts/date/channel
source SubmitAll.sh
./TreeProcesser channel debug debugplot electronSF muonSf puSf globalSF
// for example do:
./TreeProcesser ElEl 0 0 1 1 1 1
cd scripts
python maked0plot.py