CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions | Variables
trigTools Namespace Reference

Classes

class  SwitchOnTrigger
 
class  SwitchOnTriggerMatchEmbedding
 
class  SwitchOnTriggerMatching
 
class  SwitchOnTriggerMatchingStandAlone
 
class  SwitchOnTriggerStandAlone
 

Functions

def _addEventContent
 
def _modulesInPath
 

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 _defaultPath = ''
 
string _defaultPathComment = "Name of path to use, default: %s"
 
string _defaultPostfix = ''
 
string _defaultPostfixComment = "Postfix to apply to PAT module labels, 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 31 of file trigTools.py.

References sistrip::SpyUtilities.range().

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

31 
32 def _addEventContent( outputCommands, eventContent ):
33  # add new entry to event content
34  for content in eventContent:
35  if content not in outputCommands:
36  outputCommands += [ content ]
37  # check for obsolete entries
38  listToRemove = []
39  for i in range( len( outputCommands ) ):
40  if i in listToRemove:
41  continue
42  command = outputCommands[ i ]
43  if command[ : 4 ] == 'keep':
44  dropCommand = command.replace( 'keep ', 'drop ' )
45  for j in range( i + 1, len( outputCommands ) ):
46  testCommand = outputCommands[ j ]
47  if testCommand == command:
48  listToRemove += [ j ]
49  elif testCommand == dropCommand:
50  listToRemove += [ i, j ]
51  break
52  # copy entries excl. obsolete ones
53  newOutputCommands = cms.untracked.vstring()
54  for i in range( len( outputCommands ) ):
55  if i not in listToRemove:
56  newOutputCommands += [ outputCommands[ i ] ]
57  # return result
58  return newOutputCommands
59 
const uint16_t range(const Frame &aFrame)
def _addEventContent
Definition: trigTools.py:31
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 
28 def _modulesInPath( process, pathLabel ):
29  return [ m.label() for m in listModules( getattr( process, pathLabel ) ) ]
30 
def listModules
Definition: helpers.py:207
def _modulesInPath
Definition: trigTools.py:27

Variable Documentation

string trigTools._defaultHltProcess = 'HLT'

Definition at line 12 of file trigTools.py.

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

Definition at line 20 of file trigTools.py.

string trigTools._defaultOutputModule = 'out'

Definition at line 13 of file trigTools.py.

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

Definition at line 21 of file trigTools.py.

string trigTools._defaultPath = ''

Definition at line 11 of file trigTools.py.

string trigTools._defaultPathComment = "Name of path to use, default: %s"

Definition at line 19 of file trigTools.py.

string trigTools._defaultPostfix = ''

Definition at line 14 of file trigTools.py.

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

Definition at line 22 of file trigTools.py.

string trigTools._defaultTriggerEventProducer = 'patTriggerEvent'

Definition at line 10 of file trigTools.py.

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

Definition at line 18 of file trigTools.py.

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

Definition at line 16 of file trigTools.py.

string trigTools._defaultTriggerProducer = 'patTrigger'

Definition at line 9 of file trigTools.py.

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

Definition at line 17 of file trigTools.py.

string trigTools._longLine = '---------------------------------------------------------------------'

Definition at line 24 of file trigTools.py.

tuple trigTools.switchOnTrigger = SwitchOnTrigger()

Definition at line 188 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatching.toolCode().

tuple trigTools.switchOnTriggerMatchEmbedding = SwitchOnTriggerMatchEmbedding()

Definition at line 745 of file trigTools.py.

tuple trigTools.switchOnTriggerMatching = SwitchOnTriggerMatching()

Definition at line 422 of file trigTools.py.

tuple trigTools.switchOnTriggerMatchingStandAlone = SwitchOnTriggerMatchingStandAlone()

Definition at line 538 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatchEmbedding.toolCode().

tuple trigTools.switchOnTriggerStandAlone = SwitchOnTriggerStandAlone()

Definition at line 283 of file trigTools.py.

Referenced by miniAOD_tools.miniAOD_customizeCommon(), and trigTools.SwitchOnTriggerMatchingStandAlone.toolCode().