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 29 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().

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

Definition at line 25 of file trigTools.py.

References helpers.listModules().

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

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

Variable Documentation

trigTools._defaultHltProcess
private

Definition at line 10 of file trigTools.py.

trigTools._defaultHltProcessComment
private

Definition at line 18 of file trigTools.py.

trigTools._defaultOutputModule
private

Definition at line 11 of file trigTools.py.

trigTools._defaultOutputModuleComment
private

Definition at line 19 of file trigTools.py.

trigTools._defaultPath
private

Definition at line 9 of file trigTools.py.

trigTools._defaultPathComment
private

Definition at line 17 of file trigTools.py.

trigTools._defaultPostfix
private

Definition at line 12 of file trigTools.py.

trigTools._defaultPostfixComment
private

Definition at line 20 of file trigTools.py.

trigTools._defaultTriggerEventProducer
private

Definition at line 8 of file trigTools.py.

trigTools._defaultTriggerEventProducerComment
private

Definition at line 16 of file trigTools.py.

trigTools._defaultTriggerMatchersComment
private

Definition at line 14 of file trigTools.py.

trigTools._defaultTriggerProducer
private

Definition at line 7 of file trigTools.py.

trigTools._defaultTriggerProducerComment
private

Definition at line 15 of file trigTools.py.

trigTools._longLine
private

Definition at line 22 of file trigTools.py.

trigTools.switchOnTrigger

Definition at line 184 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatching.toolCode().

trigTools.switchOnTriggerMatchEmbedding

Definition at line 732 of file trigTools.py.

trigTools.switchOnTriggerMatching

Definition at line 414 of file trigTools.py.

trigTools.switchOnTriggerMatchingStandAlone

Definition at line 528 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatchEmbedding.toolCode().

trigTools.switchOnTriggerStandAlone