CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, cfg_ana, cfg_comp, looperName)
 
def beginLoop (self, setup)
 
def declareHandles (self)
 
def jetFlavour (self, event)
 
def matchJets (self, event, jets)
 
def process (self, event)
 
def smearJets (self, event, jets)
 
def testJetID (self, jet)
 
def testJetNoID (self, jet)
 

Public Attributes

 allJetsUsedForMET
 
 bqObjects
 
 cqObjects
 
 deltaMetFromJEC
 Read jets, if necessary recalibrate and shift MET. More...
 
 doJEC
 
 genJets
 
 heaviestQCDFlavour
 
 jetReCalibrator
 
 lepPtMin
 
 partons
 
 qglcalc
 
 type1METCorr
 

Static Public Attributes

 addJECShifts
 
 addJERShifts
 
 alwaysCleanPhotons
 
 applyL2L3Residual
 
 attachNeutrinos
 
 calculateSeparateCorrections
 
 calculateType1METCorrection
 
 checkLeptonPFOverlap
 
 class_object
 
 cleanFromLepAndGammaSimultaneously
 
 cleanGenJets
 
 cleanGenJetsFromPhoton
 
 cleanJets
 
 cleanJetsAll
 
 cleanJetsFailId
 
 cleanJetsFailIdAll
 Jet Id, after jet/lepton cleaning. More...
 
 cleanJetsFromFirstPhoton
 
 cleanJetsFromIsoTracks
 
 cleanJetsFromTaus
 
 cleanJetsFwd
 
 cleanLeptons
 
 cleanSelectedLeptons
 
 collectionPostFix
 
 copyJetsByValue
 
 deltaMetFromJetSmearing
 
 discardedJets
 
 discardedLeptons
 
 do_mc_match
 
 doPuId
 
 doQG
 
 gamma_cleanJetaAll
 
 gamma_cleanJets
 
 gamma_cleanJetsAll
 
 gamma_cleanJetsFailId
 
 gamma_cleanJetsFailIdAll
 Jet Id, after jet/photon cleaning. More...
 
 gamma_cleanJetsFwd
 
 gamma_noIdCleanJets
 
 gamma_noIdCleanJetsAll
 
 gamma_noIdCleanJetsFwd
 
 genJetCol
 
 genNuSelection
 
 has_overlaps
 
 incleptons
 Associate jets to leptons. More...
 
 jecPath
 
 jet
 
 jetCol
 
 jetEta
 
 jetEtaCentral
 
 jetGammaDR
 
 jetGammaLepDR
 
 jetLepArbitration
 
 jetLepDR
 
 jetNus
 
 jetOverlap
 
 jetOverlapIdx
 
 jetPt
 
 jets
 Apply jet selection. More...
 
 jetsAllNoID
 
 jetsEtaCut
 
 jetsFailId
 
 jetsIdOnly
 
 jlpairs
 
 jtaupairs
 
 key
 Sort Jets by pT. More...
 
 leps_with_overlaps
 
 lepSelCut
 
 leptons
 
 minLepPt
 
 noIdCleanJets
 
 noIdCleanJetsAll
 First cleaning, then Jet Id. More...
 
 noIdCleanJetsFwd
 
 noIdDiscardedJets
 
 nu
 
 p1
 
 p2
 
 pairs
 
 photons
 Clean Jets from photons (first cleaning, then Jet Id) More...
 
 qgl_calc
 
 qgl_rho
 
 recalibrateJets
 
 recalibrationType
 
 relaxJetId
 
 reverse
 
 rho
 
 selectedLeptons
 
 shiftJEC
 
 shiftJER
 
 smearJets
 
 taus
 Associate jets to taus. More...
 
 type1METParams
 

Detailed Description

Taken from RootTools.JetAnalyzer, simplified, modified, added corrections    

Definition at line 65 of file JetAnalyzer.py.

Constructor & Destructor Documentation

def objects.JetAnalyzer.JetAnalyzer.__init__ (   self,
  cfg_ana,
  cfg_comp,
  looperName 
)

