source /cvmfs/cms.cern.ch/cmsset_default.sh
export SCRAM_ARCH="slc6_amd64_gcc530"
cmsrel CMSSW_8_0_26_patch1
cd CMSSW_8_0_26_patch1/src/
cmsenv
cd ../../
git clone https://github.com/abhisek92datta/TriggerRun2.git
cp TriggerRun2/TriggerRun_run_recipe.sh .
chmod 755 TriggerRun_run_recipe.sh
./TriggerRun_run_recipe.sh
rm -rf TriggerRun2.git
rm -rf TriggerRun_run_recipe.sh
cd CMSSW_8_0_26_patch1/src/TriggerRun2/TriggerAnalyzer/
RUN :
For MC :
To Run Locally:
- put desired MC filename in : test/ trigger_analyzer_mc_25ns_cfg.py
- cmsRun test/trigger_analyzer_mc_25ns_cfg.py
To Run on CRAB :
-
remove filename from test/trigger_analyzer_mc_25ns_cfg.py
-
put desired MC Dataset in : newCRAB_forMC.py
-
in newCRAB_forMC.py : config.Data.splitting = 'FileBased'
: config.Data.unitsPerJob = 10 (put desired number) : config.Data.outLFNDirBase = '/store/user/abdatta/' (your own storage area) : config.Site.storageSite = 'T3_US_FNALLPC' (your own storage site)
-
crab submit -c newCRAB_forMC.py
For DATA :
To Run Locally:
- put desired DATA filename in : test/trigger_analyzer_data_80x_cfg.py
- put latest LUMI filename in: test/trigger_analyzer_data_80x_cfg.py
- cmsRun test/trigger_analyzer_data_80x_cfg.py
To Run on CRAB :
-
remove filename from test/trigger_analyzer_data_80x_cfg.py
-
put desired DATA dataset filename in : newCRAB_forData.py
-
put LUMI file name in : newCRAB_forData.py
-
in newCRAB_forData.py : config.Data.splitting = 'LumiBased'
: config.Data.unitsPerJob = 20 (put desired number) : config.Data.outLFNDirBase = '/store/user/abdatta/' (your own storage area) : config.Site.storageSite = 'T3_US_FNALLPC' (your own storage site)
-
crab submit -c newCRAB_forData.py
To check CRAB status : crab status -d <crab_output_directory_name>
To resubmit : crab resubmit -d <crab_output_directory_name>
After Ntuples created and stored in storage area, Plotting efficiencies using : macros/Important/Trigger_Express_June.C
cd macros/
- Put desired file name with complete path in : Trigger_Express_June.C
- Put the names of the triggers whose efficiency desired in : Trigger_Express_June.C
- scram b -j 32
- root -l -q Trigger_Express_June.C
or
root -l -q Trigger_Express_June.C+'(-1,5,1)'
root -l -q Trigger_Express_June.C+'(-1,5,2)'
root -l -q Trigger_Express_June.C+'(-1,5,3)'
root -l -q Trigger_Express_June.C+'(-1,5,4)'
root -l -q Trigger_Express_June.C+'(-1,5,5)'
hadd Express_Trigger_June_Data.root Express_Trigger_June_Data_*
To put together the histograms in different root files in 1 root file :
root -l -q combine_plots.C
If some crab jobs fail for DATA, then macros/Important/Luminosity_calc.C can be used to list the missing lumis due to these failed jobs :
g++ json_editor.cpp -o json_editor
./json_editor
root -l -q Luminosity_calc.C