CMS 3D CMS Logo

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

Member Function Documentation

def TriggerAnalyzer.TriggerAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 27 of file TriggerAnalyzer.py.

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

Definition at line 14 of file TriggerAnalyzer.py.

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

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

Definition at line 40 of file TriggerAnalyzer.py.

References core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, gpuClustering.id, core.Analyzer.Analyzer.readCollections(), and submitPVValidationJobs.run.

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

Member Data Documentation

TriggerAnalyzer.TriggerAnalyzer.triggerList

Definition at line 29 of file TriggerAnalyzer.py.

TriggerAnalyzer.TriggerAnalyzer.vetoTriggerList

Definition at line 31 of file TriggerAnalyzer.py.