Definition at line 67 of file JetAnalyzer.py.

References objects.JetAnalyzer.JetAnalyzer.addJECShifts, analyzer.Analyzer.cfg_ana, objects.JetAnalyzer.JetAnalyzer.recalibrateJets, and objects.JetAnalyzer.JetAnalyzer.shiftJEC.

67  def __init__(self, cfg_ana, cfg_comp, looperName):
68  super(JetAnalyzer,self).__init__(cfg_ana, cfg_comp, looperName)
69  mcGT = cfg_ana.mcGT if hasattr(cfg_ana,'mcGT') else "PHYS14_25_V2"
70  dataGT = cfg_ana.dataGT if hasattr(cfg_ana,'dataGT') else "GR_70_V2_AN1"
71  self.shiftJEC = self.cfg_ana.shiftJEC if hasattr(self.cfg_ana, 'shiftJEC') else 0
72  self.recalibrateJets = self.cfg_ana.recalibrateJets
73  self.addJECShifts = self.cfg_ana.addJECShifts if hasattr(self.cfg_ana, 'addJECShifts') else 0
74  if self.recalibrateJets == "MC" : self.recalibrateJets = self.cfg_comp.isMC
75  elif self.recalibrateJets == "Data": self.recalibrateJets = not self.cfg_comp.isMC
76  elif self.recalibrateJets not in [True,False]: raise RuntimeError("recalibrateJets must be any of { True, False, 'MC', 'Data' }, while it is %r " % self.recalibrateJets)
77 
78  calculateSeparateCorrections = getattr(cfg_ana,"calculateSeparateCorrections", False);
79  calculateType1METCorrection = getattr(cfg_ana,"calculateType1METCorrection", False);
80  self.doJEC = self.recalibrateJets or (self.shiftJEC != 0) or self.addJECShifts or calculateSeparateCorrections or calculateType1METCorrection
81  if self.doJEC:
82  doResidual = getattr(cfg_ana, 'applyL2L3Residual', 'Data')
83  if doResidual == "MC": doResidual = self.cfg_comp.isMC
84  elif doResidual == "Data": doResidual = not self.cfg_comp.isMC
85  elif doResidual not in [True,False]: raise RuntimeError("If specified, applyL2L3Residual must be any of { True, False, 'MC', 'Data'(default)}")
86  GT = getattr(cfg_comp, 'jecGT', mcGT if self.cfg_comp.isMC else dataGT)
87  # Now take care of the optional arguments
88  kwargs = { 'calculateSeparateCorrections':calculateSeparateCorrections,
89  'calculateType1METCorrection' :calculateType1METCorrection, }
90  if kwargs['calculateType1METCorrection']: kwargs['type1METParams'] = cfg_ana.type1METParams
91  # instantiate the jet re-calibrator
92  self.jetReCalibrator = JetReCalibrator(GT, cfg_ana.recalibrationType, doResidual, cfg_ana.jecPath, **kwargs)
93  self.doPuId = getattr(self.cfg_ana, 'doPuId', True)
94  self.jetLepDR = getattr(self.cfg_ana, 'jetLepDR', 0.4)
95  self.jetLepArbitration = getattr(self.cfg_ana, 'jetLepArbitration', lambda jet,lepton: lepton)
96  self.lepPtMin = getattr(self.cfg_ana, 'minLepPt', -1)
97  self.lepSelCut = getattr(self.cfg_ana, 'lepSelCut', lambda lep : True)
98  self.jetGammaDR = getattr(self.cfg_ana, 'jetGammaDR', 0.4)
99  self.jetGammaLepDR = getattr(self.cfg_ana, 'jetGammaLepDR', 0.4)
100  self.cleanFromLepAndGammaSimultaneously = getattr(self.cfg_ana, 'cleanFromLepAndGammaSimultaneously', False)
102  if hasattr(self.cfg_ana, 'jetGammaLepDR'):
103  self.jetGammaLepDR = self.jetGammaLepDR
104  elif (self.jetGammaDR == self.jetLepDR):
105  self.jetGammaLepDR = self.jetGammaDR
106  else:
107  raise RuntimeError("DR for simultaneous cleaning of jets from leptons and photons is not defined, and dR(gamma, jet)!=dR(lep, jet)")
108  if(self.cfg_ana.doQG):
109  qgdefname="{CMSSW_BASE}/src/PhysicsTools/Heppy/data/pdfQG_AK4chs_13TeV_v2b.root"
110  self.qglcalc = QGLikelihoodCalculator(getattr(self.cfg_ana,"QGpath",qgdefname).format(CMSSW_BASE= os.environ['CMSSW_BASE']))
111  if not hasattr(self.cfg_ana ,"collectionPostFix"):self.cfg_ana.collectionPostFix=""
112 
def __init__(self, cfg_ana, cfg_comp, looperName)
Definition: JetAnalyzer.py:67
if(dp >Float(M_PI)) dp-

