CMS 3D CMS Logo

Classes | Functions | Variables
trigTools Namespace Reference

Classes

class  SwitchOnTrigger
 
class  SwitchOnTriggerMatchEmbedding
 
class  SwitchOnTriggerMatching
 
class  SwitchOnTriggerMatchingStandAlone
 
class  SwitchOnTriggerStandAlone
 

Functions

def _addEventContent (outputCommands, eventContent)
 
def _modulesInPath (process, pathLabel)
 

Variables

 _defaultHltProcess
 
 _defaultHltProcessComment
 
 _defaultOutputModule
 
 _defaultOutputModuleComment
 
 _defaultPath
 
 _defaultPathComment
 
 _defaultPostfix
 
 _defaultPostfixComment
 
 _defaultTriggerEventProducer
 
 _defaultTriggerEventProducerComment
 
 _defaultTriggerMatchersComment
 
 _defaultTriggerProducer
 
 _defaultTriggerProducerComment
 
 _longLine
 
 switchOnTrigger
 
 switchOnTriggerMatchEmbedding
 
 switchOnTriggerMatching
 
 switchOnTriggerMatchingStandAlone
 
 switchOnTriggerStandAlone
 

Function Documentation

def trigTools._addEventContent (   outputCommands,
  eventContent 
)
private

Definition at line 30 of file trigTools.py.

Referenced by runJetUncertainties.RunJetUncertainties.toolCode(), trigTools.SwitchOnTrigger.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), and trigTools.SwitchOnTriggerMatchEmbedding.toolCode().

30 def _addEventContent( outputCommands, eventContent ):
31  # add new entry to event content
32  for content in eventContent:
33  if content not in outputCommands:
34  outputCommands += [ content ]
35  # check for obsolete entries
36  listToRemove = []
37  for i in range( len( outputCommands ) ):
38  if i in listToRemove:
39  continue
40  command = outputCommands[ i ]
41  if command[ : 4 ] == 'keep':
42  dropCommand = command.replace( 'keep ', 'drop ' )
43  for j in range( i + 1, len( outputCommands ) ):
44  testCommand = outputCommands[ j ]
45  if testCommand == command:
46  listToRemove += [ j ]
47  elif testCommand == dropCommand:
48  listToRemove += [ i, j ]
49  break
50  # copy entries excl. obsolete ones
51  newOutputCommands = cms.untracked.vstring()
52  for i in range( len( outputCommands ) ):
53  if i not in listToRemove:
54  newOutputCommands += [ outputCommands[ i ] ]
55  # return result
56  return newOutputCommands
57 
58 
def _addEventContent(outputCommands, eventContent)
Definition: trigTools.py:30
def trigTools._modulesInPath (   process,
  pathLabel 
)
private

Definition at line 26 of file trigTools.py.

References helpers.listModules().

Referenced by trigTools.SwitchOnTrigger.toolCode(), and trigTools.SwitchOnTriggerStandAlone.toolCode().

26 def _modulesInPath( process, pathLabel ):
27  return [ m.label() for m in listModules( getattr( process, pathLabel ) ) ]
28 
29 
def listModules(sequence)
Definition: helpers.py:207
def _modulesInPath(process, pathLabel)
Definition: trigTools.py:26

Variable Documentation

trigTools._defaultHltProcess
private

Definition at line 11 of file trigTools.py.

trigTools._defaultHltProcessComment
private

Definition at line 19 of file trigTools.py.

trigTools._defaultOutputModule
private

Definition at line 12 of file trigTools.py.

trigTools._defaultOutputModuleComment
private

Definition at line 20 of file trigTools.py.

trigTools._defaultPath
private

Definition at line 10 of file trigTools.py.

trigTools._defaultPathComment
private

Definition at line 18 of file trigTools.py.

trigTools._defaultPostfix
private

Definition at line 13 of file trigTools.py.

trigTools._defaultPostfixComment
private

Definition at line 21 of file trigTools.py.

trigTools._defaultTriggerEventProducer
private

Definition at line 9 of file trigTools.py.

trigTools._defaultTriggerEventProducerComment
private

Definition at line 17 of file trigTools.py.

trigTools._defaultTriggerMatchersComment
private

Definition at line 15 of file trigTools.py.

trigTools._defaultTriggerProducer
private

Definition at line 8 of file trigTools.py.

trigTools._defaultTriggerProducerComment
private

Definition at line 16 of file trigTools.py.

trigTools._longLine
private

Definition at line 23 of file trigTools.py.

trigTools.switchOnTrigger

Definition at line 187 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatching.toolCode().

trigTools.switchOnTriggerMatchEmbedding

Definition at line 744 of file trigTools.py.

trigTools.switchOnTriggerMatching

Definition at line 421 of file trigTools.py.

trigTools.switchOnTriggerMatchingStandAlone

Definition at line 537 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatchEmbedding.toolCode().

trigTools.switchOnTriggerStandAlone