Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 2.23 KB

README.md

File metadata and controls

41 lines (25 loc) · 2.23 KB

How To Use

cmsrel CMSSW_8_0_11
cd CMSSW_8_0_11/src
cmsenv
git clone [email protected]:ram1123/GEN-SIM-analyzer.git
scramv1 b -j 8
cd GEN-SIM-analyzer/GenAnalyzer
# Befor running, check the config file and comment/uncomment line for MINIAOD/LHE-GEN
cmsRun python/ConfFile_cfg.py
  • Also, you need to add the input root file. If you have long list of root file then you can use the script GetListOfFile_More250files.py
  • Here in the code you need to provide the path of input root files.
  • Copy the output of the above code and paste it inot python/ConfFile_cfg.py

Submit job with condor job

  1. To set proxy and create tarfile for your CMSSW directory:

     python create_cmssw_tarfile.py  
    
  2. Then modify output root file name (or output directory) in script RunGENSIM_condor.sh and output log file name in script RunGENSIM_condor.jdl

  3. Then submit condor job using command:

     condor_submit RunGENSIM_condor.jdl
    

Some General Script

  1. Move crab files from crab directory hierchy to top directory : Move_FileToTopDirFromCrab.py
  2. To run cmsRun over more then 255 files: GetListOfFile_More250files.py

Plotting Macros:

You can find plotting macro here.

  1. See the list of nevents, cross-section for all MiniAOD sampels: DataMCInfo.ini
  2. To print the list of available branches: run script getBranchList.py