Skip to content

Commit 218581f

Browse files
authored
Merge pull request #43 from AnnikaStein/12_4_8_patchFor122X
fix: using more convenient configs for BTV
2 parents fbfa47a + ea81a7d commit 218581f

7 files changed

+22
-22
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Note: When running over a new dataset you should check with [the nanoAOD workboo
3434

3535
## Local Usage:
3636

37-
There are python config files ready to run in `PhysicsTools/PFNano/test/`, where the full set of inputs (and for all PF candidates) was used as an example.
37+
There are python config files ready to run in `PhysicsTools/PFNano/test/`.
3838

3939
@BTV-Commissioning-Team: the recommended PFNano customization for commissioning (as of October 2022) for data is `PFnano_customizeData_add_DeepJet` and for MC `PFnano_customizeMC_add_DeepJet_and_Truth`, so without the `allPF` tag.
4040

@@ -72,7 +72,7 @@ cmsDriver.py nano_data_2022 --data --eventcontent NANOAODSIM --datatier NANOAODS
7272
--conditions 124X_dataRun3_Prompt_v4 --era Run3 \
7373
--customise_commands="process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100" --nThreads 4 \
7474
-n -1 --filein /store/data/Run2022C/DoubleMuon/MINIAOD/PromptReco-v1/000/355/863/00000/ab45899e-f1b8-49e7-be41-ee694b17b31d.root --fileout file:nano_data2022.root \
75-
--customise="PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeData_allPF_add_DeepJet" --no_exec
75+
--customise="PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeData_add_DeepJet" --no_exec
7676
```
7777
<br>
7878

@@ -81,7 +81,7 @@ cmsDriver.py nano_mc_Run3 --mc --eventcontent NANOAODSIM --datatier NANOAODSIM -
8181
--conditions 124X_mcRun3_2022_realistic_v11 --era Run3 \
8282
--customise_commands="process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100" --nThreads 4 \
8383
-n -1 --filein /store/relval/CMSSW_12_4_8/RelValTTbar_SemiLeptonic_PU_13p6/MINIAODSIM/PU_124X_mcRun3_2022_realistic_v11_summer22-v1/2580000/23bf3611-4033-4c70-9bf7-5ae65290e14f.root --fileout file:nano_mcRun3.root \
84-
--customise="PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_allPF_add_DeepJet_and_Truth" --no_exec
84+
--customise="PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_add_DeepJet_and_Truth" --no_exec
8585
```
8686
<br>
8787

@@ -90,7 +90,7 @@ cmsDriver.py nano_mc_Run3_122X --mc --eventcontent NANOAODSIM --datatier NANOAOD
9090
--conditions 124X_mcRun3_2022_realistic_v11 --era Run3,run3_nanoAOD_122 \
9191
--customise_commands="process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100" --nThreads 4 \
9292
-n -1 --filein /store/mc/Run3Winter22MiniAOD/TTTo2L2Nu_CP5_13p6TeV_powheg-pythia8/MINIAODSIM/122X_mcRun3_2021_realistic_v9-v2/2550000/0d44f6e9-6961-4d60-b2c1-0e21c1249100.root --fileout file:nano_mcRun3_122X.root \
93-
--customise="PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_allPF_add_DeepJet_and_Truth" --no_exec
93+
--customise="PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_add_DeepJet_and_Truth" --no_exec
9494
```
9595

9696
</details>

test/card_example_data.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ campaign:
33
crab_template: template_crab.py
44

55
# User specific
6-
workArea: doublemuon22_pub_yml # New each time
6+
workArea: data22_pub_yml # New each time
77
storageSite: T2_DE_RWTH # Make sure you have write access
88
outLFNDirBase: /store/user/anstein/PFNano # Change unsername and path
99
voGroup: dcms # or leave empty
1010

1111
# Campaign specific
12-
tag_extension: PFtestNano # Will get appended after the current tag
12+
tag_extension: BTV_Run3_2022_Comm_v1 # Will get appended after the current tag
1313
tag_mod: # Will modify name in-place for MC eg. "PFNanoAODv1" will replace MiniAODv2 -> PFNanoAODv1
1414
# If others shall be able to access dataset via DAS (important when collaborating for commissioning!)
1515
publication: True

test/card_example_mc.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ campaign:
99
voGroup: dcms # or leave empty
1010

1111
# Campaign specific
12-
tag_extension: PFtestNano # Will get appended after the current tag
12+
tag_extension: BTV_Run3_2022_Comm_v1 # Will get appended after the current tag
1313
tag_mod: # Will modify name in-place for MC eg. "PFNanoAODv1" will replace MiniAODv2 -> PFNanoAODv1
1414
# If others shall be able to access dataset via DAS (important when collaborating for commissioning!)
1515
publication: True
16-
config: nano_mcRun3_NANO.py
16+
config: nano_mc_Run3_NANO.py
1717
# Specify if running on data
1818
# data: True
1919
data: False

test/card_example_mc122X.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ campaign:
99
voGroup: dcms # or leave empty
1010

1111
# Campaign specific
12-
tag_extension: PFtestNano # Will get appended after the current tag
12+
tag_extension: BTV_Run3_2022_Comm_v1 # Will get appended after the current tag
1313
tag_mod: # Will modify name in-place for MC eg. "PFNanoAODv1" will replace MiniAODv2 -> PFNanoAODv1
1414
# If others shall be able to access dataset via DAS (important when collaborating for commissioning!)
1515
publication: True
16-
config: nano_mcRun3_122X_NANO.py
16+
config: nano_mc_Run3_122X_NANO.py
1717
# Specify if running on data
1818
# data: True
1919
data: False

test/nano_data_2022_NANO.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# using:
33
# Revision: 1.19
44
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
5-
# with command line options: nano_data_2022 --data --eventcontent NANOAODSIM --datatier NANOAODSIM --step NANO --conditions 124X_dataRun3_Prompt_v4 --era Run3 --customise_commands=process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100 --nThreads 4 -n -1 --filein /store/data/Run2022C/DoubleMuon/MINIAOD/PromptReco-v1/000/355/863/00000/ab45899e-f1b8-49e7-be41-ee694b17b31d.root --fileout file:nano_data2022.root --customise=PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeData_allPF_add_DeepJet --no_exec
5+
# with command line options: nano_data_2022 --data --eventcontent NANOAODSIM --datatier NANOAODSIM --step NANO --conditions 124X_dataRun3_Prompt_v4 --era Run3 --customise_commands=process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100 --nThreads 4 -n -1 --filein /store/data/Run2022C/DoubleMuon/MINIAOD/PromptReco-v1/000/355/863/00000/ab45899e-f1b8-49e7-be41-ee694b17b31d.root --fileout file:nano_data2022.root --customise=PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeData_add_DeepJet --no_exec
66
import FWCore.ParameterSet.Config as cms
77

88
from Configuration.Eras.Era_Run3_cff import Run3
@@ -116,10 +116,10 @@
116116
process = nanoAOD_customizeV10(process)
117117

118118
# Automatic addition of the customisation function from PhysicsTools.PFNano.pfnano_cff
119-
from PhysicsTools.PFNano.pfnano_cff import PFnano_customizeData_allPF_add_DeepJet
119+
from PhysicsTools.PFNano.pfnano_cff import PFnano_customizeData_add_DeepJet
120120

121-
#call to customisation function PFnano_customizeData_allPF_add_DeepJet imported from PhysicsTools.PFNano.pfnano_cff
122-
process = PFnano_customizeData_allPF_add_DeepJet(process)
121+
#call to customisation function PFnano_customizeData_add_DeepJet imported from PhysicsTools.PFNano.pfnano_cff
122+
process = PFnano_customizeData_add_DeepJet(process)
123123

124124
# End of customisation functions
125125

test/nano_mc_Run3_122X_NANO.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# using:
33
# Revision: 1.19
44
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
5-
# with command line options: nano_mc_Run3_122X --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --step NANO --conditions 124X_mcRun3_2022_realistic_v11 --era Run3,run3_nanoAOD_122 --customise_commands=process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100 --nThreads 4 -n -1 --filein /store/mc/Run3Winter22MiniAOD/TTTo2L2Nu_CP5_13p6TeV_powheg-pythia8/MINIAODSIM/122X_mcRun3_2021_realistic_v9-v2/2550000/0d44f6e9-6961-4d60-b2c1-0e21c1249100.root --fileout file:nano_mcRun3_122X.root --customise=PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_allPF_add_DeepJet_and_Truth --no_exec
5+
# with command line options: nano_mc_Run3_122X --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --step NANO --conditions 124X_mcRun3_2022_realistic_v11 --era Run3,run3_nanoAOD_122 --customise_commands=process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100 --nThreads 4 -n -1 --filein /store/mc/Run3Winter22MiniAOD/TTTo2L2Nu_CP5_13p6TeV_powheg-pythia8/MINIAODSIM/122X_mcRun3_2021_realistic_v9-v2/2550000/0d44f6e9-6961-4d60-b2c1-0e21c1249100.root --fileout file:nano_mcRun3_122X.root --customise=PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_add_DeepJet_and_Truth --no_exec
66
import FWCore.ParameterSet.Config as cms
77

88
from Configuration.Eras.Era_Run3_cff import Run3
@@ -118,10 +118,10 @@
118118
process = nanoAOD_customizeV10(process)
119119

120120
# Automatic addition of the customisation function from PhysicsTools.PFNano.pfnano_cff
121-
from PhysicsTools.PFNano.pfnano_cff import PFnano_customizeMC_allPF_add_DeepJet_and_Truth
121+
from PhysicsTools.PFNano.pfnano_cff import PFnano_customizeMC_add_DeepJet_and_Truth
122122

123-
#call to customisation function PFnano_customizeMC_allPF_add_DeepJet_and_Truth imported from PhysicsTools.PFNano.pfnano_cff
124-
process = PFnano_customizeMC_allPF_add_DeepJet_and_Truth(process)
123+
#call to customisation function PFnano_customizeMC_add_DeepJet_and_Truth imported from PhysicsTools.PFNano.pfnano_cff
124+
process = PFnano_customizeMC_add_DeepJet_and_Truth(process)
125125

126126
# End of customisation functions
127127

test/nano_mc_Run3_NANO.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# using:
33
# Revision: 1.19
44
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
5-
# with command line options: nano_mc_Run3 --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --step NANO --conditions 124X_mcRun3_2022_realistic_v11 --era Run3 --customise_commands=process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100 --nThreads 4 -n -1 --filein /store/relval/CMSSW_12_4_8/RelValTTbar_SemiLeptonic_PU_13p6/MINIAODSIM/PU_124X_mcRun3_2022_realistic_v11_summer22-v1/2580000/23bf3611-4033-4c70-9bf7-5ae65290e14f.root --fileout file:nano_mcRun3.root --customise=PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_allPF_add_DeepJet_and_Truth --no_exec
5+
# with command line options: nano_mc_Run3 --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --step NANO --conditions 124X_mcRun3_2022_realistic_v11 --era Run3 --customise_commands=process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100 --nThreads 4 -n -1 --filein /store/relval/CMSSW_12_4_8/RelValTTbar_SemiLeptonic_PU_13p6/MINIAODSIM/PU_124X_mcRun3_2022_realistic_v11_summer22-v1/2580000/23bf3611-4033-4c70-9bf7-5ae65290e14f.root --fileout file:nano_mcRun3.root --customise=PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_add_DeepJet_and_Truth --no_exec
66
import FWCore.ParameterSet.Config as cms
77

88
from Configuration.Eras.Era_Run3_cff import Run3
@@ -117,10 +117,10 @@
117117
process = nanoAOD_customizeV10(process)
118118

119119
# Automatic addition of the customisation function from PhysicsTools.PFNano.pfnano_cff
120-
from PhysicsTools.PFNano.pfnano_cff import PFnano_customizeMC_allPF_add_DeepJet_and_Truth
120+
from PhysicsTools.PFNano.pfnano_cff import PFnano_customizeMC_add_DeepJet_and_Truth
121121

122-
#call to customisation function PFnano_customizeMC_allPF_add_DeepJet_and_Truth imported from PhysicsTools.PFNano.pfnano_cff
123-
process = PFnano_customizeMC_allPF_add_DeepJet_and_Truth(process)
122+
#call to customisation function PFnano_customizeMC_add_DeepJet_and_Truth imported from PhysicsTools.PFNano.pfnano_cff
123+
process = PFnano_customizeMC_add_DeepJet_and_Truth(process)
124124

125125
# End of customisation functions
126126

0 commit comments

Comments
 (0)