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 11 of file TriggerAnalyzer.py.

Member Function Documentation

◆ beginLoop()

def TriggerAnalyzer.TriggerAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 27 of file TriggerAnalyzer.py.

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 
39 

◆ declareHandles()

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  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  )
26 

◆ process()

def TriggerAnalyzer.TriggerAnalyzer.process (   self,
  iEvent,
  event 
)

Definition at line 40 of file TriggerAnalyzer.py.

References CSCSPEvent.counters(), cms::cuda::AtomicPairCounter::Atomic2.counters, NMaxPerLumi.counters, analyzer.Analyzer.counters, HistogramManager.counters, counter.Counters.counters, cscdqm::ChamberCounterKeyType.counters, core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, l1ctLayer2EG_cff.id, core.Analyzer.Analyzer.readCollections(), and writedatasetfile.run.

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
51 
Definition: event.py:1

Member Data Documentation

◆ triggerList

TriggerAnalyzer.TriggerAnalyzer.triggerList

Definition at line 29 of file TriggerAnalyzer.py.

◆ vetoTriggerList

TriggerAnalyzer.TriggerAnalyzer.vetoTriggerList

Definition at line 31 of file TriggerAnalyzer.py.