Static Public Attributes | |
DiObjectClass = DiObject | |
LeptonClass = Lepton | |
OtherLeptonClass = Lepton | |
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.
def DiLeptonAnalyzer.DiLeptonAnalyzer.beginLoop | ( | self, | |
setup | |||
) |
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 bookConverter.max.
Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().
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 python.multivaluedict.map().
Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.process().
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 python.multivaluedict.map().
Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.process().
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 python.multivaluedict.map().
Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.process().
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.
Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().
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.AutoHandle.AutoHandle.handles, 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_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().
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().
def DiLeptonAnalyzer.DiLeptonAnalyzer.shiftEnergyScale | ( | self, | |
event | |||
) |
Definition at line 100 of file DiLeptonAnalyzer.py.
References analyzer.Analyzer.cfg_ana, and python.multivaluedict.map().
Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.process().
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(), eta(), and phi.
Referenced by DiLeptonAnalyzer.DiLeptonAnalyzer.selectionSequence().
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().
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().
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().
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().
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().
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().
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().
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().
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().
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().
|
static |
Definition at line 45 of file DiLeptonAnalyzer.py.
|
static |
Definition at line 46 of file DiLeptonAnalyzer.py.
|
static |
Definition at line 47 of file DiLeptonAnalyzer.py.