CMS 3D CMS Logo

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

Public Member Functions

def beginLoop (self, setup)
 
def bestDiLepton (self, diLeptons)
 
def buildDiLeptons (self, cmgDiLeptons, event)
 
def buildLeptons (self, cmgLeptons, event)
 
def buildOtherLeptons (self, cmgLeptons, event)
 
def declareHandles (self)
 
def leptonAccept (self, leptons)
 
def process (self, iEvent, event)
 
def selectionSequence (self, event, fillCounter, leg1IsoCut=None, leg2IsoCut=None)
 
def shiftEnergyScale (self, event)
 
def testDeltaR (self, diLepton)
 
def testLeg1 (self, leg, isocut=None)
 
def testLeg1ID (self, leg)
 
def testLeg1Iso (self, leg, isocut)
 
def testLeg2 (self, leg, isocut=None)
 
def testLeg2ID (self, leg)
 
def testLeg2Iso (self, leg, isocut)
 
def testLegKine (self, leg, ptcut, etacut)
 
def testMass (self, diLepton)
 
def thirdLeptonVeto (self, leptons, otherLeptons, isoCut=0.3)
 
def trigMatched (self, event, leg, legName)
 

Static Public Attributes

 DiObjectClass
 
 LeptonClass
 
 OtherLeptonClass
 

Detailed Description

Generic analyzer for Di-Leptons.
See ZMuMuAnalyzer for a concrete case.

Example configuration, and list of parameters:
#O means optional

ana = cfg.Analyzer(
  'DiLeptonAnalyzer',
  scaleShift1 = eScaleShift,  #O shift factor for leg 1 energy scale
  scaleShift2 = tauScaleShift,#O same for leg 2
  pt1 = 20,   # pt, eta, iso cuts for leg 1
  eta1 = 2.3,
  iso1 = None,
  pt2 = 20,   # same for leg 2
  eta2 = 2.1,
  iso2 = 0.1,
  m_min = 10,    # mass range
  m_max = 99999,
  dR_min = 0.5,  #O min delta R between the two legs
  triggerMap = pathsAndFilters, #O, necessary for trigger matching
  verbose = False               #from base Analyzer class
  )

COLIN: need to specify what is needed in the event.
COLIN: need to make delta R non optional.
COLIN: make the dR_min parameter non optional

Definition at line 10 of file DiLeptonAnalyzer.py.

Member Function Documentation

def DiLeptonAnalyzer.DiLeptonAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 49 of file DiLeptonAnalyzer.py.

References analyzer.Analyzer.cfg_ana.

49  def beginLoop(self, setup):
50  super(DiLeptonAnalyzer,self).beginLoop(setup)
51  self.counters.addCounter('DiLepton')
52  count = self.counters.counter('DiLepton')
53  count.register('all events')
54  count.register('> 0 di-lepton')
55  # count.register('di-lepton cut string ok')
56  count.register('lepton accept')
57  count.register('third lepton veto')
58  count.register('leg1 offline cuts passed')
59  count.register('leg1 trig matched')
60  count.register('leg2 offline cuts passed')
61  count.register('leg2 trig matched')
62  count.register('{min:3.1f} < m < {max:3.1f}'.format( min = self.cfg_ana.m_min,
63  max = self.cfg_ana.m_max ))
64  if hasattr(self.cfg_ana, 'dR_min'):
65  count.register('dR > {min:3.1f}'.format( min = self.cfg_ana.dR_min))
66 
67  count.register('exactly 1 di-lepton')
68 
69 
def DiLeptonAnalyzer.DiLeptonAnalyzer.bestDiLepton (   self,
  diLeptons 
)
Returns the best diLepton (the one with highest pt1 + pt2).

Definition at line 293 of file DiLeptonAnalyzer.py.

References hpstanc_transforms.max.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().

293  def bestDiLepton(self, diLeptons):
294  '''Returns the best diLepton (the one with highest pt1 + pt2).'''
295  return max( diLeptons, key=operator.methodcaller( 'sumPt' ) )
296 
297 
def DiLeptonAnalyzer.DiLeptonAnalyzer.buildDiLeptons (   self,
  cmgDiLeptons,
  event 
)
Creates python DiLeptons from the di-leptons read from the disk.
to be overloaded if needed.

Definition at line 70 of file DiLeptonAnalyzer.py.

References genParticles_cff.map.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.process().

