Beispiel #1
0
 def beginLoop(self):
     '''Automatically called by Looper, for all analyzers.'''
     self.declareHandles()
     self.counters = Counters()
     self.averages = Averages()
     self.mainLogger.warning( 'beginLoop ' + self.cfg_ana.name ) 
     self.beginLoopCalled = True
Beispiel #2
0
 def beginLoop(self):
     super(TauTauAnalyzer, self).beginLoop()
     self.counters = Counters()
     self.counters.addCounter('DiLepton')
     count = self.counters.counter('DiLepton')
     count.register('all events')
     count.register('> 0 di-lepton')
     count.register('lepton accept')
     count.register('third lepton veto')
     count.register('leg1 trig matched')
     count.register('leg2 trig matched')
     count.register('jet trig matched')
     count.register('leg1 offline cuts passed')
     count.register('leg2 offline cuts passed')
     count.register('{min:3.1f} < m < {max:3.1f}'.format(
         min=self.cfg_ana.m_min, max=self.cfg_ana.m_max))
     count.register('exactly 1 di-lepton')