Public Member Functions | |
def | __init__ |
def | beginLoop |
def | declareHandles |
def | jetFlavour |
def | matchJets |
def | process |
def | smearJets |
def | testJetID |
def | testJetNoID |
Public Attributes | |
addJERShifts | |
allJetsUsedForMET | |
bqObjects | |
cqObjects | |
deltaMetFromJEC | |
Read jets, if necessary recalibrate and shift MET. More... | |
doJEC | |
genJets | |
heaviestQCDFlavour | |
jetGammaDR | |
jetLepArbitration | |
jetLepDR | |
jetReCalibrator | |
lepPtMin | |
partons | |
qglcalc | |
rho | |
shiftJEC | |
shiftJER | |
type1METCorr | |
Static Public Attributes | |
addJECShifts = False, | |
int | addJERShifts = 0 |
alwaysCleanPhotons = False, | |
string | applyL2L3Residual = 'Data' |
attachNeutrinos = True, | |
calculateSeparateCorrections = False, | |
calculateType1METCorrection = False, | |
checkLeptonPFOverlap = True, | |
class_object = JetAnalyzer, | |
cleanGenJetsFromPhoton = False, | |
cleanJetsFromFirstPhoton = False, | |
cleanJetsFromIsoTracks = False, | |
cleanJetsFromTaus = False, | |
cleanSelectedLeptons = True, | |
string | collectionPostFix = "" |
copyJetsByValue = False, | |
do_mc_match = True, | |
doPuId = False, | |
doQG = False, | |
string | genJetCol = 'slimmedGenJets' |
genNuSelection = lambdanu:True, | |
tuple | has_overlaps = p1.key() |
tuple | incleptons = event.inclusiveLeptonsifhasattr(event, 'inclusiveLeptons') |
Jet Id, after jet/lepton cleaning. More... | |
string | jecPath = "" |
list | jet = jlpairs[lep] |
string | jetCol = 'slimmedJets' |
float | jetEta = 4.7 |
float | jetEtaCentral = 2.4 |
tuple | jetLepArbitration = (lambda jet,lepton : lepton) |
float | jetLepDR = 0.4 |
list | jetNus = [x for x in event.genParticles if abs(x.pdgId()) in [12,14,16] and self.cfg_ana.genNuSelection(x) ] |
int | jetPt = 25 |
list | jetsEtaCut = [j for j in self.jets if abs(j.eta()) < self.cfg_ana.jetEta ] |
tuple | jlpairs = matchObjectCollection(incleptons, allJets, self.jetLepDR**2) |
tuple | jtaupairs = matchObjectCollection( taus, allJets, self.jetLepDR**2) |
list | leps_with_overlaps = [] |
Apply jet selection. More... | |
lepSelCut = lambdalep:True, | |
list | leptons = [] |
Sort Jets by pT. More... | |
int | minLepPt = 10 |
tuple | p1 = jet.sourceCandidatePtr(i) |
tuple | p2 = lep.sourceCandidatePtr(j) |
tuple | pairs = matchObjectCollection(jetNus, self.genJets, 0.4**2) |
list | photons = [] |
First cleaning, then Jet Id. More... | |
recalibrateJets = False, | |
string | recalibrationType = "AK4PFchs" |
relaxJetId = False, | |
tuple | rho = ('fixedGridRhoFastjetAll','','') |
int | shiftJEC = 0 |
int | shiftJER = 0 |
smearJets = True, | |
tuple | taus = getattr(event,'selectedTaus',[]) |
Associate jets to taus. More... | |
dictionary | type1METParams = { 'jetPtThreshold':15., 'skipEMfractionThreshold':0.9, 'skipMuons':True } |
Taken from RootTools.JetAnalyzer, simplified, modified, added corrections
Definition at line 65 of file JetAnalyzer.py.
def objects.JetAnalyzer.JetAnalyzer.__init__ | ( | self, | |
cfg_ana, | |||
cfg_comp, | |||
looperName | |||
) |
Definition at line 67 of file JetAnalyzer.py.
def objects.JetAnalyzer.JetAnalyzer.beginLoop | ( | self, | |
setup | |||
) |
Definition at line 112 of file JetAnalyzer.py.
def objects.JetAnalyzer.JetAnalyzer.declareHandles | ( | self | ) |
Definition at line 104 of file JetAnalyzer.py.
References core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, and HTTP.RequestManager.handles.
def objects.JetAnalyzer.JetAnalyzer.jetFlavour | ( | self, | |
event | |||
) |
Definition at line 373 of file JetAnalyzer.py.
References funct.abs().
def objects.JetAnalyzer.JetAnalyzer.matchJets | ( | self, | |
event, | |||
jets | |||
) |
Definition at line 408 of file JetAnalyzer.py.
References funct.abs(), EVTColContainer.genJets, objects.JetAnalyzer.JetAnalyzer.genJets, and deltar.matchObjectCollection2().
def objects.JetAnalyzer.JetAnalyzer.process | ( | self, | |
event | |||
) |
Definition at line 115 of file JetAnalyzer.py.
References core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, and core.Analyzer.Analyzer.readCollections().
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 objects.JetAnalyzer.JetAnalyzer.smearJets | ( | self, | |
event, | |||
jets | |||
) |
Definition at line 426 of file JetAnalyzer.py.
References objects.JetAnalyzer.JetAnalyzer.smearJets.
def objects.JetAnalyzer.JetAnalyzer.testJetID | ( | self, | |
jet | |||
) |
def objects.JetAnalyzer.JetAnalyzer.testJetNoID | ( | self, | |
jet | |||
) |
|
static |
Definition at line 478 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.addJERShifts |
Definition at line 109 of file JetAnalyzer.py.
|
static |
Definition at line 485 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.allJetsUsedForMET |
Definition at line 150 of file JetAnalyzer.py.
|
static |
Definition at line 489 of file JetAnalyzer.py.
|
static |
Definition at line 475 of file JetAnalyzer.py.
|
static |
Definition at line 492 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.bqObjects |
Definition at line 382 of file JetAnalyzer.py.
|
static |
Definition at line 482 of file JetAnalyzer.py.
|
static |
Definition at line 483 of file JetAnalyzer.py.
|
static |
Definition at line 473 of file JetAnalyzer.py.
|
static |
Definition at line 457 of file JetAnalyzer.py.
|
static |
Definition at line 491 of file JetAnalyzer.py.
|
static |
Definition at line 486 of file JetAnalyzer.py.
|
static |
Definition at line 488 of file JetAnalyzer.py.
|
static |
Definition at line 487 of file JetAnalyzer.py.
|
static |
Definition at line 467 of file JetAnalyzer.py.
|
static |
Definition at line 494 of file JetAnalyzer.py.
|
static |
Definition at line 459 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.cqObjects |
Definition at line 383 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.deltaMetFromJEC |
Read jets, if necessary recalibrate and shift MET.
Definition at line 131 of file JetAnalyzer.py.
|
static |
Definition at line 490 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.doJEC |
Definition at line 80 of file JetAnalyzer.py.
|
static |
Definition at line 471 of file JetAnalyzer.py.
Referenced by objects.JetAnalyzer.JetAnalyzer.testJetID().
|
static |
Definition at line 472 of file JetAnalyzer.py.
|
static |
Definition at line 460 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.genJets |
Definition at line 154 of file JetAnalyzer.py.
Referenced by objects.JetAnalyzer.JetAnalyzer.matchJets().
|
static |
Definition at line 493 of file JetAnalyzer.py.
|
static |
Definition at line 190 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.heaviestQCDFlavour |
Definition at line 406 of file JetAnalyzer.py.
|
static |
Jet Id, after jet/lepton cleaning.
Jet Id, after jet/photon cleaning Associate jets to leptons
Definition at line 275 of file JetAnalyzer.py.
|
static |
Definition at line 481 of file JetAnalyzer.py.
Definition at line 281 of file JetAnalyzer.py.
|
static |
Definition at line 458 of file JetAnalyzer.py.
|
static |
Definition at line 463 of file JetAnalyzer.py.
|
static |
Definition at line 464 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.jetGammaDR |
Definition at line 98 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.jetLepArbitration |
Definition at line 95 of file JetAnalyzer.py.
|
static |
Definition at line 466 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.jetLepDR |
Definition at line 94 of file JetAnalyzer.py.
|
static |
Definition at line 465 of file JetAnalyzer.py.
|
static |
Definition at line 309 of file JetAnalyzer.py.
|
static |
Definition at line 462 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.jetReCalibrator |
Definition at line 92 of file JetAnalyzer.py.
|
static |
Definition at line 209 of file JetAnalyzer.py.
|
static |
Definition at line 276 of file JetAnalyzer.py.
|
static |
Definition at line 288 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.lepPtMin |
Definition at line 96 of file JetAnalyzer.py.
|
static |
Apply jet selection.
Definition at line 183 of file JetAnalyzer.py.
|
static |
Definition at line 469 of file JetAnalyzer.py.
|
static |
Sort Jets by pT.
Definition at line 168 of file JetAnalyzer.py.
|
static |
Definition at line 468 of file JetAnalyzer.py.
|
static |
Definition at line 186 of file JetAnalyzer.py.
|
static |
Definition at line 189 of file JetAnalyzer.py.
|
static |
Definition at line 310 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.partons |
Definition at line 385 of file JetAnalyzer.py.
|
static |
First cleaning, then Jet Id.
Clean Jets from photons (first cleaning, then Jet Id)
Definition at line 234 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.qglcalc |
Definition at line 101 of file JetAnalyzer.py.
|
static |
Definition at line 474 of file JetAnalyzer.py.
|
static |
Definition at line 476 of file JetAnalyzer.py.
|
static |
Definition at line 470 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.rho |
Definition at line 118 of file JetAnalyzer.py.
Referenced by Lepton.Lepton.absIsoFromEA(), Muon.Muon.absIsoWithFSR(), Electron.Electron.absIsoWithFSR(), Photon.Photon.chargedHadronIso(), Electron.Electron.electronID(), Electron.Electron.mvaNonTrigV0(), Electron.Electron.mvaRun2(), Electron.Electron.mvaTrigNoIPV0(), Electron.Electron.mvaTrigV0(), Photon.Photon.neutralHadronIso(), and Photon.Photon.photonIso().
|
static |
Definition at line 461 of file JetAnalyzer.py.
Referenced by Lepton.Lepton.absIsoFromEA(), Muon.Muon.absIsoWithFSR(), Electron.Electron.absIsoWithFSR(), Photon.Photon.chargedHadronIso(), Electron.Electron.electronID(), Electron.Electron.mvaNonTrigV0(), Electron.Electron.mvaRun2(), Electron.Electron.mvaTrigNoIPV0(), Electron.Electron.mvaTrigV0(), Photon.Photon.neutralHadronIso(), and Photon.Photon.photonIso().
objects.JetAnalyzer.JetAnalyzer.shiftJEC |
Definition at line 71 of file JetAnalyzer.py.
|
static |
Definition at line 477 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.shiftJER |
Definition at line 108 of file JetAnalyzer.py.
|
static |
Definition at line 480 of file JetAnalyzer.py.
|
static |
Definition at line 479 of file JetAnalyzer.py.
Referenced by objects.JetAnalyzer.JetAnalyzer.smearJets().
|
static |
Associate jets to taus.
Definition at line 287 of file JetAnalyzer.py.
objects.JetAnalyzer.JetAnalyzer.type1METCorr |
Definition at line 132 of file JetAnalyzer.py.
|
static |
Definition at line 484 of file JetAnalyzer.py.
Referenced by JetReCalibrator.JetReCalibrator.correct(), and JetReCalibrator.JetReCalibrator.rawP4forType1MET_().