Skip to content

Commit

Permalink
Merge pull request cms-sw#17 from kdlong/WmassNanoProd_10_6_26
Browse files Browse the repository at this point in the history
Add support for tag and probe nano in cmsDriver
  • Loading branch information
kdlong committed Jun 27, 2022
2 parents 645f845 + ae851bf commit 052ac6c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 8 additions & 0 deletions Configuration/Applications/python/ConfigBuilder.py
Expand Up @@ -938,6 +938,7 @@ def define_Configs(self):
self.PATDefaultCFF="Configuration/StandardSequences/PAT_cff"
self.NANODefaultCFF="PhysicsTools/NanoAOD/nano_cff"
self.NANOGENDefaultCFF="PhysicsTools/NanoAOD/nanogen_cff"
self.USERNANODefaultCFF="PhysicsTools/NanoAOD/customNano_cff"
self.EIDefaultCFF=None
self.SKIMDefaultCFF="Configuration/StandardSequences/Skims_cff"
self.POSTRECODefaultCFF="Configuration/StandardSequences/PostRecoGenerator_cff"
Expand Down Expand Up @@ -989,6 +990,7 @@ def define_Configs(self):
self.PATGENDefaultSeq='miniGEN'
#TODO: Check based of file input
self.NANOGENDefaultSeq='nanogenSequence'
self.USERNANODefaultSeq=''
self.NANODefaultSeq='nanoSequence'

self.EVTCONTDefaultCFF="Configuration/EventContent/EventContent_cff"
Expand Down Expand Up @@ -1704,6 +1706,12 @@ def prepare_NANOGEN(self, sequence = "nanoAOD"):
else:
self._options.customisation_file.insert(0, '.'.join([self.NANOGENDefaultCFF, custom]))

def prepare_USERNANO(self, sequence = "nanoAOD"):
''' Enrich the schedule with USERNANO'''
print("The sequence is", sequence)
self.loadDefaultOrSpecifiedCFF(sequence,self.USERNANODefaultCFF)
self.scheduleSequence(sequence.split('.')[-1],'nanoAOD_step')

def prepare_EI(self, sequence = None):
''' Enrich the schedule with event interpretation '''
from Configuration.StandardSequences.EventInterpretation import EventInterpretation
Expand Down
1 change: 1 addition & 0 deletions PhysicsTools/NanoAOD/python/customNano_cff.py
@@ -0,0 +1 @@
from PhysicsTools.NanoAOD.nanoTP_cff import *
4 changes: 0 additions & 4 deletions PhysicsTools/NanoAOD/python/nano_cff.py
Expand Up @@ -467,10 +467,6 @@ def nanoGenWmassCustomize(process):

process.lheInfoTable.storeAllLHEInfo = True

process.massWeights = cms.EDProducer("LHEWeightProductProducer",
lheSourceLabels = cms.vstring("correctMassWeights"),
)

process.genWeightsTable.weightgroups = ['scale', 'PDF', 'matrix element', 'unknown', 'parton shower']
process.genWeightsTable.maxGroupsPerType = [-1, -1, -1, -1, 1]

Expand Down

0 comments on commit 052ac6c

Please sign in to comment.