70  def buildDiLeptons(self, cmgDiLeptons, event):
71  '''Creates python DiLeptons from the di-leptons read from the disk.
72  to be overloaded if needed.'''
73  return map( self.__class__.DiObjectClass, cmgDiLeptons )
74 
75 
def buildDiLeptons(self, cmgDiLeptons, event)
def DiLeptonAnalyzer.DiLeptonAnalyzer.buildLeptons (   self,
  cmgLeptons,
  event 
)
Creates python Leptons from the leptons read from the disk.
to be overloaded if needed.

Definition at line 76 of file DiLeptonAnalyzer.py.

References genParticles_cff.map.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.process().

76  def buildLeptons(self, cmgLeptons, event):
77  '''Creates python Leptons from the leptons read from the disk.
78  to be overloaded if needed.'''
79  return map( self.__class__.LeptonClass, cmgLeptons )
80 
81 
def buildLeptons(self, cmgLeptons, event)
def DiLeptonAnalyzer.DiLeptonAnalyzer.buildOtherLeptons (   self,
  cmgLeptons,
  event 
)
Creates python Leptons from the leptons read from the disk.
to be overloaded if needed.

Definition at line 82 of file DiLeptonAnalyzer.py.

References genParticles_cff.map.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.process().

82  def buildOtherLeptons(self, cmgLeptons, event):
83  '''Creates python Leptons from the leptons read from the disk.
84  to be overloaded if needed.'''
85  return map( self.__class__.LeptonClass, cmgLeptons )
86 
87 
88 
def buildOtherLeptons(self, cmgLeptons, event)
def DiLeptonAnalyzer.DiLeptonAnalyzer.declareHandles (   self)

Definition at line 215 of file DiLeptonAnalyzer.py.

215  def declareHandles(self):
216  super(DiLeptonAnalyzer, self).declareHandles()
217  # self.handles['cmgTriggerObjectSel'] = AutoHandle(
218  # 'cmgTriggerObjectSel',
219  # 'std::vector<cmg::TriggerObject>'
220  # )
221 
def DiLeptonAnalyzer.DiLeptonAnalyzer.leptonAccept (   self,
  leptons 
)
Should implement a default version running on event.leptons.

Definition at line 222 of file DiLeptonAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().

222  def leptonAccept(self, leptons):
223  '''Should implement a default version running on event.leptons.'''
224  return True
225 
226 
def DiLeptonAnalyzer.DiLeptonAnalyzer.process (   self,
  iEvent,
  event 
)

Definition at line 89 of file DiLeptonAnalyzer.py.

References DiLeptonAnalyzer.DiLeptonAnalyzer.buildDiLeptons(), DiLeptonAnalyzer.DiLeptonAnalyzer.buildLeptons(), DiLeptonAnalyzer.DiLeptonAnalyzer.buildOtherLeptons(), core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, core.Analyzer.Analyzer.readCollections(), DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence(), and DiLeptonAnalyzer.DiLeptonAnalyzer.shiftEnergyScale().

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().

89  def process(self, iEvent, event):
90  self.readCollections( iEvent )
91  event.diLeptons = self.buildDiLeptons( self.handles['diLeptons'].product(), event )
92  event.leptons = self.buildLeptons( self.handles['leptons'].product(), event )
93  event.otherLeptons = self.buildOtherLeptons( self.handles['otherLeptons'].product(), event )
94  self.shiftEnergyScale(event)
95  return self.selectionSequence(event, fillCounter=True,
96  leg1IsoCut=self.cfg_ana.iso1,
97  leg2IsoCut=self.cfg_ana.iso2)
98 
99 
def buildLeptons(self, cmgLeptons, event)
def buildOtherLeptons(self, cmgLeptons, event)
def process(self, iEvent, event)
def buildDiLeptons(self, cmgDiLeptons, event)
def selectionSequence(self, event, fillCounter, leg1IsoCut=None, leg2IsoCut=None)
def DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence (   self,
  event,
  fillCounter,
  leg1IsoCut = None,
  leg2IsoCut = None 
)

Definition at line 115 of file DiLeptonAnalyzer.py.

References DiLeptonAnalyzer.DiLeptonAnalyzer.bestDiLepton(), analyzer.Analyzer.cfg_ana, DiLeptonAnalyzer.DiLeptonAnalyzer.leptonAccept(), DiLeptonAnalyzer.DiLeptonAnalyzer.testDeltaR(), DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1(), DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2(), DiLeptonAnalyzer.DiLeptonAnalyzer.testMass(), DiLeptonAnalyzer.DiLeptonAnalyzer.thirdLeptonVeto(), and DiLeptonAnalyzer.DiLeptonAnalyzer.trigMatched().

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.process().

