Skip to content

gurrola/Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 

Repository files navigation

######################################################################################################### Code developed by: Andres Florez (Los Andes), Alfredo Gurrola (Vanderbilt) and Amandeep Kalsi (Panjab) ##########################################################################################################

The recipe is to install the code at LPC/ACCRE. Therefore, to install the code elsewere, you'd need to make the necessary changes.

In order to use the code you need to follow carefully these steps:

#####################################################################

CMSSW_7_4_4 Recipe

#####################################################################

  1. You need to work at the SLC6 area.

  2. set the CMSSW release: cmsrel CMSSW_7_4_4

  3. cd CMSSW_7_4_4/src

  4. cmsenv

  5. Install and compile the code to use the PAT-electron ID:

5.1 git cms-merge-topic ikrav:egm_id_74X_v0
5.2 scram b -j 10

  1. 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

  1. 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

  1. cd into the appropriate NtupleMaker directory to start running the code:

8.1 cd NtupleMaker/BSM3G_TNT_Maker/python

  1. Run the NtupleMaker code. In the python directory, there is file called miniAOD_*.py
    (name specifies which file is appropriate)

9.1 cmsRun miniAOD_747_50ns.py

  1. cd into the appropriate Analyzer directory to start running the code:

10.1 cd Analyzer/BSM3G_TNT_MainAnalyzer/

  1. Copy the Ntuple root file from step 9 (or some previously produced Ntuple) and compile the code:

11.1 cp $CMSSW_BASE/src/NtupleMaker/BSM3G_TNT_Maker/python/OutTree.root .
11.2 make clean
11.3 make BSM3GAnalyzer

  1. Run the analyzer code and inspect the output root file:

12.1 ./BSM3GAnalyzer OutTree.root analysis.root
12.2 root -l analysis.root

  1. To run over multiple Ntuple 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.

#####################################################################

CMSSW_7_4_7 Recipe

#####################################################################

  1. You need to work at the SLC6 area.

  2. set the CMSSW release: cmsrel CMSSW_7_4_7

  3. cd CMSSW_7_4_7/src

  4. cmsenv

  5. 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

  1. 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

  1. 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

  1. cd into the appropriate NtupleMaker directory to start running the code:

8.1 cd NtupleMaker/BSM3G_TNT_Maker/python

  1. Run the NtupleMaker code. In the python directory, there is file called miniAOD_*.py
    (name specifies which file is appropriate)

9.1 cmsRun miniAOD_747_50ns.py

  1. cd into the appropriate Analyzer directory to start running the code:

10.1 cd Analyzer/BSM3G_TNT_MainAnalyzer/

  1. Copy the Ntuple root file from step 9 (or some previously produced Ntuple) and compile the code:

11.1 cp $CMSSW_BASE/src/NtupleMaker/BSM3G_TNT_Maker/python/OutTree.root .
11.2 make clean
11.3 make BSM3GAnalyzer

  1. Run the analyzer code and inspect the output root file:

12.1 ./BSM3GAnalyzer OutTree.root analysis.root
12.2 root -l analysis.root

  1. To run over multiple Ntuple 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.

#####################################################################

CMSSW_7_4_15 Recipe

#####################################################################

  1. You need to work at the SLC6 area.

  2. set the CMSSW release: cmsrel CMSSW_7_4_15

  3. cd CMSSW_7_4_15/src

  4. cmsenv

  5. Install and compile the code to use the PAT-electron ID:

5.1 git cms-merge-topic ikrav:egm_id_7.4.12_v1
5.2 scram b -j 10

  1. Install and compile the code to use the MET producers (for covariance matrix):

6.1 git cms-addpkg RecoMET/METProducers
6.2 scram b -j 10

  1. Get the NTupleMaker code and compile it:

7.1 git clone https://github.com/florez/NtupleMaker_740
7.2 cd NtupleMaker_740
7.3 git checkout miniAODv2_ForHiggsDalitz
7.4 cd ./..
7.5 mv NtupleMaker_740 NtupleMaker
7.6 scram b -j 10

  1. Get the Analyzer code and compile it (code that performs the analysis and produces histograms):

8.1 git clone https://github.com/gurrola/Analyzer
8.2 cd Analyzer
8.3 git checkout forMiniAODv2_11062015_v1
8.4 cd ./..
8.5 scram b -j 10

  1. cd into the appropriate NtupleMaker directory to start running the code:

9.1 cd NtupleMaker/BSM3G_TNT_Maker/python

  1. Run the NtupleMaker code. In the python directory, there is file called miniAODv2_7415_*.py
    (name specifies which file is appropriate)

10.1 cmsRun miniAODv2_7415_25ns_MC.py

  1. cd into the appropriate Analyzer directory to start running the code:

11.1 cd Analyzer/BSM3G_TNT_MainAnalyzer/

  1. Copy the Ntuple root file from step 10 (or some previously produced Ntuple) 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

  1. Run the analyzer code and inspect the output root file:

13.1 ./BSM3GAnalyzer OutTree.root analysis.root
13.2 root -l analysis.root

  1. To run over multiple Ntuple 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.

About

main TNT Ntuple Analyzer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published