CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
TriggerAnalyzer.TriggerAnalyzer Class Reference
Inheritance diagram for TriggerAnalyzer.TriggerAnalyzer:

Public Member Functions

def beginLoop (self, setup)
 
def declareHandles (self)
 
def process (self, iEvent, event)
 

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

Definition at line 13 of file TriggerAnalyzer.py.

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

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

Definition at line 39 of file TriggerAnalyzer.py.

References core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, hcalTTPDigis_cfi.id, core.Analyzer.Analyzer.readCollections(), and findQualityFiles.run.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare(), ConfigBuilder.ConfigBuilder.prepare_ALCA(), ConfigBuilder.ConfigBuilder.prepare_DQM(), 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  def process(self, iEvent, event):
40  self.readCollections( iEvent )
41 
42  event.triggerObject = self.handles['cmgTriggerObjectSel'].product()[0]
43  run = iEvent.eventAuxiliary().id().run()
44  lumi = iEvent.eventAuxiliary().id().luminosityBlock()
45  eventId = iEvent.eventAuxiliary().id().event()
46 
47  event.run = run
48  event.lumi = lumi
49  event.eventId = eventId
50 
def process(self, iEvent, event)
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.