CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes
DiLeptonAnalyzer.DiLeptonAnalyzer Class Reference
Inheritance diagram for DiLeptonAnalyzer.DiLeptonAnalyzer:

Public Member Functions

def beginLoop
 
def bestDiLepton
 
def buildDiLeptons
 
def buildLeptons
 
def buildOtherLeptons
 
def declareHandles
 
def leptonAccept
 
def process
 
def selectionSequence
 
def shiftEnergyScale
 
def testDeltaR
 
def testLeg1
 
def testLeg1ID
 
def testLeg1Iso
 
def testLeg2
 
def testLeg2ID
 
def testLeg2Iso
 
def testLegKine
 
def testMass
 
def thirdLeptonVeto
 
def trigMatched
 

Static Public Attributes

 DiObjectClass = DiObject
 
 LeptonClass = Lepton
 
 OtherLeptonClass = Lepton
 

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.

def DiLeptonAnalyzer.DiLeptonAnalyzer.bestDiLepton (   self,
  diLeptons 
)
Returns the best diLepton (the one with highest pt1 + pt2).

Definition at line 293 of file DiLeptonAnalyzer.py.

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.

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.

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.

def DiLeptonAnalyzer.DiLeptonAnalyzer.declareHandles (   self)

Definition at line 215 of file DiLeptonAnalyzer.py.

def DiLeptonAnalyzer.DiLeptonAnalyzer.leptonAccept (   self,
  leptons 
)
Should implement a default version running on event.leptons.

Definition at line 222 of file DiLeptonAnalyzer.py.

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

Definition at line 89 of file DiLeptonAnalyzer.py.

def DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence (   self,
  event,
  fillCounter,
  leg1IsoCut = None,
  leg2IsoCut = None 
)

Definition at line 115 of file DiLeptonAnalyzer.py.

def DiLeptonAnalyzer.DiLeptonAnalyzer.shiftEnergyScale (   self,
  event 
)

Definition at line 100 of file DiLeptonAnalyzer.py.

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.

def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1 (   self,
  leg,
  isocut = None 
)
returns testLeg1ID && testLeg1Iso && testLegKine for leg1

Definition at line 232 of file DiLeptonAnalyzer.py.

def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg1ID (   self,
  leg 
)
Always return true by default, overload in your subclass

Definition at line 252 of file DiLeptonAnalyzer.py.

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.

def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2 (   self,
  leg,
  isocut = None 
)
returns testLeg2ID && testLeg2Iso && testLegKine for leg2

Definition at line 239 of file DiLeptonAnalyzer.py.

def DiLeptonAnalyzer.DiLeptonAnalyzer.testLeg2ID (   self,
  leg 
)
Always return true by default, overload in your subclass

Definition at line 266 of file DiLeptonAnalyzer.py.

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.

def DiLeptonAnalyzer.DiLeptonAnalyzer.testLegKine (   self,
  leg,
  ptcut,
  etacut 
)
Tests pt and eta.

Definition at line 246 of file DiLeptonAnalyzer.py.

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.

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.

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.

Member Data Documentation

DiLeptonAnalyzer.DiLeptonAnalyzer.DiObjectClass = DiObject
static

Definition at line 45 of file DiLeptonAnalyzer.py.

DiLeptonAnalyzer.DiLeptonAnalyzer.LeptonClass = Lepton
static

Definition at line 46 of file DiLeptonAnalyzer.py.

DiLeptonAnalyzer.DiLeptonAnalyzer.OtherLeptonClass = Lepton
static

Definition at line 47 of file DiLeptonAnalyzer.py.