brochero / METAnalysis

MET Studies for EPRs
0 stars 0 forks source link

First set of instructions #1

Open brochero opened 2 years ago

brochero commented 2 years ago

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:

  1. https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L199-L204

  2. https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L159

  3. https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L180-L181

  4. https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L191-L192

  5. https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L257

  6. https://github.com/michaelwassmer/METAnalysis/blob/master/METAnalyzer/test/AnalyzeMET_UL.py#L262-L264

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

brochero commented 2 years ago

First successful run

- 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