Member Function Documentation

def objects.JetAnalyzer.JetAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 121 of file JetAnalyzer.py.

121  def beginLoop(self, setup):
122  super(JetAnalyzer,self).beginLoop(setup)
123 
def objects.JetAnalyzer.JetAnalyzer.declareHandles (   self)

Definition at line 113 of file JetAnalyzer.py.

References objects.JetAnalyzer.JetAnalyzer.addJERShifts, analyzer.Analyzer.cfg_ana, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, and objects.JetAnalyzer.JetAnalyzer.shiftJER.

113  def declareHandles(self):
114  super(JetAnalyzer, self).declareHandles()
115  self.handles['jets'] = AutoHandle( self.cfg_ana.jetCol, 'std::vector<pat::Jet>' )
116  self.handles['genJet'] = AutoHandle( self.cfg_ana.genJetCol, 'vector<reco::GenJet>' )
117  self.shiftJER = self.cfg_ana.shiftJER if hasattr(self.cfg_ana, 'shiftJER') else 0
118  self.addJERShifts = self.cfg_ana.addJERShifts if hasattr(self.cfg_ana, 'addJERShifts') else 0
119  self.handles['rho'] = AutoHandle( self.cfg_ana.rho, 'double' )
120 
def objects.JetAnalyzer.JetAnalyzer.jetFlavour (   self,
  event 
)

Definition at line 393 of file JetAnalyzer.py.

References funct.abs().

393  def jetFlavour(self,event):
394  def isFlavour(x,f):
395  id = abs(x.pdgId())
396  if id > 999: return (id/1000)%10 == f
397  if id > 99: return (id/100)%10 == f
398  return id % 100 == f
399 
400 
401 
402  self.bqObjects = [ p for p in event.genParticles if (p.status() == 2 and isFlavour(p,5)) ]
403  self.cqObjects = [ p for p in event.genParticles if (p.status() == 2 and isFlavour(p,4)) ]
404 
405  self.partons = [ p for p in event.genParticles if ((p.status() == 23 or p.status() == 3) and abs(p.pdgId())>0 and (abs(p.pdgId()) in [1,2,3,4,5,21]) ) ]
407  self.partons,
408  deltaRMax = 0.3)
409 
410  for jet in self.cleanJetsAll:
411  parton = match[jet]
412  jet.partonId = (parton.pdgId() if parton != None else 0)
413  jet.partonMotherId = (parton.mother(0).pdgId() if parton != None and parton.numberOfMothers()>0 else 0)
414 
415  for jet in self.jets:
416  (bmatch, dr) = bestMatch(jet, self.bqObjects)
417  if dr < 0.4:
418  jet.mcFlavour = 5
419  else:
420  (cmatch, dr) = bestMatch(jet, self.cqObjects)
421  if dr < 0.4:
422  jet.mcFlavour = 4
423  else:
424  jet.mcFlavour = 0
425 
426  self.heaviestQCDFlavour = 5 if len(self.bqObjects) else (4 if len(self.cqObjects) else 1);
427 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
jets
Apply jet selection.
Definition: JetAnalyzer.py:188
def bestMatch(object, matchCollection)
Definition: deltar.py:139
def matchObjectCollection2(objects, matchCollection, deltaRMax=0.3)
Definition: deltar.py:167
def objects.JetAnalyzer.JetAnalyzer.matchJets (   self,
  event,
  jets 
)

