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  RemoveCleaningFromTriggerMatching
 
class  SwitchOnTrigger
 
class  SwitchOnTriggerMatchEmbedding
 
class  SwitchOnTriggerMatching
 
class  SwitchOnTriggerMatchingStandAlone
 
class  SwitchOnTriggerStandAlone
 

Functions

def _addEventContent
 
def _modulesInSequence
 

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 _defaultPostfix = ''
 
string _defaultPostfixComment = "Postfix to apply to PAT module labels, default: %s"
 
string _defaultSequence = 'patDefaultSequence'
 
string _defaultSequenceComment = "Name of sequence to use, default: %s"
 
string _defaultTriggerEventProducer = 'patTriggerEvent'
 
string _defaultTriggerEventProducerComment = "PATTriggerEventProducer module label, default: %s"
 
list _defaultTriggerMatchers
 
string _defaultTriggerMatchersComment = "Trigger matcher modules' labels, default: ..."
 
string _defaultTriggerProducer = 'patTrigger'
 
string _defaultTriggerProducerComment = "PATTriggerProducer module label, default: %s"
 
string _longLine = '---------------------------------------------------------------------'
 
tuple removeCleaningFromTriggerMatching = RemoveCleaningFromTriggerMatching()
 
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 38 of file trigTools.py.

Referenced by trigTools.SwitchOnTrigger.toolCode(), trigTools.SwitchOnTriggerStandAlone.toolCode(), trigTools.SwitchOnTriggerMatching.toolCode(), trigTools.SwitchOnTriggerMatchingStandAlone.toolCode(), trigTools.SwitchOnTriggerMatchEmbedding.toolCode(), and metUncertaintyTools.RunMEtUncertainties.toolCode().

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

Definition at line 34 of file trigTools.py.

References helpers.listModules().

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

34 
35 def _modulesInSequence( process, sequenceLabel ):
36  return [ m.label() for m in listModules( getattr( process, sequenceLabel ) ) ]
37 
def listModules
Definition: helpers.py:208
def _modulesInSequence
Definition: trigTools.py:34

Variable Documentation

string trigTools._defaultHltProcess = 'HLT'

Definition at line 19 of file trigTools.py.

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

Definition at line 27 of file trigTools.py.

string trigTools._defaultOutputModule = 'out'

Definition at line 20 of file trigTools.py.

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

Definition at line 28 of file trigTools.py.

string trigTools._defaultPostfix = ''

Definition at line 21 of file trigTools.py.

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

Definition at line 29 of file trigTools.py.

string trigTools._defaultSequence = 'patDefaultSequence'

Definition at line 18 of file trigTools.py.

string trigTools._defaultSequenceComment = "Name of sequence to use, default: %s"

Definition at line 26 of file trigTools.py.

string trigTools._defaultTriggerEventProducer = 'patTriggerEvent'

Definition at line 17 of file trigTools.py.

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

Definition at line 25 of file trigTools.py.

list trigTools._defaultTriggerMatchers
Initial value:
1 = [ 'cleanMuonTriggerMatchHLTMu20'
2  , 'cleanMuonTriggerMatchHLTDoubleMu6'
3  , 'cleanPhotonTriggerMatchHLTPhoton26IsoVLPhoton18'
4  , 'cleanElectronTriggerMatchHLTEle27CaloIdVTCaloIsoTTrkIdTTrkIsoT'
5  , 'cleanTauTriggerMatchHLTDoubleIsoPFTau20Trk5'
6  , 'cleanJetTriggerMatchHLTJet240'
7  , 'metTriggerMatchHLTMET100'
8  , 'cleanMuonTriggerMatchHLTMu17CentralJet30'
9  , 'cleanJetTriggerMatchHLTMu17CentralJet30'
10  ]

Definition at line 6 of file trigTools.py.

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

Definition at line 23 of file trigTools.py.

string trigTools._defaultTriggerProducer = 'patTrigger'

Definition at line 16 of file trigTools.py.

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

Definition at line 24 of file trigTools.py.

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

Definition at line 31 of file trigTools.py.

tuple trigTools.removeCleaningFromTriggerMatching = RemoveCleaningFromTriggerMatching()

Definition at line 831 of file trigTools.py.

tuple trigTools.switchOnTrigger = SwitchOnTrigger()

Definition at line 197 of file trigTools.py.

Referenced by SUSY_pattuple_cff.loadPATTriggers(), and trigTools.SwitchOnTriggerMatching.toolCode().

tuple trigTools.switchOnTriggerMatchEmbedding = SwitchOnTriggerMatchEmbedding()

Definition at line 720 of file trigTools.py.

Referenced by SUSY_pattuple_cff.loadPATTriggers().

tuple trigTools.switchOnTriggerMatching = SwitchOnTriggerMatching()

Definition at line 446 of file trigTools.py.

tuple trigTools.switchOnTriggerMatchingStandAlone = SwitchOnTriggerMatchingStandAlone()

Definition at line 561 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatchEmbedding.toolCode().

tuple trigTools.switchOnTriggerStandAlone = SwitchOnTriggerStandAlone()

Definition at line 294 of file trigTools.py.

Referenced by trigTools.SwitchOnTriggerMatchingStandAlone.toolCode().