CMS 3D CMS Logo

Classes | Functions | Variables

trigTools Namespace Reference

Classes

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 _defaultPostfix = ''
string _defaultPostfixComment = "Postfix to apply to PAT module labels, default: %s"
string _defaultSequence = 'patDefaultSequence'
string _defaultSequenceComment = "Name of sequence to use, default: %s"
string _defaultTriggerEventProducer = 'patTriggerEvent'
string _defaultTriggerEventProducerComment = "PATTriggerEventProducer module label, default: %s"
string _defaultTriggerMatchersComment = "Trigger matcher modules' labels, default: ..."
string _defaultTriggerProducer = 'patTrigger'
string _defaultTriggerProducerComment = "PATTriggerProducer module label, default: %s"
string _longLine = '---------------------------------------------------------------------'
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 29 of file trigTools.py.

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

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

Definition at line 25 of file trigTools.py.

00026                                                 :
00027     return [ m.label() for m in listModules( getattr( process, sequenceLabel ) ) ]
00028 


Variable Documentation

Definition at line 10 of file trigTools.py.

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

Definition at line 18 of file trigTools.py.

Definition at line 11 of file trigTools.py.

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

Definition at line 19 of file trigTools.py.

Definition at line 12 of file trigTools.py.

string trigTools::_defaultPostfixComment = "Postfix to apply to PAT module labels, default: %s"

Definition at line 20 of file trigTools.py.

string trigTools::_defaultSequence = 'patDefaultSequence'

Definition at line 9 of file trigTools.py.

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

Definition at line 17 of file trigTools.py.

string trigTools::_defaultTriggerEventProducer = 'patTriggerEvent'

Definition at line 8 of file trigTools.py.

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

Definition at line 16 of file trigTools.py.

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

Definition at line 14 of file trigTools.py.

string trigTools::_defaultTriggerProducer = 'patTrigger'

Definition at line 7 of file trigTools.py.

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

Definition at line 15 of file trigTools.py.

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

Definition at line 22 of file trigTools.py.

Definition at line 188 of file trigTools.py.

Definition at line 711 of file trigTools.py.

Definition at line 437 of file trigTools.py.

Definition at line 552 of file trigTools.py.

Definition at line 285 of file trigTools.py.