Definition at line 428 of file JetAnalyzer.py.

References funct.abs(), EVTColContainer.genJets, objects.JetAnalyzer.JetAnalyzer.genJets, and deltar.matchObjectCollection2().

428  def matchJets(self, event, jets):
429  match = matchObjectCollection2(jets,
430  event.genbquarks + event.genwzquarks,
431  deltaRMax = 0.3)
432  for jet in jets:
433  gen = match[jet]
434  jet.mcParton = gen
435  jet.mcMatchId = (gen.sourceId if gen != None else 0)
436  jet.mcMatchFlav = (abs(gen.pdgId()) if gen != None else 0)
437 
438  match = matchObjectCollection2(jets,
439  self.genJets,
440  deltaRMax = 0.3)
441  for jet in jets:
442  jet.mcJet = match[jet]
443 
444 
445 
def matchJets(self, event, jets)
Definition: JetAnalyzer.py:428
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def matchObjectCollection2(objects, matchCollection, deltaRMax=0.3)
Definition: deltar.py:167
def objects.JetAnalyzer.JetAnalyzer.process (   self,
  event 
)

Definition at line 124 of file JetAnalyzer.py.

References objects.autophobj.float, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, genParticles_cff.map, core.Analyzer.Analyzer.readCollections(), correctionValue_class.rho, AlignmentMonitorMuonSystemMap1D::MyResidual.rho, and objects.JetAnalyzer.JetAnalyzer.rho.

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

124  def process(self, event):
125  self.readCollections( event.input )
126  rho = float(self.handles['rho'].product()[0])
127  self.rho = rho
128 
129  ## Read jets, if necessary recalibrate and shift MET
130  if self.cfg_ana.copyJetsByValue:
131  import ROOT
132  #from ROOT.heppy import JetUtils
133  allJets = map(lambda j:Jet(ROOT.heppy.JetUtils.copyJet(j)), self.handles['jets'].product()) #copy-by-value is safe if JetAnalyzer is ran more than once
134  else:
135  allJets = map(Jet, self.handles['jets'].product())
136 
137  #set dummy MC flavour for all jets in case we want to ntuplize discarded jets later
138  for jet in allJets:
139  jet.mcFlavour = 0
140 
141  self.deltaMetFromJEC = [0.,0.]
142  self.type1METCorr = [0.,0.,0.]
143 # print "before. rho",self.rho,self.cfg_ana.collectionPostFix,'allJets len ',len(allJets),'pt', [j.pt() for j in allJets]
144  if self.doJEC:
145  if not self.recalibrateJets: # check point that things won't change
146  jetsBefore = [ (j.pt(),j.eta(),j.phi(),j.rawFactor()) for j in allJets ]
147  self.jetReCalibrator.correctAll(allJets, rho, delta=self.shiftJEC,
148  addCorr=True, addShifts=self.addJECShifts,
149  metShift=self.deltaMetFromJEC, type1METCorr=self.type1METCorr )
150  if not self.recalibrateJets:
151  jetsAfter = [ (j.pt(),j.eta(),j.phi(),j.rawFactor()) for j in allJets ]
152  if len(jetsBefore) != len(jetsAfter):
153  print "ERROR: I had to recompute jet corrections, and they rejected some of the jets:\nold = %s\n new = %s\n" % (jetsBefore,jetsAfter)
154  else:
155  for (told, tnew) in zip(jetsBefore,jetsAfter):
156  if (deltaR2(told[1],told[2],tnew[1],tnew[2])) > 0.0001:
157  print "ERROR: I had to recompute jet corrections, and one jet direction moved: old = %s, new = %s\n" % (told, tnew)
158  elif abs(told[0]-tnew[0])/(told[0]+tnew[0]) > 0.5e-3 or abs(told[3]-tnew[3]) > 0.5e-3:
159  print "ERROR: I had to recompute jet corrections, and one jet pt or corr changed: old = %s, new = %s\n" % (told, tnew)
160  self.allJetsUsedForMET = allJets
161 # print "after. rho",self.rho,self.cfg_ana.collectionPostFix,'allJets len ',len(allJets),'pt', [j.pt() for j in allJets]
162 
163  if self.cfg_comp.isMC:
164  self.genJets = [ x for x in self.handles['genJet'].product() ]
165  if self.cfg_ana.do_mc_match:
166  for igj, gj in enumerate(self.genJets):
167  gj.index = igj
168 # self.matchJets(event, allJets)
169  self.matchJets(event, [ j for j in allJets if j.pt()>self.cfg_ana.jetPt ]) # To match only jets above chosen threshold
170  if getattr(self.cfg_ana, 'smearJets', False):
171  self.smearJets(event, allJets)
172 
173 
174 
175 
deltaMetFromJEC
Read jets, if necessary recalibrate and shift MET.
Definition: JetAnalyzer.py:141
def matchJets(self, event, jets)
Definition: JetAnalyzer.py:428
Definition: Jet.py:1
OutputIterator zip(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, Compare comp)
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
T1 deltaR2(T1 eta1, T2 phi1, T3 eta2, T4 phi2)
Definition: deltaR.h:36
def objects.JetAnalyzer.JetAnalyzer.smearJets (   self,
  event,
  jets 
)

