Running on MC

cmsrel CMSSW_8_0_30
cd CMSSW_8_0_30/src
cmsenv
git clone https://github.com/silviodonato/DijetRootTreeAnalyzer.git

mkdir output
cd DijetRootTreeAnalyzer

./scripts/make_rootNtupleClass.sh -f root://storage01.lcg.cscs.ch/pnfs/lcg.cscs.ch/cms/trivcat/store/user/sdonato/VectorDiJet1Jet_1000_13TeV-madgraph/VectorDiJet1Jet_1000_13TeV-madgraph_V2/171216_121003/0000/dijetscouting_bigtree_1.root -t dijetscouting/events

## (answer y and y)
## edit src/silvio_analysisClass_mainDijetCaloScoutingSelection.C and replace #define isMC false → #define isMC true
ln -fs silvio_analysisClass_mainDijetCaloScoutingSelection.C src/analysisClass.C
make clean
make -j4
## edit config/silvio_cutFile_mainDijetCaloScoutingSelection_mc.txt and set “maxEvents” to 1000 (in value1)
./main config/lists_silvio_signal/list_VectorDiJet1Jet_1000_13TeV.txt config/silvio_cutFile_mainDijetCaloScoutingSelection_mc.txt dijetscouting/events output/test output/efficiency
python scripts/submit_batch_T2_split.py -i config/lists_silvio_signal -o output --tag=SIGNALS --split=1 -c config/silvio_cutFile_mainDijetCaloScoutingSelection_mc.txt -q short.q

Running on data

cd DijetRootTreeAnalyzer
./scripts/make_rootNtupleClass.sh -f root://eoscms.cern.ch/eos/cms/store/group/phys_exotica/dijet/Dijet13TeVScouting/rootTrees_big/2016/ScoutingCaloHT_Run2016H-v1_Nov-17-2016_20161117_175444/ScoutingCaloHT/crab_ScoutingCaloHT__Run2016H-v1__RAW/161117_165651/0002/ScoutingCaloHT__Run2016H-v1__RAW_2055.root -t dijetscouting/events
## (answer y and y)
## edit src/silvio_analysisClass_mainDijetCaloScoutingSelection.C and replace #define isMC false → #define isMC false
ln -fs silvio_analysisClass_mainDijetCaloScoutingSelection.C src/analysisClass.C
make clean
make -j4
## edit config/lists_silvio_ScoutingCaloCommissioning_singlefile/silvio_inputList.txt
# in particular: maxEvents,
# and only one of this option can be +1 skimHLT_CaloJet40_CaloScouting_PFScouting, skimHLT_L1HTT_CaloScouting_PFScouting, skimHLT_CaloScoutingHT250.
# With this cut we select which trigger we require. You can go directly with skimHLT_CaloScoutingHT250
./main config/lists_silvio_ScoutingCaloCommissioning_singlefile/silvio_inputList.txt config/silvio_cutFile_mainDijetCaloScoutingSelection_data.txt dijetscouting/events data/output/rootFile data/output/cutEfficiencyFile
## if everything is ok, and you want to run on all data ()
python -i scripts/submit_batch_T2_split.py -q short.q -i config/lists_silvio_ScoutingCaloCommissioning_full -o output --tag=CaloJet40Skim --split=100 -c $PWD/config/silvio_cutFile_mainDijetCaloScoutingSelection_data.txt