Open brochero opened 2 years ago
xrdcp root://cms-xrd-global.cern.ch///store/mc/RunIISummer20UL18MiniAODv2/TTToSemiLeptonic_TuneCP5_13TeV-powheg-pythia8/MINIAODSIM/106X_upgrade2018_realistic_v16_L1v1-v2/120000/006455CD-9CDB-B843-B50D-5721C39F30CE.root
- to run:
cmsRun AnalyzeMET_UL.py
- It will produce an output call `MET_ntuples.root` in the same dir.
## Modification on `AnalyzeMET_UL.py`
- The same as described in the previous entry (https://github.com/brochero/METAnalysis/issues/1#issue-1295388401)
- Changing names on https://github.com/brochero/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L273-L279
From Michael Waßmer:
Hi Javier, Hi Jonatan,
the module I'm currently using to write MET quantities from MiniAOD to a flat ntuple is the following: https://github.com/michaelwassmer/METAnalysis/tree/master/METAnalyzer
I'm currently using it mostly with CMSSW_12_0_0, but other versions should also work.
How much experience do you have working with CMSSW directly? If you need some help with the setup, please let me know.
For now, you should comment the following lines:
https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L199-L204
https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L159
https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L180-L181
https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L191-L192
https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L257
https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L262-L264
https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L271
The CMSSW MET module is invoked with the calls in https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L170-L193
In order to see the modules those python calls actually add to the process object, you can just dump the complete CMSSW python config by activating uncommenting https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L272
If you have questions or problems, just let me know.