Definition at line 446 of file JetAnalyzer.py.

References objects.JetAnalyzer.JetAnalyzer.smearJets.

446  def smearJets(self, event, jets):
447  # https://twiki.cern.ch/twiki/bin/viewauth/CMS/TWikiTopRefSyst#Jet_energy_resolution
448  for jet in jets:
449  gen = jet.mcJet
450  if gen != None:
451  genpt, jetpt, aeta = gen.pt(), jet.pt(), abs(jet.eta())
452  # from https://twiki.cern.ch/twiki/bin/view/CMS/JetResolution
453  #8 TeV tables
454  factor = shiftJERfactor(self.shiftJER, aeta)
455  ptscale = max(0.0, (jetpt + (factor-1)*(jetpt-genpt))/jetpt)
456  #print "get with pt %.1f (gen pt %.1f, ptscale = %.3f)" % (jetpt,genpt,ptscale)
457  jet.deltaMetFromJetSmearing = [ -(ptscale-1)*jet.rawFactor()*jet.px(), -(ptscale-1)*jet.rawFactor()*jet.py() ]
458  if ptscale != 0:
459  jet.setP4(jet.p4()*ptscale)
460  # leave the uncorrected unchanged for sync
461  jet.setRawFactor(jet.rawFactor()/ptscale)
462  #else: print "jet with pt %.1d, eta %.2f is unmatched" % (jet.pt(), jet.eta())
463  if (self.shiftJER==0) and (self.addJERShifts):
464  setattr(jet, "corrJER", ptscale )
465  factorJERUp= shiftJERfactor(1, aeta)
466  ptscaleJERUp = max(0.0, (jetpt + (factorJERUp-1)*(jetpt-genpt))/jetpt)
467  setattr(jet, "corrJERUp", ptscaleJERUp)
468  factorJERDown= shiftJERfactor(-1, aeta)
469  ptscaleJERDown = max(0.0, (jetpt + (factorJERDown-1)*(jetpt-genpt))/jetpt)
470  setattr(jet, "corrJERDown", ptscaleJERDown)
471 
472 
473 
474 
475 
476 setattr(JetAnalyzer,"defaultConfig", cfg.Analyzer(
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def shiftJERfactor(JERShift, aeta)
Definition: JetAnalyzer.py:51
def objects.JetAnalyzer.JetAnalyzer.testJetID (   self,
  jet 
)

Definition at line 380 of file JetAnalyzer.py.

References objects.JetAnalyzer.JetAnalyzer.doPuId.

380  def testJetID(self, jet):
381  jet.puJetIdPassed = jet.puJetId()
382  jet.pfJetIdPassed = jet.jetID('POG_PFID_Loose')
383  if self.cfg_ana.relaxJetId:
384  return True
385  else:
386  return jet.pfJetIdPassed and (jet.puJetIdPassed or not(self.doPuId))
387 
def objects.JetAnalyzer.JetAnalyzer.testJetNoID (   self,
  jet 
)

Definition at line 388 of file JetAnalyzer.py.

References funct.abs().

388  def testJetNoID( self, jet ):
389  # 2 is loose pile-up jet id
390  return jet.pt() > self.cfg_ana.jetPt and \
391  abs( jet.eta() ) < self.cfg_ana.jetEta;
392 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Data Documentation

objects.JetAnalyzer.JetAnalyzer.addJECShifts
static

Definition at line 498 of file JetAnalyzer.py.

Referenced by objects.JetAnalyzer.JetAnalyzer.__init__().

objects.JetAnalyzer.JetAnalyzer.addJERShifts
static

Definition at line 505 of file JetAnalyzer.py.

Referenced by objects.JetAnalyzer.JetAnalyzer.declareHandles().

objects.JetAnalyzer.JetAnalyzer.allJetsUsedForMET

Definition at line 160 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.alwaysCleanPhotons
static

Definition at line 509 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.applyL2L3Residual
static

Definition at line 495 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.attachNeutrinos
static

Definition at line 515 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.bqObjects

Definition at line 402 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.calculateSeparateCorrections
static

Definition at line 502 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.calculateType1METCorrection
static

Definition at line 503 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.checkLeptonPFOverlap
static

Definition at line 493 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.class_object
static

Definition at line 477 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanFromLepAndGammaSimultaneously
static

Definition at line 513 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanGenJets
static

Definition at line 323 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanGenJetsFromPhoton
static

Definition at line 511 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanJets
static

Definition at line 223 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanJetsAll
static

Definition at line 221 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanJetsFailId
static

Definition at line 284 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanJetsFailIdAll
static

Jet Id, after jet/lepton cleaning.

Definition at line 279 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanJetsFromFirstPhoton
static

Definition at line 506 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanJetsFromIsoTracks
static

Definition at line 508 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanJetsFromTaus
static

Definition at line 507 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanJetsFwd
static

Definition at line 224 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanLeptons
static

Definition at line 221 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cleanSelectedLeptons
static

Definition at line 487 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.collectionPostFix
static

Definition at line 517 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.copyJetsByValue
static

Definition at line 479 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.cqObjects

Definition at line 403 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.deltaMetFromJEC

Read jets, if necessary recalibrate and shift MET.

Definition at line 141 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.deltaMetFromJetSmearing
static

Definition at line 317 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.discardedJets
static

Definition at line 225 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.discardedLeptons
static

Definition at line 227 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.do_mc_match
static

Definition at line 510 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.doJEC

Definition at line 80 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.doPuId
static

Definition at line 491 of file JetAnalyzer.py.

Referenced by objects.JetAnalyzer.JetAnalyzer.testJetID().

objects.JetAnalyzer.JetAnalyzer.doQG
static

Definition at line 492 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.gamma_cleanJetaAll
static

Definition at line 252 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.gamma_cleanJets
static

Definition at line 262 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.gamma_cleanJetsAll
static

Definition at line 256 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.gamma_cleanJetsFailId
static

Definition at line 292 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.gamma_cleanJetsFailIdAll
static

Jet Id, after jet/photon cleaning.

Definition at line 287 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.gamma_cleanJetsFwd
static

Definition at line 263 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.gamma_noIdCleanJets
static

Definition at line 265 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.gamma_noIdCleanJetsAll
static

Definition at line 253 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.gamma_noIdCleanJetsFwd
static

Definition at line 266 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.genJetCol
static

Definition at line 480 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.genJets

Definition at line 164 of file JetAnalyzer.py.

Referenced by objects.JetAnalyzer.JetAnalyzer.matchJets().

objects.JetAnalyzer.JetAnalyzer.genNuSelection
static

Definition at line 516 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.has_overlaps
static

Definition at line 201 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.heaviestQCDFlavour

Definition at line 426 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.incleptons
static

Associate jets to leptons.

Definition at line 295 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jecPath
static

Definition at line 501 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jet
static

Definition at line 301 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetCol
static

Definition at line 478 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetEta
static

Definition at line 483 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetEtaCentral
static

Definition at line 484 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetGammaDR
static

Definition at line 512 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetGammaLepDR
static

Definition at line 514 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetLepArbitration
static

Definition at line 486 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetLepDR
static

Definition at line 485 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetNus
static

Definition at line 329 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetOverlap
static

Definition at line 206 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetOverlapIdx
static

Definition at line 233 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetPt
static

Definition at line 482 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetReCalibrator

Definition at line 92 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jets
static

Apply jet selection.

Definition at line 188 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetsAllNoID
static

Definition at line 190 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetsEtaCut
static

Definition at line 220 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetsFailId
static

Definition at line 189 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jetsIdOnly
static

Definition at line 191 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jlpairs
static

Definition at line 296 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.jtaupairs
static

Definition at line 308 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.key
static

Sort Jets by pT.

Definition at line 177 of file JetAnalyzer.py.

Referenced by ws_sso_content_reader.HTTPSClientAuthHandler.getConnection().

objects.JetAnalyzer.JetAnalyzer.lepPtMin

Definition at line 96 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.leps_with_overlaps
static

Definition at line 194 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.lepSelCut
static

Definition at line 489 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.leptons
static

Definition at line 179 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.minLepPt
static

Definition at line 488 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.noIdCleanJets
static

Definition at line 240 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.noIdCleanJetsAll
static

First cleaning, then Jet Id.

Definition at line 239 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.noIdCleanJetsFwd
static

Definition at line 241 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.noIdDiscardedJets
static

Definition at line 242 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.nu
static

Definition at line 335 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.p1
static

Definition at line 197 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.p2
static

Definition at line 200 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.pairs
static

Definition at line 330 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.partons

Definition at line 405 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.photons
static

Clean Jets from photons (first cleaning, then Jet Id)

Definition at line 245 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.qgl_calc
static

Definition at line 210 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.qgl_rho
static

Definition at line 211 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.qglcalc

Definition at line 110 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.recalibrateJets
static

Definition at line 494 of file JetAnalyzer.py.

Referenced by objects.JetAnalyzer.JetAnalyzer.__init__().

objects.JetAnalyzer.JetAnalyzer.recalibrationType
static

Definition at line 496 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.relaxJetId
static

Definition at line 490 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.reverse
static

Definition at line 177 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.rho
static
objects.JetAnalyzer.JetAnalyzer.selectedLeptons
static

Definition at line 228 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.shiftJEC
static

Definition at line 497 of file JetAnalyzer.py.

Referenced by objects.JetAnalyzer.JetAnalyzer.__init__().

objects.JetAnalyzer.JetAnalyzer.shiftJER
static

Definition at line 500 of file JetAnalyzer.py.

Referenced by objects.JetAnalyzer.JetAnalyzer.declareHandles().

objects.JetAnalyzer.JetAnalyzer.smearJets
static

Definition at line 499 of file JetAnalyzer.py.

Referenced by objects.JetAnalyzer.JetAnalyzer.smearJets().

objects.JetAnalyzer.JetAnalyzer.taus
static

Associate jets to taus.

Definition at line 307 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.type1METCorr

Definition at line 142 of file JetAnalyzer.py.

objects.JetAnalyzer.JetAnalyzer.type1METParams
static