115  def selectionSequence(self, event, fillCounter, leg1IsoCut=None, leg2IsoCut=None):
116 
117  if fillCounter: self.counters.counter('DiLepton').inc('all events')
118  # if not self.triggerList.triggerPassed(event.triggerObject):
119  # return False
120  # self.counters.counter('DiLepton').inc('trigger passed ')
121 
122  # if event.eventId == 155035:
123  # import pdb; pdb.set_trace()
124 
125  # import pdb; pdb.set_trace()
126  if len(event.diLeptons) == 0:
127  return False
128  if fillCounter: self.counters.counter('DiLepton').inc('> 0 di-lepton')
129 
130  # import pdb; pdb.set_trace()
131  # testing di-lepton itself
132  selDiLeptons = event.diLeptons
133  # selDiLeptons = self.selectDiLeptons( selDiLeptons )
134 
135  event.leptonAccept = False
136  if self.leptonAccept( event.leptons ):
137  if fillCounter: self.counters.counter('DiLepton').inc('lepton accept')
138  event.leptonAccept = True
139 
140  event.thirdLeptonVeto = False
141  if self.thirdLeptonVeto(event.leptons, event.otherLeptons):
142  if fillCounter: self.counters.counter('DiLepton').inc('third lepton veto')
143  event.thirdLeptonVeto = True
144 
145  # testing leg1
146  selDiLeptons = [ diL for diL in selDiLeptons if \
147  self.testLeg1( diL.leg1(), leg1IsoCut ) ]
148  if len(selDiLeptons) == 0:
149  return False
150  else:
151  if fillCounter: self.counters.counter('DiLepton').inc('leg1 offline cuts passed')
152 
153  if len(self.cfg_comp.triggers)>0:
154  # trigger matching leg1
155  selDiLeptons = [diL for diL in selDiLeptons if \
156  self.trigMatched(event, diL.leg1(), 'leg1')]
157  if len(selDiLeptons) == 0:
158  return False
159  else:
160  if fillCounter: self.counters.counter('DiLepton').inc('leg1 trig matched')
161 
162  # testing leg2
163  selDiLeptons = [ diL for diL in selDiLeptons if \
164  self.testLeg2( diL.leg2(), leg2IsoCut ) ]
165  if len(selDiLeptons) == 0:
166  return False
167  else:
168  if fillCounter: self.counters.counter('DiLepton').inc('leg2 offline cuts passed')
169 
170  if len(self.cfg_comp.triggers)>0:
171  # trigger matching leg2
172  selDiLeptons = [diL for diL in selDiLeptons if \
173  self.trigMatched(event, diL.leg2(), 'leg2')]
174  if len(selDiLeptons) == 0:
175  return False
176  else:
177  if fillCounter: self.counters.counter('DiLepton').inc('leg2 trig matched')
178 
179  # mass cut
180  selDiLeptons = [ diL for diL in selDiLeptons if \
181  self.testMass(diL) ]
182  if len(selDiLeptons)==0:
183  return False
184  else:
185  if fillCounter: self.counters.counter('DiLepton').inc(
186  '{min:3.1f} < m < {max:3.1f}'.format( min = self.cfg_ana.m_min,
187  max = self.cfg_ana.m_max )
188  )
189 
190  # delta R cut
191  if hasattr(self.cfg_ana, 'dR_min'):
192  selDiLeptons = [ diL for diL in selDiLeptons if \
193  self.testDeltaR(diL) ]
194  if len(selDiLeptons)==0:
195  return False
196  else:
197  if fillCounter: self.counters.counter('DiLepton').inc(
198  'dR > {min:3.1f}'.format( min = self.cfg_ana.dR_min )
199  )
200 
201  # exactly one?
202  if len(selDiLeptons)==0:
203  return False
204  elif len(selDiLeptons)==1:
205  if fillCounter: self.counters.counter('DiLepton').inc('exactly 1 di-lepton')
206 
207  event.diLepton = self.bestDiLepton( selDiLeptons )
208  event.leg1 = event.diLepton.leg1()
209  event.leg2 = event.diLepton.leg2()
210  event.selectedLeptons = [event.leg1, event.leg2]
211 
212  return True
213 
214 
def testLeg1(self, leg, isocut=None)
def trigMatched(self, event, leg, legName)
def thirdLeptonVeto(self, leptons, otherLeptons, isoCut=0.3)
def testLeg2(self, leg, isocut=None)
def selectionSequence(self, event, fillCounter, leg1IsoCut=None, leg2IsoCut=None)
def DiLeptonAnalyzer.DiLeptonAnalyzer.shiftEnergyScale (   self,
  event 
)

