####################################################################################################### Code developed by: Alfredo Gurrola (Vanderbilt), Andres Florez (Los Andes), Amandeep Kalsi (Panjab) #######################################################################################################
In order to use the checkout and use the code, follow these steps:
-
You need to work at the SLC6 area.
1.1 If you are working from the LPC cluster, you need to do the following:
source /cvmfs/cms.cern.ch/cmsset_default.csh
setenv SCRAM_ARCH slc6_amd64_gcc491 -
set the CMSSW release: cmsrel CMSSW_7_4_7
-
cd CMSSW_7_4_7/src
-
cmsenv
-
Install and compile the code to use the PAT-electron ID:
5.1 git cms-merge-topic ikrav:egm_id_747_v2
5.2 scram b -j 10
- Get the NTupleMaker code and compile it:
6.1 git clone https://github.com/florez/NtupleMaker_740
6.2 mv NtupleMaker_740 NtupleMaker
6.3 scram b -j 10
- Get the Analyzer code and compile it (code that performs the analysis and produces histograms):
7.1 git clone https://github.com/gurrola/Analyzer
7.2 scram b -j 10
- cd into the appropriate NtupleMaker directory to start running the code:
9.1 cd NtupleMaker/BSM3G_TNT_Maker/python
- Copy a test input miniAOD root file from gurrola's area (or your own):
// FROM VANDERBILT:
10.1 cp /home/gurrola/mini_AODSIM.root .
// FROM LPC:
10.1 cp /uscms/home/florez/mini_AODSIM.root .
10. Run the NtupleMaker code:
10.1 cmsRun miniAOD_747_50ns.py
- cd into the appropriate Analyzer directory to start running the code:
11.1 cd Analyzer/BSM3G_TNT_MainAnalyzer/
- Copy a the Ntuple root file from step 10 and compile the code:
12.1 cp $CMSSW_BASE/src/NtupleMaker/BSM3G_TNT_Maker/python/OutTree.root .
12.2 make clean
12.3 make BSM3GAnalyzer
- Run the analyzer code and inspect the output root file:
13.1 ./BSM3GAnalyzer OutTree.root analysis.root
13.2 root -l analysis.root
-
To run multiple files at LPC using CONDOR, please go to this link and follow the instructions:
https://github.com/florez/CONDOR
Please make sure to read carefully the scripts to understand how to configure the code.
if you have questions, please contact Andres Florez. -
Use the Plotter code and output from running the analyzer to produce plots and a cut flow eff table:
16.1 cd ../../Plotter/TNTCode/
16.2 cp ../../Analyzer/BSM3G_TNT_MainAnalyzer/analysis.root Data
16.3 cp ../../Analyzer/BSM3G_TNT_MainAnalyzer/analysis.root DYMuMu
16.4 root -l -b main.C
- Inspect the output root file:
16.1 root -l Plots_Rebin1.root