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

◆ _addEventContent()

def trigTools._addEventContent (   outputCommands,
  eventContent 
)
private

Definition at line 31 of file trigTools.py.

References FastTimerService_cff.range.

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

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

◆ _modulesInPath()

def trigTools._modulesInPath (   process,
  pathLabel 
)
private

Definition at line 27 of file trigTools.py.

References helpers.listModules().

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

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

Variable Documentation

◆ _defaultHltProcess

trigTools._defaultHltProcess
private

Definition at line 12 of file trigTools.py.

◆ _defaultHltProcessComment

trigTools._defaultHltProcessComment
private

Definition at line 20 of file trigTools.py.

◆ _defaultOutputModule

trigTools._defaultOutputModule
private

Definition at line 13 of file trigTools.py.

◆ _defaultOutputModuleComment

trigTools._defaultOutputModuleComment
private

Definition at line 21 of file trigTools.py.

◆ _defaultPath

trigTools._defaultPath
private

Definition at line 11 of file trigTools.py.

◆ _defaultPathComment

trigTools._defaultPathComment
private

Definition at line 19 of file trigTools.py.

◆ _defaultPostfix

trigTools._defaultPostfix
private

Definition at line 14 of file trigTools.py.

◆ _defaultPostfixComment

trigTools._defaultPostfixComment
private

Definition at line 22 of file trigTools.py.

◆ _defaultTriggerEventProducer

trigTools._defaultTriggerEventProducer
private

Definition at line 10 of file trigTools.py.

◆ _defaultTriggerEventProducerComment

trigTools._defaultTriggerEventProducerComment
private

Definition at line 18 of file trigTools.py.

◆ _defaultTriggerMatchersComment

trigTools._defaultTriggerMatchersComment
private

Definition at line 16 of file trigTools.py.

◆ _defaultTriggerProducer

trigTools._defaultTriggerProducer
private

Definition at line 9 of file trigTools.py.

◆ _defaultTriggerProducerComment

trigTools._defaultTriggerProducerComment
private

Definition at line 17 of file trigTools.py.

◆ _longLine

trigTools._longLine
private

Definition at line 24 of file trigTools.py.

◆ switchOnTrigger

trigTools.switchOnTrigger

Definition at line 188 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatching.toolCode().

◆ switchOnTriggerMatchEmbedding

trigTools.switchOnTriggerMatchEmbedding

Definition at line 745 of file trigTools.py.

◆ switchOnTriggerMatching

trigTools.switchOnTriggerMatching

Definition at line 422 of file trigTools.py.

◆ switchOnTriggerMatchingStandAlone

trigTools.switchOnTriggerMatchingStandAlone

Definition at line 538 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatchEmbedding.toolCode().

◆ switchOnTriggerStandAlone

trigTools.switchOnTriggerStandAlone