Definition at line 100 of file DiLeptonAnalyzer.py.

References analyzer.Analyzer.cfg_ana, and genParticles_cff.map.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.process().

100  def shiftEnergyScale(self, event):
101  scaleShift1 = None
102  scaleShift2 = None
103  if hasattr( self.cfg_ana, 'scaleShift1'):
104  scaleShift1 = self.cfg_ana.scaleShift1
105  if hasattr( self.cfg_ana, 'scaleShift2'):
106  scaleShift2 = self.cfg_ana.scaleShift2
107  if scaleShift1:
108  # import pdb; pdb.set_trace()
109  map( lambda x: x.leg1().scaleEnergy(scaleShift1), event.diLeptons )
110  if scaleShift2:
111  map( lambda x: x.leg2().scaleEnergy(scaleShift2), event.diLeptons )
112  map( lambda x: x.scaleEnergy(scaleShift2), event.leptons )
113 
114 
def DiLeptonAnalyzer.DiLeptonAnalyzer.testDeltaR (   self,
  diLepton 
)
returns True if the two diLepton.leg1() and .leg2() have a delta R larger than the dR_min parameter.

Definition at line 286 of file DiLeptonAnalyzer.py.

References deltaR(), and stringResolutionProvider_cfi.eta.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().

286  def testDeltaR(self, diLepton):
287  '''returns True if the two diLepton.leg1() and .leg2() have a delta R larger than the dR_min parameter.'''
288  dR = deltaR( diLepton.leg1().eta(), diLepton.leg1().phi(),
289  diLepton.leg2().eta(), diLepton.leg2().phi())
290  return dR > self.cfg_ana.dR_min
291 
292 
double deltaR(double eta1, double eta2, double phi1, double phi2)
Definition: TreeUtility.cc:17
def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1 (   self,
  leg,
  isocut = None 
)
returns testLeg1ID && testLeg1Iso && testLegKine for leg1

Definition at line 232 of file DiLeptonAnalyzer.py.

References ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg1ID, DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1ID(), ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg1Iso, DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1Iso(), and DiLeptonAnalyzer.DiLeptonAnalyzer.testLegKine().

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().

232  def testLeg1(self, leg, isocut=None):
233  '''returns testLeg1ID && testLeg1Iso && testLegKine for leg1'''
234  return self.testLeg1ID(leg) and \
235  self.testLeg1Iso(leg, isocut) and \
236  self.testLegKine(leg, self.cfg_ana.pt1, self.cfg_ana.eta1)
237 
238 
def testLeg1(self, leg, isocut=None)
def testLegKine(self, leg, ptcut, etacut)
def testLeg1Iso(self, leg, isocut)
def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1ID (   self,
  leg 
)
Always return true by default, overload in your subclass

Definition at line 252 of file DiLeptonAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1().

252  def testLeg1ID(self, leg):
253  '''Always return true by default, overload in your subclass'''
254  return True
255 
256 
def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1Iso (   self,
  leg,
  isocut 
)
If isocut is None, the iso value is taken from the iso1 parameter.
Checks the standard dbeta corrected isolation.

Definition at line 257 of file DiLeptonAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1().

257  def testLeg1Iso(self, leg, isocut):
258  '''If isocut is None, the iso value is taken from the iso1 parameter.
259  Checks the standard dbeta corrected isolation.
260  '''
261  if isocut is None:
262  isocut = self.cfg_ana.iso1
263  return leg.relIso(0.5) < isocut
264 
265 
def testLeg1Iso(self, leg, isocut)
def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2 (   self,
  leg,
  isocut = None 
)
returns testLeg2ID && testLeg2Iso && testLegKine for leg2

Definition at line 239 of file DiLeptonAnalyzer.py.

References ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg2ID, DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2ID(), ZMuMuAnalyzer.ZMuMuAnalyzer.testLeg2Iso, DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2Iso(), and DiLeptonAnalyzer.DiLeptonAnalyzer.testLegKine().

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().

239  def testLeg2(self, leg, isocut=None):
240  '''returns testLeg2ID && testLeg2Iso && testLegKine for leg2'''
241  return self.testLeg2ID(leg) and \
242  self.testLeg2Iso(leg, isocut) and \
243  self.testLegKine(leg, self.cfg_ana.pt2, self.cfg_ana.eta2)
244 
245 
def testLegKine(self, leg, ptcut, etacut)
def testLeg2(self, leg, isocut=None)
def testLeg2Iso(self, leg, isocut)
def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2ID (   self,
  leg 
)
Always return true by default, overload in your subclass

