def customizePuppi(self, process): # need to allow unscheduled processes otherwise reclustering function will fail if not hasattr(process, "options"): process.options = cms.untracked.PSet() process.options.allowUnscheduled = cms.untracked.bool(True) from flashgg.MicroAOD.flashggJets_cfi import addFlashggPuppiJets from flashgg.MicroAOD.flashggJets_cfi import maxJetCollections for vtx in range(0, maxJetCollections): addFlashggPuppiJets (process = process, \ vertexIndex = vtx, debug = False, label = '' + str(vtx))
def customizePuppi(self,process): # need to allow unscheduled processes otherwise reclustering function will fail if not hasattr(process,"options"): process.options = cms.untracked.PSet() process.options.allowUnscheduled = cms.untracked.bool(True) from flashgg.MicroAOD.flashggJets_cfi import addFlashggPuppiJets from flashgg.MicroAOD.flashggJets_cfi import maxJetCollections for vtx in range(0,maxJetCollections): addFlashggPuppiJets (process = process, \ vertexIndex = vtx, debug = False, label = '' + str(vtx))
) # import function which takes care of reclustering the jets using legacy vertex from flashgg.MicroAOD.flashggJets_cfi import addFlashggPFCHSJets from flashgg.MicroAOD.flashggJets_cfi import addFlashggPuppiJets from flashgg.MicroAOD.flashggJets_cfi import maxJetCollections from flashgg.MicroAOD.flashggJets_cfi import PuppiJetCollectionVInputTag, JetCollectionVInputTag # call the function, it takes care of everything else. for vtx in range(0,maxJetCollections): addFlashggPFCHSJets (process = process, vertexIndex =vtx, doQGTagging = False, label = '' + str(vtx)) addFlashggPuppiJets (process = process, vertexIndex = vtx, debug = False, label = '' + str(vtx)) #------------------------------------------------------------------------------------------------ # run a standard puppi with the default seeting from flashgg.MicroAOD.flashggExtraJets_cfi import addStandardPuppiJets addStandardPuppiJets(process, label = '', debug = True) from flashgg.Taggers.flashggTags_cff import UnpackedJetCollectionVInputTag from flashgg.MicroAOD.flashggExtraJets_cfi import StandardPUPIJetVInputTag process.flashggJetTreeMakerPFCHS = cms.EDAnalyzer('FlashggJetValidationTreeMaker', GenParticleTag = cms.untracked.InputTag('prunedGenParticles'), DiPhotonTag = cms.InputTag('flashggDiPhotons'),
# this is because of the jet clustering tool, and we have to live with it for now. process.options = cms.untracked.PSet(allowUnscheduled=cms.untracked.bool(True)) # import function which takes care of reclustering the jets using legacy vertex from flashgg.MicroAOD.flashggJets_cfi import addFlashggPFCHSJets from flashgg.MicroAOD.flashggJets_cfi import addFlashggPuppiJets from flashgg.MicroAOD.flashggJets_cfi import maxJetCollections from flashgg.MicroAOD.flashggJets_cfi import PuppiJetCollectionVInputTag, JetCollectionVInputTag # call the function, it takes care of everything else. for vtx in range(0, maxJetCollections): addFlashggPFCHSJets(process=process, vertexIndex=vtx, doQGTagging=False, label='' + str(vtx)) addFlashggPuppiJets(process=process, vertexIndex=vtx, debug=False, label='' + str(vtx)) #------------------------------------------------------------------------------------------------ # run a standard puppi with the default seeting from flashgg.MicroAOD.flashggExtraJets_cfi import addStandardPuppiJets addStandardPuppiJets(process, label='', debug=True) from flashgg.Taggers.flashggTags_cff import UnpackedJetCollectionVInputTag from flashgg.MicroAOD.flashggExtraJets_cfi import StandardPUPIJetVInputTag process.flashggJetTreeMakerPFCHS = cms.EDAnalyzer( 'FlashggJetValidationTreeMaker', GenParticleTag=cms.untracked.InputTag('prunedGenParticles'), DiPhotonTag=cms.InputTag('flashggDiPhotons'), inputTagJets=JetCollectionVInputTag,