CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
TriggerAnalyzer.TriggerAnalyzer Class Reference
Inheritance diagram for TriggerAnalyzer.TriggerAnalyzer:

Public Member Functions

def beginLoop
 
def declareHandles
 
def process
 

Public Attributes

 triggerList
 
 vetoTriggerList
 

Detailed Description

Access to trigger information, and trigger selection

Definition at line 10 of file TriggerAnalyzer.py.

Member Function Documentation

def TriggerAnalyzer.TriggerAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 26 of file TriggerAnalyzer.py.

26 
27  def beginLoop(self, setup):
28  super(TriggerAnalyzer,self).beginLoop(setup)
29  self.triggerList = TriggerList( self.cfg_comp.triggers )
30  if hasattr(self.cfg_comp,'vetoTriggers'):
31  self.vetoTriggerList = TriggerList( self.cfg_comp.vetoTriggers )
32  else:
33  self.vetoTriggerList = None
34 
35  self.counters.addCounter('Trigger')
36  self.counters.counter('Trigger').register('All events')
37  self.counters.counter('Trigger').register('HLT')
38 
def TriggerAnalyzer.TriggerAnalyzer.declareHandles (   self)

Definition at line 13 of file TriggerAnalyzer.py.

References core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, and HTTP.RequestManager.handles.

13 
14  def declareHandles(self):
15  super(TriggerAnalyzer, self).declareHandles()
16 
17  self.handles['cmgTriggerObjectSel'] = AutoHandle(
18  'cmgTriggerObjectSel',
19  'std::vector<cmg::TriggerObject>'
20  )
21 
22  self.handles['cmgTriggerObjectListSel'] = AutoHandle(
23  'cmgTriggerObjectListSel',
24  'std::vector<cmg::TriggerObject>'
25  )
def TriggerAnalyzer.TriggerAnalyzer.process (   self,
  iEvent,
  event 
)

Definition at line 39 of file TriggerAnalyzer.py.

References core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, core.Analyzer.Analyzer.readCollections(), and DTTTrigCorrFirst.run.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

39 
40  def process(self, iEvent, event):
41  self.readCollections( iEvent )
42 
43  event.triggerObject = self.handles['cmgTriggerObjectSel'].product()[0]
44  run = iEvent.eventAuxiliary().id().run()
45  lumi = iEvent.eventAuxiliary().id().luminosityBlock()
46  eventId = iEvent.eventAuxiliary().id().event()
47 
48  event.run = run
49  event.lumi = lumi
50  event.eventId = eventId
Definition: event.py:1

Member Data Documentation

TriggerAnalyzer.TriggerAnalyzer.triggerList

Definition at line 28 of file TriggerAnalyzer.py.

TriggerAnalyzer.TriggerAnalyzer.vetoTriggerList

Definition at line 30 of file TriggerAnalyzer.py.