Definition at line 266 of file DiLeptonAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2().

266  def testLeg2ID(self, leg):
267  '''Always return true by default, overload in your subclass'''
268  return True
269 
270 
def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2Iso (   self,
  leg,
  isocut 
)
If isocut is None, the iso value is taken from the iso2 parameter.
Checks the standard dbeta corrected isolation.

Definition at line 271 of file DiLeptonAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2().

271  def testLeg2Iso(self, leg, isocut):
272  '''If isocut is None, the iso value is taken from the iso2 parameter.
273  Checks the standard dbeta corrected isolation.
274  '''
275  if isocut is None:
276  isocut = self.cfg_ana.iso2
277  return leg.relIso(0.5) < isocut
278 
279 
def testLeg2Iso(self, leg, isocut)
def DiLeptonAnalyzer.DiLeptonAnalyzer.testLegKine (   self,
  leg,
  ptcut,
  etacut 
)
Tests pt and eta.

Definition at line 246 of file DiLeptonAnalyzer.py.

References funct.abs().

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1(), and DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2().

246  def testLegKine(self, leg, ptcut, etacut ):
247  '''Tests pt and eta.'''
248  return leg.pt() > ptcut and \
249  abs(leg.eta()) < etacut
250 
251 
def testLegKine(self, leg, ptcut, etacut)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def DiLeptonAnalyzer.DiLeptonAnalyzer.testMass (   self,
  diLepton 
)
returns True if the mass of the dilepton is between the m_min and m_max parameters

Definition at line 280 of file DiLeptonAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().

280  def testMass(self, diLepton):
281  '''returns True if the mass of the dilepton is between the m_min and m_max parameters'''
282  mass = diLepton.mass()
283  return self.cfg_ana.m_min < mass and mass < self.cfg_ana.m_max
284 
285 
def DiLeptonAnalyzer.DiLeptonAnalyzer.thirdLeptonVeto (   self,
  leptons,
  otherLeptons,
  isoCut = 0.3 
)
Should implement a default version running on event.leptons.

Definition at line 227 of file DiLeptonAnalyzer.py.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().

227  def thirdLeptonVeto(self, leptons, otherLeptons, isoCut = 0.3) :
228  '''Should implement a default version running on event.leptons.'''
229  return True
230 
231 
def thirdLeptonVeto(self, leptons, otherLeptons, isoCut=0.3)
def DiLeptonAnalyzer.DiLeptonAnalyzer.trigMatched (   self,
  event,
  leg,
  legName 
)
Returns true if the leg is matched to a trigger object as defined in the
triggerMap parameter

Definition at line 298 of file DiLeptonAnalyzer.py.

References analyzer.Analyzer.cfg_ana.

Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().

298  def trigMatched(self, event, leg, legName):
299  '''Returns true if the leg is matched to a trigger object as defined in the
300  triggerMap parameter'''
301  if not hasattr( self.cfg_ana, 'triggerMap'):
302  return True
303  path = event.hltPath
304  triggerObjects = event.triggerObjects
305  filters = self.cfg_ana.triggerMap[ path ]
306  filter = None
307  if legName == 'leg1':
308  filter = filters[0]
309  elif legName == 'leg2':
310  filter = filters[1]
311  else:
312  raise ValueError( 'legName should be leg1 or leg2, not {leg}'.format(
313  leg=legName ) )
314 
315  # JAN: Need a hack for the embedded samples: No trigger matching in that case
316  if filter == '':
317  return True
318 
319  # the dR2Max value is 0.3^2
320  pdgIds = None
321  if len(filter) == 2:
322  filter, pdgIds = filter[0], filter[1]
323  return triggerMatched(leg, triggerObjects, path, filter,
324  # dR2Max=0.089999,
325  dR2Max=0.25,
326  pdgIds=pdgIds )
327 
def trigMatched(self, event, leg, legName)

Member Data Documentation

DiLeptonAnalyzer.DiLeptonAnalyzer.DiObjectClass
static

Definition at line 45 of file DiLeptonAnalyzer.py.

DiLeptonAnalyzer.DiLeptonAnalyzer.LeptonClass
static

Definition at line 46 of file DiLeptonAnalyzer.py.

DiLeptonAnalyzer.DiLeptonAnalyzer.OtherLeptonClass
static

Definition at line 47 of file DiLeptonAnalyzer.py.