Skip to content

Commit d800a4a

Browse files
committed
Fix default L1Nano sequence to not use RECO and Gen objects, update readme
1 parent ec8c2b5 commit d800a4a

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

DPGAnalysis/Phase2L1TNanoAOD/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,19 @@ Corresponding menu twiki section: https://twiki.cern.ch/twiki/bin/viewauth/CMS/P
1414

1515
### Via cmsDriver
1616

17-
One can append the L1Nano output to the `cmsDriver` command via the `NANO:@Phase2L1DPG` autoNANO handle, e.g.:
17+
One can append the L1Nano output to the `cmsDriver` command via the `NANO:@Phase2L1DPGwithGen` autoNANO handle, e.g.:
1818
```bash
19-
cmsDriver.py -s L1,L1TrackTrigger,L1P2GT,NANO:@Phase2L1DPG
19+
cmsDriver.py -s L1,L1TrackTrigger,L1P2GT,NANO:@Phase2L1DPGwithGen
2020
```
2121

2222
Check `PhysicsTools/NanoAOD/python/autoNANO.py` for the way this command is defined.
2323

24-
`cmsDriver` command for 14x files:
24+
Note that the step key `Phase2L1DPG` does not include the generator and reco-level objects used for MenuTools studies in the nano!
25+
It is mostly created for workflow tests.
26+
27+
An example `cmsDriver` command for 14x files:
2528
```bash
26-
cmsDriver.py -s L1,L1TrackTrigger,L1P2GT,NANO:@Phase2L1DPG \
29+
cmsDriver.py -s L1,L1TrackTrigger,L1P2GT,NANO:@Phase2L1DPGwithGen \
2730
--conditions auto:phase2_realistic_T33 \
2831
--geometry ExtendedRun4D110 \
2932
--era Phase2C17I13M9 \
@@ -38,6 +41,15 @@ cmsDriver.py -s L1,L1TrackTrigger,L1P2GT,NANO:@Phase2L1DPG \
3841
-n 10 --nThreads 4 --no_exec
3942
```
4043

44+
### Workflows
45+
46+
Two upgrade workflows are implemented to test/run this nano (`Phase2L1DPG`) after the full DigiTrigger chain after the complete L1:
47+
* `.781` - produces NANO in addition to FEVTDEBUG
48+
* `.782` - produces only NANO
49+
50+
And can be executed as e.g. `runTheMatrix.py --what upgrade -i all --ibeos -l 29634.782`. See [here the readme of `runTheMatrix`](https://github.com/cms-sw/cmssw/tree/master/Configuration/PyReleaseValidation/scripts#interactive-runthematrix-shell) and [here a list of workflows](https://github.com/cms-sw/cmssw/tree/master/Configuration/PyReleaseValidation).
51+
52+
Note that if tou want to include the Gen/Offline references, you need to change the import function in the config after the
4153

4254
## Output
4355

PhysicsTools/NanoAOD/python/autoNANO.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@ def expandNanoMapping(seqList, mapping, key):
4949
# Phase-2 L1 DPG (from RAW/DIGI)
5050
'Phase2L1DPG' : {'sequence': 'DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.l1tPh2NanoSequence',
5151
'customize': ','.join([
52-
'DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.addFullPh2L1Nano',
53-
# 'DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.addPh2L1Objects',
54-
# 'DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.addPh2GTObjects',
55-
# 'DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.addGenObjects',
52+
# 'DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.addFullPh2L1Nano', # <- this add all customisations listed below
53+
'DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.addPh2L1Objects',
54+
'DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.addPh2GTObjects',
55+
# 'DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.addGenObjects', # <- not included here as requires reco vertices and cannot be run in workflows w/o MINIAOD
5656
])},
57+
'Phase2L1DPGwithGen' : {'sequence': '@Phase2L1DPG',
58+
'customize': 'Phase2L1DPG+DPGAnalysis/Phase2L1TNanoAOD/l1tPh2Nano_cff.addGenObjects',},
5759
# Muon POG flavours : add tables through customize, supposed to be combined with PHYS
5860
'MUPOG': {'sequence': '@PHYS',
5961
'customize': '@PHYS+PhysicsTools/NanoAOD/custom_muon_cff.PrepMuonCustomNanoAOD'},

0 commit comments

Comments
 (0)