Functions | |
def | switchOffTriggerMatchingOld |
def | switchOnTrigger |
def | switchOnTriggerAll |
def | switchOnTriggerMatchEmbedding |
def | switchOnTriggerStandAlone |
def | switchTriggerOff |
def trigTools::switchOffTriggerMatchingOld | ( | process | ) |
Disables old style trigger matching in PAT
Definition at line 3 of file trigTools.py.
00003 : 00004 """ Disables old style trigger matching in PAT """ 00005 process.allLayer1Electrons.addTrigMatch = False 00006 process.allLayer1Muons.addTrigMatch = False 00007 process.allLayer1Jets.addTrigMatch = False 00008 process.allLayer1Photons.addTrigMatch = False 00009 process.allLayer1Taus.addTrigMatch = False 00010 process.layer1METs.addTrigMatch = False 00011 # process.patDefaultSequence.remove( process.patTrigMatch ) 00012 00013 # for (temporary) backwards compatibility def switchTriggerOff( process ):
def trigTools::switchOnTrigger | ( | process | ) |
Enables trigger information in PAT
Definition at line 19 of file trigTools.py.
00019 : 00020 """ Enables trigger information in PAT """ 00021 process.patTrigger.onlyStandAlone = False 00022 # add trigger modules to path 00023 process.p *= process.patTriggerSequence 00024 # add trigger specific event content to PAT event content 00025 process.out.outputCommands += patTriggerEventContent 00026 for matchLabel in process.patTriggerEvent.patTriggerMatches: 00027 process.out.outputCommands += [ 'keep patTriggerObjectsedmAssociation_patTriggerEvent_' + matchLabel + '_*' ] 00028 def switchOnTriggerStandAlone( process ):
def trigTools::switchOnTriggerAll | ( | process | ) |
Definition at line 35 of file trigTools.py.
00035 : 00036 switchOnTrigger( process ) 00037 process.out.outputCommands += patTriggerStandAloneEventContent 00038 def switchOnTriggerMatchEmbedding( process ):
def trigTools::switchOnTriggerMatchEmbedding | ( | process | ) |
Definition at line 39 of file trigTools.py.
00039 : 00040 process.patTriggerSequence += process.patTriggerMatchEmbedder 00041 process.out.outputCommands += patEventContentTriggerMatch process.out.outputCommands += patEventContentTriggerMatch
def trigTools::switchOnTriggerStandAlone | ( | process | ) |
Definition at line 29 of file trigTools.py.
00029 : 00030 process.patTrigger.onlyStandAlone = True 00031 process.patTriggerSequence.remove( process.patTriggerEvent ) 00032 process.p *= process.patTriggerSequence 00033 process.out.outputCommands += patTriggerStandAloneEventContent 00034 def switchOnTriggerAll( process ):
def trigTools::switchTriggerOff | ( | process | ) |
Definition at line 14 of file trigTools.py.
00014 : 00015 switchOffTriggerMatchingOld( process ) 00016 from PhysicsTools.PatAlgos.patEventContent_cff import *