CMS 3D CMS Logo

Classes | Functions | Variables

trigTools Namespace Reference

Classes

class  RemoveCleaningFromTriggerMatching
class  SwitchOnTrigger
class  SwitchOnTriggerMatchEmbedding
class  SwitchOnTriggerMatching
class  SwitchOnTriggerMatchingStandAlone
class  SwitchOnTriggerStandAlone

Functions

def _addEventContent
def _modulesInSequence

Variables

string _defaultHltProcess = 'HLT'
string _defaultHltProcessComment = "HLT process name, default: %s"
string _defaultOutputModule = 'out'
string _defaultOutputModuleComment = "Output module label, empty label indicates no output, default: %s"
string _defaultSequence = 'patDefaultSequence'
string _defaultSequenceComment = "Name of sequence to use, default: %s"
string _defaultTriggerEventProducer = 'patTriggerEvent'
string _defaultTriggerEventProducerComment = "PATTriggerEventProducer module label, default: %s"
list _defaultTriggerMatchers
string _defaultTriggerMatchersComment = "Trigger matcher modules' labels, default: ..."
string _defaultTriggerProducer = 'patTrigger'
string _defaultTriggerProducerComment = "PATTriggerProducer module label, default: %s"
string _longLine = '---------------------------------------------------------------------'
tuple removeCleaningFromTriggerMatching = RemoveCleaningFromTriggerMatching()
tuple switchOnTrigger = SwitchOnTrigger()
tuple switchOnTriggerMatchEmbedding = SwitchOnTriggerMatchEmbedding()
tuple switchOnTriggerMatching = SwitchOnTriggerMatching()
tuple switchOnTriggerMatchingStandAlone = SwitchOnTriggerMatchingStandAlone()
tuple switchOnTriggerStandAlone = SwitchOnTriggerStandAlone()

Function Documentation

def trigTools::_addEventContent (   outputCommands,
  eventContent 
) [private]

Definition at line 34 of file trigTools.py.

00035                                                     :
00036     # add new entry to event content
00037     for content in eventContent:
00038         if content not in outputCommands:
00039             outputCommands += [ content ]
00040     # check for obsolete entries
00041     listToRemove = []
00042     for i in range( len( outputCommands ) ):
00043         if i in listToRemove:
00044             continue
00045         command = outputCommands[ i ]
00046         if command[ : 4 ] == 'keep':
00047             dropCommand = command.replace( 'keep ', 'drop ' )
00048             for j in range( i + 1, len( outputCommands ) ):
00049                 testCommand = outputCommands[ j ]
00050                 if testCommand == command:
00051                     listToRemove += [ j ]
00052                 elif testCommand == dropCommand:
00053                     listToRemove += [ i, j ]
00054                     break
00055     # copy entries excl. obsolete ones
00056     newOutputCommands = cms.untracked.vstring()
00057     for i in range( len( outputCommands ) ):
00058         if i not in listToRemove:
00059             newOutputCommands += [ outputCommands[ i ] ]
00060     # return result
00061     return newOutputCommands
00062 

def trigTools::_modulesInSequence (   process,
  sequenceLabel 
) [private]

Definition at line 30 of file trigTools.py.

00031                                                 :
00032     return [ m.label() for m in listModules( getattr( process, sequenceLabel ) ) ]
00033 


Variable Documentation

Definition at line 17 of file trigTools.py.

string trigTools::_defaultHltProcessComment = "HLT process name, default: %s"

Definition at line 24 of file trigTools.py.

Definition at line 18 of file trigTools.py.

string trigTools::_defaultOutputModuleComment = "Output module label, empty label indicates no output, default: %s"

Definition at line 25 of file trigTools.py.

string trigTools::_defaultSequence = 'patDefaultSequence'

Definition at line 16 of file trigTools.py.

string trigTools::_defaultSequenceComment = "Name of sequence to use, default: %s"

Definition at line 23 of file trigTools.py.

string trigTools::_defaultTriggerEventProducer = 'patTriggerEvent'

Definition at line 15 of file trigTools.py.

string trigTools::_defaultTriggerEventProducerComment = "PATTriggerEventProducer module label, default: %s"

Definition at line 22 of file trigTools.py.

Initial value:
00001 [ 'cleanMuonTriggerMatchHLTMu20'
00002                                , 'cleanMuonTriggerMatchHLTDoubleMu6'
00003                                , 'cleanPhotonTriggerMatchHLTPhoton26IsoVLPhoton18'
00004                                , 'cleanElectronTriggerMatchHLTEle27CaloIdVTCaloIsoTTrkIdTTrkIsoT'
00005                                , 'cleanTauTriggerMatchHLTDoubleIsoPFTau20Trk5'
00006                                , 'cleanJetTriggerMatchHLTJet240'
00007                                , 'metTriggerMatchHLTMET100'
00008                                ]

Definition at line 6 of file trigTools.py.

string trigTools::_defaultTriggerMatchersComment = "Trigger matcher modules' labels, default: ..."

Definition at line 20 of file trigTools.py.

string trigTools::_defaultTriggerProducer = 'patTrigger'

Definition at line 14 of file trigTools.py.

string trigTools::_defaultTriggerProducerComment = "PATTriggerProducer module label, default: %s"

Definition at line 21 of file trigTools.py.

string trigTools::_longLine = '---------------------------------------------------------------------'

Definition at line 27 of file trigTools.py.

Definition at line 769 of file trigTools.py.

Definition at line 189 of file trigTools.py.

Definition at line 669 of file trigTools.py.

Definition at line 424 of file trigTools.py.

Definition at line 529 of file trigTools.py.

Definition at line 284 of file trigTools.py.