CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 29 of file trigTools.py.

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

29 
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 
def _addEventContent
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 
26 def _modulesInPath( process, pathLabel ):
27  return [ m.label() for m in listModules( getattr( process, pathLabel ) ) ]
28 
def listModules
Definition: helpers.py:252
def _modulesInPath
Definition: trigTools.py:25

Variable Documentation

string trigTools._defaultHltProcess = 'HLT'

Definition at line 10 of file trigTools.py.

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

Definition at line 18 of file trigTools.py.

string trigTools._defaultOutputModule = 'out'

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.

string trigTools._defaultPath = ''

Definition at line 9 of file trigTools.py.

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

Definition at line 17 of file trigTools.py.

string trigTools._defaultPostfix = ''

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._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.

tuple trigTools.switchOnTrigger = SwitchOnTrigger()

Definition at line 184 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatching.toolCode().

tuple trigTools.switchOnTriggerMatchEmbedding = SwitchOnTriggerMatchEmbedding()

Definition at line 731 of file trigTools.py.

tuple trigTools.switchOnTriggerMatching = SwitchOnTriggerMatching()

Definition at line 414 of file trigTools.py.

tuple trigTools.switchOnTriggerMatchingStandAlone = SwitchOnTriggerMatchingStandAlone()

Definition at line 528 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatchEmbedding.toolCode().

tuple trigTools.switchOnTriggerStandAlone = SwitchOnTriggerStandAlone()

Definition at line 276 of file trigTools.py.

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