示例#1
0
 def customizeSignal(self,process):
     process.flashggGenPhotonsExtra.defaultType = 1
     from flashgg.MicroAOD.flashggMETs_cff import runMETs
     runMETs(process,True) #isMC
     # Default should be the right name for all signals
     process.load("flashgg/MicroAOD/flashggPDFWeightObject_cfi")
     process.p *= process.flashggPDFWeightObject
示例#2
0
 def customizeData(self,process):
     ## remove MC-specific modules
     modules = process.flashggMicroAODGenSequence.moduleNames()
     from flashgg.MicroAOD.flashggMETs_cff import runMETs
     runMETs(process,False) #!isMC
     for pathName in process.paths:
         path = getattr(process,pathName)
         for mod in modules:
             path.remove( getattr(process,mod))
         print getattr(process,pathName)
     process.out.outputCommands.append("drop *_*Gen*_*_*")
     process.out.outputCommands.append("keep *_*_*RecHit*_*") # for bad events
     delattr(process,"flashggPrunedGenParticles") # will be run due to unscheduled mode unless deleted
     self.customizeHighMassIsolations(process)
示例#3
0
 def customizeBackground(self,process):
     from flashgg.MicroAOD.flashggMETs_cff import runMETs
     runMETs(process,True) #isMC
     if "sherpa" in self.datasetName:
         process.flashggGenPhotonsExtra.defaultType = 1