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.

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 

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

◆ process()

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

Definition at line 40 of file TriggerAnalyzer.py.

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 

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, triggerObjects_cff.id, core.Analyzer.Analyzer.readCollections(), and writedatasetfile.run.

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.

counter
Definition: counter.py:1
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3
writedatasetfile.run
run
Definition: writedatasetfile.py:27
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
event
Definition: event.py:1