Studies over the kinematics of the HtoMuMu samples.
export SCRAM_ARCH=slc6_amd64_gcc481
cmsrel CMSSW_7_1_20
cd CMSSW_7_1_20/src
cmsenv
git cms-addpkg GeneratorInterface/Pythia6Interface
To convert the LHE file into Root file and Hadronize: mkdir Configuration/GenProduction/python cd Configuration/GenProduction/python
copy the file: test_PowhegPythiaH190_cff.py and modifies the file according your necesities. scram b -j 10
cd ../../..
cmsRun Configuration/GenProduction/python/test_PowhegPythiaH190_cff.py
After that step you obtain a py. file test_PowhegPythiaH190_cff_py_LHE_GEN.py. Modify the path of the LHE file location. cmsRun test_PowhegPythiaH190_cff_py_LHE_GEN.py
At this point, you get a root file.
To Run the GenLevel analisis code:
git clone https://github.com/lchaparr/HtoMuMu
mv HtoMuMu/BasicTester.cc GeneratorInterface/Pythia6Interface/test
scram b
cmsRun BasicTester_cfg.py
make
./H2MuAnalysis -i INPUT_FILE
It is mandatory have an n-tuple made using the TNT Maker. There are another options like rochester correction off or on. ./H2MuAnalysis -h list all of them.
Photons from PF paticle collection. The Selector, save the relevant parameters as phi, eta, pt, energy, RelISo, etc., in the n-tuples. The code for ntuplizer (https://github.com/florez/NtupleMaker_740/tree/for_CMSSW_8X) must be modify in order to obtain the FSR photons using this selector.
Ntuple code used for Moriond's samples is located at https://github.com/florez/NtupleMaker_740/tree/for_CMSSW_8025, but must be modify in order to make muon trigger match and FSR photons. The files that you need modified are located at Ntuple_maker directory.