def createStandardSystematicsProducers(process): process.load("flashgg/Taggers/flashggTagSequence_cfi") process.load("flashgg.Systematics.flashggDiPhotonSystematics_cfi") process.load("flashgg.Systematics.flashggMuonSystematics_cfi") process.load("flashgg.Systematics.flashggElectronSystematics_cfi") from flashgg.Taggers.flashggTags_cff import UnpackedJetCollectionVInputTag from flashgg.Systematics.flashggJetSystematics_cfi import createJetSystematics jetSystematicsInputTags = createJetSystematics(process,UnpackedJetCollectionVInputTag) return jetSystematicsInputTags
def createStandardSystematicsProducers(process): process.load("flashgg/Taggers/flashggTagSequence_cfi") process.load("flashgg.Systematics.flashggDiPhotonSystematics_cfi") process.load("flashgg.Systematics.flashggMuonSystematics_cfi") process.load("flashgg.Systematics.flashggElectronSystematics_cfi") from flashgg.Taggers.flashggTags_cff import UnpackedJetCollectionVInputTag from flashgg.Systematics.flashggJetSystematics_cfi import createJetSystematics jetSystematicsInputTags = createJetSystematics( process, UnpackedJetCollectionVInputTag) return jetSystematicsInputTags
def createStandardSystematicsProducers(process, MUON_ID="Loose" , MUON_ISO="LooseRel"): process.load("flashgg/Taggers/flashggTagSequence_cfi") process.load("flashgg.Systematics.flashggDiPhotonSystematics_cfi") process.load("flashgg.Systematics.flashggMuonSystematics_cfi") process.load("flashgg.Systematics.flashggElectronSystematics_cfi") process.load("flashgg.Systematics.flashggMetSystematics_cfi") import flashgg.Systematics.flashggMuonSystematics_cfi as muon_sf muon_sf.SetupMuonScaleFactors( process , MUON_ID , MUON_ISO ) from flashgg.Taggers.flashggTags_cff import UnpackedJetCollectionVInputTag from flashgg.Systematics.flashggJetSystematics_cfi import createJetSystematics jetSystematicsInputTags = createJetSystematics(process,UnpackedJetCollectionVInputTag) return jetSystematicsInputTags
)) process.TFileService = cms.Service("TFileService", fileName = cms.string("VBFTagsDump.root"), closeFileFast = cms.untracked.bool(True)) from flashgg.Taggers.flashggTagOutputCommands_cff import tagDefaultOutputCommand import flashgg.Taggers.dumperConfigTools as cfgTools from flashgg.Taggers.tagsDumpers_cfi import createTagDumper if doSystematics: from flashgg.Taggers.flashggTags_cff import UnpackedJetCollectionVInputTag from flashgg.Systematics.flashggJetSystematics_cfi import createJetSystematics process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService") jetSystematicsInputTags = createJetSystematics(process,UnpackedJetCollectionVInputTag) process.load("flashgg.Taggers.flashggTagSequence_cfi") process.load("flashgg.Taggers.flashggTagTester_cfi") if doSystematics: process.flashggTagSequence.remove(process.flashggUnpackedJets) for i in range(len(UnpackedJetCollectionVInputTag)): massSearchReplaceAnyInputTag(process.flashggTagSequence,UnpackedJetCollectionVInputTag[i],jetSystematicsInputTags[i]) process.flashggVBFTagMerger = cms.EDProducer("VBFTagMerger",src=cms.VInputTag("flashggVBFTag")) # Use JetID process.flashggVBFMVA.UseJetID = cms.bool(True) process.flashggVBFMVA.JetIDLevel = cms.string("Loose") # use custum TMVA weights
#process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService", # flashggDiPhotonSystematics = cms.PSet(initialSeed = cms.untracked.uint32(664)), # flashggElectronSystematics = cms.PSet(initialSeed = cms.untracked.uint32(11)), # flashggMuonSystematics = cms.PSet(initialSeed = cms.untracked.uint32(13)), # flashggTagSystematics = cms.PSet(initialSeed = cms.untracked.uint32(999)), # flashggRandomizedPerPhotonDiPhotons = cms.PSet(initialSeed = cms.untracked.uint32(281765313)) # ) process.load("flashgg.Systematics.flashggDiPhotonSystematics_cfi") process.load("flashgg.Systematics.flashggMuonSystematics_cfi") process.load("flashgg.Systematics.flashggElectronSystematics_cfi") from flashgg.Taggers.flashggTags_cff import UnpackedJetCollectionVInputTag from flashgg.Systematics.flashggJetSystematics_cfi import createJetSystematics jetSystematicsInputTags = createJetSystematics(process, UnpackedJetCollectionVInputTag) #from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak4PFCHSL1FastL2L3 #process.ak4PFCHSL1FastL2L3 = ak4PFCHSL1FastL2L3 process.load("JetMETCorrections.Configuration.JetCorrectionServices_cff") process.load("flashgg/Taggers/flashggTagSequence_cfi") # UnpackedJets has to go in front of the systematics producers, and only needs to be run once # We put it back later process.flashggTagSequence.remove(process.flashggUnpackedJets) from PhysicsTools.PatAlgos.tools.helpers import cloneProcessingSnippet, massSearchReplaceAnyInputTag massSearchReplaceAnyInputTag(process.flashggTagSequence, cms.InputTag("flashggDiPhotons"), cms.InputTag("flashggDiPhotonSystematics")) massSearchReplaceAnyInputTag(process.flashggTagSequence,