Skip to content

Commit 933484e

Browse files
authored
moved fakeNameForCrab modifier to cmsDriver command; added latest prompt reco golden json file (#50)
1 parent 3e3f6c3 commit 933484e

7 files changed

+470
-35
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Two imporant parameters that one needs to verify in the central nanoAOD document
7070
```
7171
cmsDriver.py nano_data_2022 --data --eventcontent NANOAODSIM --datatier NANOAODSIM --step NANO \
7272
--conditions 124X_dataRun3_Prompt_v4 --era Run3 \
73-
--customise_commands="process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100" --nThreads 4 \
73+
--customise_commands="process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=1000;process.NANOAODoutput.fakeNameForCrab = cms.untracked.bool(True)" --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 \
7575
--customise="PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeData_add_DeepJet" --no_exec
7676
```
@@ -79,7 +79,7 @@ cmsDriver.py nano_data_2022 --data --eventcontent NANOAODSIM --datatier NANOAODS
7979
```
8080
cmsDriver.py nano_mc_Run3 --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --step NANO \
8181
--conditions 124X_mcRun3_2022_realistic_v11 --era Run3 \
82-
--customise_commands="process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100" --nThreads 4 \
82+
--customise_commands="process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=1000;process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True)" --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 \
8484
--customise="PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_add_DeepJet_and_Truth" --no_exec
8585
```
@@ -88,7 +88,7 @@ cmsDriver.py nano_mc_Run3 --mc --eventcontent NANOAODSIM --datatier NANOAODSIM -
8888
```
8989
cmsDriver.py nano_mc_Run3_122X --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --step NANO \
9090
--conditions 124X_mcRun3_2022_realistic_v11 --era Run3,run3_nanoAOD_122 \
91-
--customise_commands="process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=100" --nThreads 4 \
91+
--customise_commands="process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=1000;process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True)" --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 \
9393
--customise="PhysicsTools/NanoAOD/V10/nano_cff.nanoAOD_customizeV10,PhysicsTools/PFNano/pfnano_cff.PFnano_customizeMC_add_DeepJet_and_Truth" --no_exec
9494
```
@@ -132,7 +132,7 @@ When processing data, a lumi mask should be applied. The so called golden JSON s
132132

133133
* Golden JSON prompt
134134
```
135-
# 2022: /eos/user/c/cmsdqm/www/CAF/certification/Collisions22/Cert_Collisions2022_355100_357900_Golden.json
135+
# 2022: /eos/user/c/cmsdqm/www/CAF/certification/Collisions22/Cert_Collisions2022_355100_362760_Golden.json
136136
```
137137

138138

python/pfnano_cff.py

-18
Original file line numberDiff line numberDiff line change
@@ -7,107 +7,89 @@
77
def PFnano_customizeMC(process):
88
addPFCands(process, True)
99
add_BTV(process, True, keepInputs=['DeepCSV','DDX'])
10-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
1110
return process
1211

1312
def PFnano_customizeMC_add_DeepJet(process):
1413
addPFCands(process, True)
1514
add_BTV(process, True, keepInputs=['DeepCSV','DeepJet','DDX'])
16-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
1715
return process
1816

1917
def PFnano_customizeMC_add_DeepJet_and_Truth(process):
2018
addPFCands(process, True)
2119
add_BTV(process, True, keepInputs=['DeepCSV','DeepJet','DDX'], storeAK4Truth="yes")
22-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
2320
return process
2421

2522
def PFnano_customizeMC_allPF(process):
2623
addPFCands(process, True, True)
2724
add_BTV(process, True, keepInputs=['DeepCSV','DDX'])
28-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
2925
return process
3026

3127
def PFnano_customizeMC_allPF_add_DeepJet(process):
3228
addPFCands(process, True, True)
3329
add_BTV(process, True, keepInputs=['DeepCSV','DeepJet','DDX'])
34-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
3530
return process
3631

3732
def PFnano_customizeMC_allPF_add_DeepJet_and_Truth(process):
3833
addPFCands(process, True, True)
3934
add_BTV(process, True, keepInputs=['DeepCSV','DeepJet','DDX'], storeAK4Truth="yes")
40-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
4135
return process
4236

4337
def PFnano_customizeMC_AK4JetsOnly(process):
4438
addPFCands(process, True, False, True)
4539
add_BTV(process, True, True, keepInputs=['DeepCSV'])
46-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
4740
return process
4841

4942
def PFnano_customizeMC_AK4JetsOnly_add_DeepJet(process):
5043
addPFCands(process, True, False, True)
5144
add_BTV(process, True, True, keepInputs=['DeepCSV','DeepJet'])
52-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
5345
return process
5446

5547
def PFnano_customizeMC_AK8JetsOnly(process):
5648
addPFCands(process, True, False, False, True)
5749
add_BTV(process, True, False, True, keepInputs=['DDX'])
58-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
5950
return process
6051

6152
def PFnano_customizeMC_noInputs(process):
6253
add_BTV(process, True, keepInputs=[])
63-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
6454
return process
6555

6656

6757
#### DATA customization
6858
def PFnano_customizeData(process):
6959
addPFCands(process, False)
7060
add_BTV(process, False, keepInputs=['DeepCSV','DDX'])
71-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
7261
return process
7362

7463
def PFnano_customizeData_add_DeepJet(process):
7564
addPFCands(process, False)
7665
add_BTV(process, False, keepInputs=['DeepCSV','DeepJet','DDX'])
77-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
7866
return process
7967

8068
def PFnano_customizeData_allPF(process):
8169
addPFCands(process, False, True)
8270
add_BTV(process, False, keepInputs=['DeepCSV','DDX'])
83-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
8471
return process
8572

8673
def PFnano_customizeData_allPF_add_DeepJet(process):
8774
addPFCands(process, False, True)
8875
add_BTV(process, False, keepInputs=['DeepCSV','DeepJet','DDX'])
89-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
9076
return process
9177

9278
def PFnano_customizeData_AK4JetsOnly(process):
9379
addPFCands(process, False, False, True)
9480
add_BTV(process, False, True, keepInputs=['DeepCSV'])
95-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
9681
return process
9782

9883
def PFnano_customizeData_AK4JetsOnly_add_DeepJet(process):
9984
addPFCands(process, False, False, True)
10085
add_BTV(process, False, True, keepInputs=['DeepCSV','DeepJet'])
101-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
10286
return process
10387

10488
def PFnano_customizeData_AK8JetsOnly(process):
10589
addPFCands(process, False, False, False, True)
10690
add_BTV(process, False, False, True, keepInputs=['DDX'])
107-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
10891
return process
10992

11093
def PFnano_customizeData_noInputs(process):
11194
add_BTV(process, False, keepInputs=[])
112-
process.NANOAODSIMoutput.fakeNameForCrab = cms.untracked.bool(True) # needed for crab publication
11395
return process

test/card_example_data.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ campaign:
1717
# Specify if running on data
1818
data: True
1919
# data: False
20-
lumiMask: # json file TBA
20+
lumiMask: jsons/Cert_Collisions2022_355100_362760_Golden.json # json file /eos/user/c/cmsdqm/www/CAF/certification/Collisions22/Cert_Collisions2022_355100_362760_Golden.json
2121
# datasets will take either a list of DAS names or a text file containing them
2222
#datasets: datasets/DoubleMuon_22.txt
2323
# do NOT submit too many tasks at the same time, despite it looking more convenient to you
2424
# wait for tasks to finish before submitting entire campaigns,
2525
# it's better to request one dataset at a time (taking fairshare into account)
2626
datasets: /DoubleMuon/Run2022C-PromptReco-v1/MINIAOD
27-
27+

0 commit comments

Comments
 (0)