Skip to content

Commit 0c32405

Browse files
committed
Correction of editor effects...
1 parent a315e2f commit 0c32405

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

test/runBTagAnalyzer_cfg.py

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,11 @@
185185
VarParsing.varType.bool,
186186
"Produce all track tree"
187187
)
188+
options.register('useNegativeDeepFlavourTags', False,
189+
VarParsing.multiplicity.singleton,
190+
VarParsing.varType.bool,
191+
"Include negative deep flavour jet taggers"
192+
)
188193

189194
## Generally leave to False unless you know what you are doing
190195
options.register('runIVF', False,
@@ -324,7 +329,10 @@
324329
)
325330

326331
## 'maxEvents' is already registered by the Framework, changing default value
332+
#$$
327333
options.setDefault('maxEvents', -1)
334+
#options.setDefault('maxEvents', 100)
335+
#$$
328336

329337
options.parseArguments()
330338
if options.defaults:
@@ -374,7 +382,7 @@
374382
break
375383
if(not found):
376384
print('WARNING: The group ' + requiredGroup + ' was not found')
377-
385+
378386
#change values accordingly
379387
for switch in options_to_change:
380388
if switch not in options._beenSet:
@@ -581,6 +589,10 @@
581589
bTagInfos = bTagInfosLegacy
582590
bTagDiscriminators = bTagDiscriminatorsLegacy
583591

592+
## If not including negative deep flavour jet taggers
593+
if not options.useNegativeDeepFlavourTags:
594+
bTagDiscriminators = {i for i in bTagDiscriminators if 'NegativeDeepFlavourJetTags' not in i}
595+
584596
## Clustering algorithm label
585597
algoLabel = 'CA'
586598
if options.jetAlgo == 'AntiKt':
@@ -736,7 +748,14 @@
736748
if options.miniAOD:
737749
process.source.fileNames = [
738750
#/QCD_Pt-1000toInf_MuEnrichedPt5_TuneCP5_13TeV_pythia8/RunIIFall17MiniAOD-94X_mc2017_realistic_v10-v1/MINIAODSIM
739-
'/store/mc/RunIIFall17MiniAOD/QCD_Pt-1000toInf_MuEnrichedPt5_TuneCP5_13TeV_pythia8/MINIAODSIM/94X_mc2017_realistic_v10-v1/00000/C8E934F8-1C06-E811-888D-0242AC130002.root'
751+
#$$
752+
# '/store/relval/CMSSW_10_4_0_mtd3/RelValTTbar_Tauola_14TeV/MINIAODSIM/PU25ns_103X_upgrade2023_realistic_v2_2023D35PU200_1-v2/20000/31C1C942-EC8D-1245-B773-2293F5CC87DB.root'
753+
# '/store/relval/CMSSW_10_4_0_mtd3/RelValTTbar_Tauola_14TeV/MINIAODSIM/PU25ns_103X_upgrade2023_realistic_v2_2023D35PU200_2-v2/20000/CEEBB55B-67BC-F54C-9243-8D11EEBCA67F.root'
754+
# '/store/relval/CMSSW_10_4_0_mtd3/RelValTTbar_Tauola_14TeV/MINIAODSIM/PU25ns_103X_upgrade2023_realistic_v2_2023D35PU200_3-v2/20000/3CE6CC6E-10D0-354B-8AA6-C22FDA11A181.root',
755+
# '/store/relval/CMSSW_10_4_0_mtd3/RelValTTbar_Tauola_14TeV/MINIAODSIM/PU25ns_103X_upgrade2023_realistic_v2_2023D35PU200_3-v2/20000/D083516F-39B8-3947-9013-112F24795E45.root'
756+
# '/store/relval/CMSSW_10_4_0_mtd3/RelValTTbar_Tauola_14TeV/MINIAODSIM/PU25ns_103X_upgrade2023_realistic_v2_2023D35PU200_4-v2/20000/39ECB63E-296D-9442-BD46-8F96E4832418.root'
757+
'/store/relval/CMSSW_10_4_0_mtd3/RelValTTbar_Tauola_14TeV/MINIAODSIM/PU25ns_103X_upgrade2023_realistic_v2_2023D35PU200_5-v2/20000/A8AD8A25-CDC1-2E4B-A404-E9DB14ECF16A.root'
758+
#$$
740759
]
741760
if options.runOnData:
742761
process.source.fileNames = [
@@ -878,7 +897,10 @@
878897
)
879898

880899
process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
881-
process.load("Configuration.Geometry.GeometryRecoDB_cff")
900+
#$$
901+
if 'Phase2' in options.eras: process.load('Configuration.Geometry.GeometryExtended2023D17Reco_cff')
902+
else: process.load("Configuration.Geometry.GeometryRecoDB_cff")
903+
#$$
882904
process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
883905

884906
#-------------------------------------
@@ -1477,6 +1499,7 @@
14771499
# process.btagana.produceAllTrackTree = True
14781500
# process.btagana.producePtRelTemplate = False
14791501
#------------------
1502+
14801503
#Handle groups
14811504
for requiredGroup in process.btagana.groups:
14821505
for storedGroup in btagana_tmp.groups:
@@ -1514,6 +1537,7 @@
15141537
process.btagana.runPatMuons = options.runPatMuons
15151538
process.btagana.runCTagVariables = options.runCTagVariables
15161539
process.btagana.runEventInfo = options.runEventInfo
1540+
15171541
process.btagana.runOnData = options.runOnData
15181542

15191543
if options.runOnData:
@@ -1654,4 +1678,4 @@
16541678
# Delete predefined output module (needed for running with CRAB)
16551679
del process.out
16561680

1657-
open('pydump.py','w').write(process.dumpPython())
1681+
open('pydump.py','w').write(process.dumpPython())

0 commit comments

Comments
 (0)