CMS 3D CMS Logo

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

Public Member Functions

def __init__
 
def btag
 
def btagWP
 
def chargedEmEnergyFraction
 
def chargedHadronEnergyFraction
 
def chargedMuEnergyFraction
 
def computeQGvars
 
def corrFactor
 
def electronEnergyFraction
 
def HFEMEnergyFraction
 
def HFHadronEnergyFraction
 
def hoEnergyFraction
 
def jetID
 
def l1corrFactor
 
def leadingTrack
 
def leadTrackPt
 
def looseJetId
 
def muonEnergyFraction
 
def neutralEmEnergyFraction
 
def neutralHadronEnergyFraction
 
def photonEnergyFraction
 
def puJetId
 
def puMva
 
def qgl
 
def rawEnergy
 
def rawFactor
 
def setCorrP4
 
def setRawFactor
 

Public Attributes

 hasQGvars
 
 qgl_value
 

Private Member Functions

def _physObjInit
 

Private Attributes

 _leadingTrack
 
 _leadingTrackSearched
 
 _rawFactorMultiplier
 
 _recalibrated
 

Detailed Description

Definition at line 45 of file Jet.py.

Constructor & Destructor Documentation

def Jet.Jet.__init__ (   self,
  args,
  kwargs 
)

Definition at line 46 of file Jet.py.

References Electron.Electron._physObjInit(), and Jet.Jet._physObjInit().

46 
47  def __init__(self, *args, **kwargs):
48  super(Jet, self).__init__(*args, **kwargs)
49  self._physObjInit()
def _physObjInit
Definition: Jet.py:50
def __init__
Definition: Jet.py:46

Member Function Documentation

def Jet.Jet._physObjInit (   self)
private

Definition at line 50 of file Jet.py.

Referenced by Photon.Photon.__init__(), and Jet.Jet.__init__().

50 
51  def _physObjInit(self):
53  self._recalibrated = False
54  self._leadingTrack = None
55  self._leadingTrackSearched = False
_leadingTrack
Definition: Jet.py:53
_recalibrated
Definition: Jet.py:52
def _physObjInit
Definition: Jet.py:50
_rawFactorMultiplier
Definition: Jet.py:51
_leadingTrackSearched
Definition: Jet.py:54
def Jet.Jet.btag (   self,
  name 
)

Definition at line 182 of file Jet.py.

References pat::Jet.bDiscriminator().

Referenced by Jet.Jet.btagWP().

183  def btag(self,name):
184  ret = self.bDiscriminator(name)
185  if ret == -1000 and name.startswith("pf"):
186  ret = self.bDiscriminator(name[2].lower()+name[3:])
187  return ret
def btag
Definition: Jet.py:182
def Jet.Jet.btagWP (   self,
  name 
)

Definition at line 188 of file Jet.py.

References BTagWeightCalculator.BTagWeightCalculator.btag, and Jet.Jet.btag().

189  def btagWP(self,name):
190  global _btagWPs
191  (disc,val) = _btagWPs[name]
192  return self.btag(disc) > val
def btag
Definition: Jet.py:182
def btagWP
Definition: Jet.py:188
def Jet.Jet.chargedEmEnergyFraction (   self)

Definition at line 62 of file Jet.py.

References reco::JPTJet.chargedEmEnergy(), reco::PFJet.chargedEmEnergy(), JetTester.chargedEmEnergy, pat::Jet.chargedEmEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

62 
63  def chargedEmEnergyFraction(self):
64  return self.chargedEmEnergy()/self.rawEnergy()
def chargedEmEnergyFraction
Definition: Jet.py:62
def rawEnergy
Definition: Jet.py:56
def Jet.Jet.chargedHadronEnergyFraction (   self)

Definition at line 65 of file Jet.py.

References ScoutingPFJet.chargedHadronEnergy(), reco::JPTJet.chargedHadronEnergy(), reco::PFJet.chargedHadronEnergy(), JetTester.chargedHadronEnergy, pat::Jet.chargedHadronEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

65 
67  return self.chargedHadronEnergy()/self.rawEnergy()
def rawEnergy
Definition: Jet.py:56
def chargedHadronEnergyFraction
Definition: Jet.py:65
def Jet.Jet.chargedMuEnergyFraction (   self)

Definition at line 68 of file Jet.py.

References reco::PFJet.chargedMuEnergy(), JetTester.chargedMuEnergy, pat::Jet.chargedMuEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

68 
69  def chargedMuEnergyFraction(self):
70  return self.chargedMuEnergy()/self.rawEnergy()
def chargedMuEnergyFraction
Definition: Jet.py:68
def rawEnergy
Definition: Jet.py:56
def Jet.Jet.computeQGvars (   self)

Definition at line 218 of file Jet.py.

Referenced by Jet.Jet.qgl().

219  def computeQGvars(self):
220  #return immediately if qgvars already computed or if qgl is disabled
221  if not hasattr(self,"qgl_rho") or getattr(self,"hasQGVvars",False) :
222  return self
223  self.hasQGvars = True
224 
225  jet = self
226  jet.mult = 0
227  sum_weight = 0.
228  sum_pt = 0.
229  sum_deta = 0.
230  sum_dphi = 0.
231  sum_deta2 = 0.
232  sum_detadphi = 0.
233  sum_dphi2 = 0.
234 
235 
236 
237  for ii in range(0, jet.numberOfDaughters()) :
238 
239  part = jet.daughter(ii)
240 
241  if part.charge() == 0 : # neutral particles
242 
243  if part.pt() < 1.: continue
244 
245  else : # charged particles
246 
247  if part.trackHighPurity()==False: continue
248  if part.fromPV()<=1: continue
249 
250 
251  jet.mult += 1
252 
253  deta = part.eta() - jet.eta()
254  dphi = deltaPhi(part.phi(), jet.phi())
255  partPt = part.pt()
256  weight = partPt*partPt
257  sum_weight += weight
258  sum_pt += partPt
259  sum_deta += deta*weight
260  sum_dphi += dphi*weight
261  sum_deta2 += deta*deta*weight
262  sum_detadphi += deta*dphi*weight
263  sum_dphi2 += dphi*dphi*weight
264 
265 
266 
267 
268  a = 0.
269  b = 0.
270  c = 0.
271 
272  if sum_weight > 0 :
273  jet.ptd = math.sqrt(sum_weight)/sum_pt
274  ave_deta = sum_deta/sum_weight
275  ave_dphi = sum_dphi/sum_weight
276  ave_deta2 = sum_deta2/sum_weight
277  ave_dphi2 = sum_dphi2/sum_weight
278  a = ave_deta2 - ave_deta*ave_deta
279  b = ave_dphi2 - ave_dphi*ave_dphi
280  c = -(sum_detadphi/sum_weight - ave_deta*ave_dphi)
281  else: jet.ptd = 0.
282 
283  delta = math.sqrt(math.fabs((a-b)*(a-b)+4.*c*c))
284 
285  if a+b-delta > 0: jet.axis2 = -math.log(math.sqrt(0.5*(a+b-delta)))
286  else: jet.axis2 = -1.
287  return jet
288 
289 
def computeQGvars
Definition: Jet.py:218
hasQGvars
Definition: Jet.py:222
def Jet.Jet.corrFactor (   self)

Definition at line 162 of file Jet.py.

References Jet.Jet.rawFactor().

163  def corrFactor(self):
164  return 1.0/self.rawFactor()
def corrFactor
Definition: Jet.py:162
def rawFactor
Definition: Jet.py:156
def Jet.Jet.electronEnergyFraction (   self)

Definition at line 71 of file Jet.py.

References ScoutingPFJet.electronEnergy(), reco::PFJet.electronEnergy(), JetTester.electronEnergy, pat::Jet.electronEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

71 
72  def electronEnergyFraction(self):
73  return self.electronEnergy()/self.rawEnergy()
def rawEnergy
Definition: Jet.py:56
def electronEnergyFraction
Definition: Jet.py:71
def Jet.Jet.HFEMEnergyFraction (   self)

Definition at line 90 of file Jet.py.

References ScoutingPFJet.HFEMEnergy(), reco::PFJet.HFEMEnergy(), JetTester.HFEMEnergy, pat::Jet.HFEMEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

90 
91  def HFEMEnergyFraction(self):
92  return self.HFEMEnergy()/self.rawEnergy()
def rawEnergy
Definition: Jet.py:56
def HFEMEnergyFraction
Definition: Jet.py:90
def Jet.Jet.HFHadronEnergyFraction (   self)

Definition at line 87 of file Jet.py.

References ScoutingPFJet.HFHadronEnergy(), reco::PFJet.HFHadronEnergy(), JetTester.HFHadronEnergy, pat::Jet.HFHadronEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

87 
88  def HFHadronEnergyFraction(self):
89  return self.HFHadronEnergy()/self.rawEnergy()
def rawEnergy
Definition: Jet.py:56
def HFHadronEnergyFraction
Definition: Jet.py:87
def Jet.Jet.hoEnergyFraction (   self)

Definition at line 93 of file Jet.py.

References TrackDetMatchInfo.hoEnergy(), reco::PFJet.hoEnergy(), reco::PFCandidate.hoEnergy(), HcalDetDiagLaserMonitor.hoEnergy, pat::Jet.hoEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

93 
94  def hoEnergyFraction(self):
95  return self.hoEnergy()/self.rawEnergy()
96 
97 
def rawEnergy
Definition: Jet.py:56
def hoEnergyFraction
Definition: Jet.py:93
def Jet.Jet.jetID (   self,
  name = "" 
)

Definition at line 98 of file Jet.py.

References funct.abs(), reco::JPTJet.chargedEmEnergy(), reco::PFJet.chargedEmEnergy(), JetTester.chargedEmEnergy, pat::Jet.chargedEmEnergy(), ScoutingPFJet.chargedHadronEnergy(), reco::JPTJet.chargedHadronEnergy(), reco::PFJet.chargedHadronEnergy(), JetTester.chargedHadronEnergy, pat::Jet.chargedHadronEnergy(), ScoutingPFJet.chargedHadronMultiplicity(), reco::PFJet.chargedHadronMultiplicity(), JetTester.chargedHadronMultiplicity, pat::Jet.chargedHadronMultiplicity(), reco::JPTJet.chargedMultiplicity(), reco::PFJet.chargedMultiplicity(), JetTester.chargedMultiplicity, pat::Jet.chargedMultiplicity(), eetest::CandForTest.eta(), DBlmapWriter::_LMapRowHBEF.eta, res::HelperElectron.eta(), res::HelperMuon.eta(), res::HelperJet.eta(), muonisolation::NominalEfficiencyThresholds::ThresholdLocation.eta, RecoObj.eta, MSLayersKeeperX0AtEta.eta(), HcalCellType::HcalCell.eta, res::HelperMET.eta(), ScoutingParticle.eta(), Raddam_ch.eta, SimG4HcalHitCluster.eta(), SuperClusterHelper.eta(), jetData.eta, ScoutingPhoton.eta(), Residual1DHit.eta, CaloHit.eta(), ScoutingElectron.eta(), DDHCalTBZposAlgo.eta, DDHCalTestBeamAlgo.eta, HcalChannelId.eta, MySimTrack.eta, MatchStruct.eta, BenchmarkTreeEntry.eta, PtEtaPhiMass.eta(), ScoutingMuon.eta(), HcalDDDRecConstants::HcalID.eta, HcalHardcodeGeometryLoader::HBHOCellParameters.eta, ScoutingCaloJet.eta(), HcalFlexiHardcodeGeometryLoader::HBHOCellParameters.eta, L1Analysis::L1AnalysisRecoClusterDataFormat.eta, learn_.eta, ImpactPoint.eta, reco::isodeposit::Direction.eta(), L2TauPixelTrackMatch::TinyTrack.eta, EnergyResolutionVsLumi::DegradationAtEta.eta, ScoutingPFJet.eta(), egHLT::BinData.eta, LMapLoader::_LMapRowHBEF.eta, TrackerValidationVariables::AVHitStruct.eta, ShallowClustersProducer::NearDigis.eta(), ResonanceBuilder.Resonance.eta(), LMapRow.eta, ElectronMVAEstimator.eta, DTMuonLocalAlignment.eta, HcalTestHistoClass::Hit.eta, L1Analysis::L1AnalysisL1CaloClusterDataFormat.eta, HcalDDDRecConstants::HcalActiveLength.eta, L1Analysis::L1AnalysisRecoTauDataFormat.eta, PatTrackAnalyzer::Plots.eta, ZMuMuIsolationAnalyzer.eta, HcalHardcodeGeometryLoader::HECellParameters.eta, BeamProfileVtxGenerator.eta(), PHcalTB04Info.eta(), MaterialBudgetCastorHistos.eta, L1Analysis::L1AnalysisRecoElectronDataFormat.eta, QcdLowPtDQM::Pixel.eta(), PHcalTB06Info::Hit.eta, StripCPEgeometric::WrappedCluster.eta(), GloballyPositioned< float >.eta(), GloballyPositioned< align::Scalar >.eta(), HcalFlexiHardcodeGeometryLoader::HECellParameters.eta, RotationType.eta(), GloballyPositioned< T >.eta(), L1Analysis::L1AnalysisL1CaloTowerDataFormat.eta, IdealObliquePrism.eta(), RhoEtaPhi.eta(), L1Analysis::L1AnalysisRecoMuon2DataFormat.eta, IdealZPrism.eta(), jpt::Map.eta(), PGlobalSimHit::CalHit.eta, OnePiRange< T >.eta(), Geom::OnePiRange< T >.eta(), MaterialBudget.eta, HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.eta(), L1MuGMTEtaLUT.eta(), FWPFCandidateDetailView.eta(), JetCalibrationParameterSetTauJet.eta(), HGCalRecHitValidation::HitsInfo.eta, trigger::TriggerObject.eta(), MaterialBudgetForward.eta, XMLHTRZeroSuppressionLoader::_datasetDBConfig.eta, IsolatedPixelTrackCandidateProducer::seedAtEC.eta, reco::GhostTrackPrediction.eta(), TrackerValidationVariables::AVTrackStruct.eta, PFECALSuperClusterAlgo::CalibratedPFCluster.eta(), PGlobalSimHit::FwdHit.eta, HcalTB02HistoClass.eta(), MaterialBudgetHcalHistos.eta, reco::PattRecoPeak< double >.eta(), reco::PattRecoPeak< float >.eta(), PattRecoPeak< Real >.eta(), HcalHardcodeGeometryLoader::HFCellParameters.eta, reco::PattRecoPeak< Real >.eta(), goodseedhelpers::HeavyObjectCache.eta, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.eta, reco::CaloMuon.eta(), SoftElectronMVAEstimator.eta, SimpleL1MuGMTCand.eta(), PHcalTB06Info.eta(), HTrackVariables.eta(), PdtPdgMini.eta, CSCSP_SPblock.eta(), MuScleFitMuon.eta(), HcalFlexiHardcodeGeometryLoader::HFCellParameters.eta, EleRelPoint.eta(), XMLProcessor::_LMapRowHBEF.eta, ValidationMisalignedTracker.eta, reco::CastorCell.eta(), PhotonFix.eta(), HGCalSimHitValidation::hitsinfo.eta, cms::MinBias.eta, L1MuDTEtaPattern.eta(), LMapDetId.eta, PatPhotonSimpleAnalyzer::struct_recPhoton.eta, PGlobalSimHit::BrlHit.eta, PhotonIDSimpleAnalyzer::struct_recPhoton.eta, reco::IsoDeposit.eta(), reco::CastorEgamma.eta(), reco::CastorJet.eta(), PV3DBase< float, PointTag, GlobalTag >.eta(), QcdLowPtDQM::Tracklet.eta(), Vector3DBase< U, FrameTag >.eta(), PV3DBase< float, VectorTag, GlobalTag >.eta(), Vector3DBase< U, GlobalTag >.eta(), Vector3DBase< double, LocalTag >.eta(), PV3DBase< Scalar, VectorTag, GlobalTag >.eta(), PV3DBase< long double, PointTag, GlobalTag >.eta(), PV3DBase< T, PointTag, GlobalTag >.eta(), PV3DBase< float, VectorTag, LocalTag >.eta(), PV3DBase< float, PointTag, LocalTag >.eta(), PV3DBase< float, PointTag, MeasurementTag >.eta(), Point3DBase< U, GlobalTag >.eta(), Vector3DBase< T, FrameTag >.eta(), PV3DBase< T, PointTag, FrameTag >.eta(), PV3DBase< float, VectorTag, MeasurementTag >.eta(), Point3DBase< U, LocalTag >.eta(), Vector3DBase< U, LocalTag >.eta(), Point3DBase< U, FrameTag >.eta(), Vector3DBase< U, Frame >.eta(), Vector3DBase< T, Frame >.eta(), Point3DBase< U, Frame >.eta(), Point3DBase< T, Frame >.eta(), PV3DBase< align::Scalar, PointTag, GlobalTag >.eta(), PV3DBase< T, VectorTag, FrameTag >.eta(), PV3DBase< T, PVType, FrameType >.eta(), PV3DBase< Scalar, PointTag, GlobalTag >.eta(), MuonGmtPair.eta(), L1MuDTTrack.eta(), MuonDTLocalMillepedeAlgorithm.eta, BPhysicsValidation::ParticleMonitor.eta, HcalTB02Analysis.eta, L1MuDTEtaProcessor.eta(), L1Analysis::L1AnalysisRecoJetDataFormat.eta, L1MuBMTrack.eta(), EgammaTowerIsolationNew< NC >.eta, L1MuBMEtaProcessor.eta(), L1TDEMON.eta, cms::Analyzer_minbias.eta, reco::PreId.eta(), reco::CastorCluster.eta(), Lepton.eta, L1TdeGCT.eta, TrackStruct::TrackParameterStruct.eta, reco::Candidate.eta(), egHLT::OffPho.eta(), JetPartonNamespace::JetPartonCalibrationParameterSet.eta(), l1t::EMTFHitExtra.eta, AnalyzerMinbias.eta, reco::Particle.eta(), reco::ParticleState.eta(), L1GctInternJetData.eta(), egHLT::OffEle.eta(), EcalTestPulseAnalyzer.eta, EcalABAnalyzer.eta, MuonGeometryArrange::MGACollection.eta, Basic3DVector< long double >.eta(), CandidateWithRef< Ref >.eta(), reco::LeafCandidate.eta(), EcalPerEvtLaserAnalyzer.eta, reco::IsoDeposit::const_iterator.eta(), Basic3DVector< float > mom GlobalVector.eta(), Basic3DVector< Scalar >.eta(), Basic3DVector< double >.eta(), Basic3DVector< align::Scalar >.eta(), Basic3DVector< float >.eta(), Basic3DVector< U >.eta(), Basic3DVector< T >.eta(), Basic3DVector< float > pos GlobalPoint.eta(), JetAnalyzer_HeavyIons_matching::MyJet.eta, CosmicRateAnalyzer.eta, l1t::EMTFTrack.eta, reco::CaloCluster.eta(), L1Analysis::L1AnalysisRecoMuonDataFormat.eta, GoodSeedProducer.eta, pat::PackedGenParticle.eta(), EcalLaserAnalyzer.eta, TrackingParticle.eta(), RawParticle.eta(), EcalLaserAnalyzer2.eta, SiPixelErrorEstimation.eta, HLTEgamma::OpenHLTPhoton.eta, HLTEgamma::OpenHLTElectron.eta, reco::TrackBase.eta(), pat::PackedCandidate.eta(), EcalSelectiveReadoutValidation::energiesEb_t.eta, EcalSelectiveReadoutValidation::energiesEe_t.eta, SiPixelTrackingRecHitsValid.eta, PMuonSimHit::Trk.eta, PTrackerSimHit::Trk.eta, pat::Jet.isPFJet(), JetTester.isPFJet, JetAnalyzer_HeavyIons.isPFJet, JetTester_HeavyIons.isPFJet, Jet.Jet.jetID(), JetMETHLTOfflineSource.jetID, ExoticaDQM.jetID, HLTJets.jetID, pat::Jet.jetID(), ScoutingPFJet.muonEnergy(), reco::PFJet.muonEnergy(), JetTester.muonEnergy, pat::Jet.muonEnergy(), reco::JPTJet.neutralEmEnergy(), reco::PFJet.neutralEmEnergy(), JetTester.neutralEmEnergy, pat::Jet.neutralEmEnergy(), ScoutingPFJet.neutralHadronEnergy(), reco::JPTJet.neutralHadronEnergy(), reco::PFJet.neutralHadronEnergy(), JetTester.neutralHadronEnergy, pat::Jet.neutralHadronEnergy(), reco::PFJet.neutralMultiplicity(), JetTester.neutralMultiplicity, pat::Jet.neutralMultiplicity(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

Referenced by Jet.Jet.jetID(), and Jet.Jet.looseJetId().

98 
99  def jetID(self,name=""):
100  if not self.isPFJet():
101  raise RuntimeError("jetID implemented only for PF Jets")
102  eta = abs(self.eta());
103  energy = self.rawEnergy();
104  chf = self.chargedHadronEnergy()/energy;
105  nhf = self.neutralHadronEnergy()/energy;
106  phf = self.neutralEmEnergy()/energy;
107  muf = self.muonEnergy()/energy;
108  elf = self.chargedEmEnergy()/energy;
109  chm = self.chargedHadronMultiplicity();
110  npr = self.chargedMultiplicity() + self.neutralMultiplicity();
111  npn = self.neutralMultiplicity();
112  #if npr != self.nConstituents():
113  # import pdb; pdb.set_trace()
114  if name == "POG_PFID":
115 
116  if self.jetID("PAG_monoID_Tight") and self.jetID("POG_PFID_Tight") : return 5;
117  if self.jetID("PAG_monoID_Loose") and self.jetID("POG_PFID_Tight") : return 4;
118  if self.jetID("POG_PFID_Tight") : return 3;
119  #elif self.jetID("POG_PFID_Medium") : return 2; commented this line because this working point doesn't exist anymore (as 12/05/15)
120  elif self.jetID("POG_PFID_Loose") : return 1;
121  else : return 0;
122 
123  # jetID from here: https://twiki.cern.ch/twiki/bin/viewauth/CMS/JetID#Recommendations_for_13_TeV_data
124  if name == "POG_PFID_Loose": return ((eta<3.0 and ((npr>1 and phf<0.99 and nhf<0.99) and (eta>2.4 or (elf<0.99 and chf>0 and chm>0)))) or (eta>3.0 and (phf<0.90 and npn>10)));
125  if name == "POG_PFID_Medium": return (npr>1 and phf<0.95 and nhf<0.95 and muf < 0.8) and (eta>2.4 or (elf<0.99 and chf>0 and chm>0));
126  if name == "POG_PFID_Tight": return ((eta<3.0 and ((npr>1 and phf<0.90 and nhf<0.90) and (eta>2.4 or (elf<0.99 and chf>0 and chm>0)))) or (eta>3.0 and (phf<0.90 and npn>10)));
127  if name == "VBFHBB_PFID_Loose": return (npr>1 and phf<0.99 and nhf<0.99);
128  if name == "VBFHBB_PFID_Medium": return (npr>1 and phf<0.99 and nhf<0.99) and ((eta<=2.4 and nhf<0.9 and phf<0.9 and elf<0.99 and muf<0.99 and chf>0 and chm>0) or eta>2.4);
129  if name == "VBFHBB_PFID_Tight": return (npr>1 and phf<0.99 and nhf<0.99) and ((eta<=2.4 and nhf<0.9 and phf<0.9 and elf<0.70 and muf<0.70 and chf>0 and chm>0) or eta>2.4);
130  if name == "PAG_monoID_Loose": return (eta<3.0 and chf>0.05 and nhf<0.7 and phf<0.8);
131  if name == "PAG_monoID_Tight": return (eta<3.0 and chf>0.2 and nhf<0.7 and phf<0.7);
132 
133  raise RuntimeError, "jetID '%s' not supported" % name
def rawEnergy
Definition: Jet.py:56
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def jetID
Definition: Jet.py:98
def Jet.Jet.l1corrFactor (   self)

Definition at line 171 of file Jet.py.

References Jet.Jet._recalibrated.

172  def l1corrFactor(self):
173  if hasattr(self, 'CorrFactor_L1'):
174  return self.CorrFactor_L1
175  if self._recalibrated:
176  raise RuntimeError("The jet was recalibrated, but without calculateSeparateCorrections. L1 is not available")
177  jecLevels = self.physObj.availableJECLevels()
178  for level in jecLevels:
179  if "L1" in level:
180  return self.physObj.jecFactor(level)/self.physObj.jecFactor('Uncorrected')
181  return 1.0 # Jet does not have any L1 correction
_recalibrated
Definition: Jet.py:52
def l1corrFactor
Definition: Jet.py:171
def Jet.Jet.leadingTrack (   self)

Definition at line 193 of file Jet.py.

References Jet.Jet._leadingTrack, Jet.Jet._leadingTrackSearched, reco::CompositePtrCandidate.daughterPtrVector(), and bookConverter.max.

Referenced by Jet.Jet.leadTrackPt().

194  def leadingTrack(self):
195  if self._leadingTrackSearched :
196  return self._leadingTrack
197  self._leadingTrackSearched = True
198  self._leadingTrack = max( self.daughterPtrVector() , key = lambda x : x.pt() if x.charge()!=0 else 0. )
199  if self._leadingTrack.charge()==0: #in case of "all neutral"
200  self._leadingTrack = None
201  return self._leadingTrack
_leadingTrack
Definition: Jet.py:53
def leadingTrack
Definition: Jet.py:193
_leadingTrackSearched
Definition: Jet.py:54
def Jet.Jet.leadTrackPt (   self)

Definition at line 202 of file Jet.py.

References Jet.Jet.leadingTrack().

203  def leadTrackPt(self):
204  lt=self.leadingTrack()
205  if lt :
206  return lt.pt()
207  else :
return 0.
def leadingTrack
Definition: Jet.py:193
def leadTrackPt
Definition: Jet.py:202
def Jet.Jet.looseJetId (   self)
PF Jet ID (loose operation point) [method provided for convenience only]

Definition at line 134 of file Jet.py.

References Jet.Jet.jetID(), JetMETHLTOfflineSource.jetID, ExoticaDQM.jetID, HLTJets.jetID, and pat::Jet.jetID().

135  def looseJetId(self):
136  '''PF Jet ID (loose operation point) [method provided for convenience only]'''
137  return self.jetID("POG_PFID_Loose")
def looseJetId
Definition: Jet.py:134
def jetID
Definition: Jet.py:98
def Jet.Jet.muonEnergyFraction (   self)

Definition at line 74 of file Jet.py.

References ScoutingPFJet.muonEnergy(), reco::PFJet.muonEnergy(), JetTester.muonEnergy, pat::Jet.muonEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

74 
75  def muonEnergyFraction(self):
76  return self.muonEnergy()/self.rawEnergy()
def rawEnergy
Definition: Jet.py:56
def muonEnergyFraction
Definition: Jet.py:74
def Jet.Jet.neutralEmEnergyFraction (   self)

Definition at line 77 of file Jet.py.

References reco::JPTJet.neutralEmEnergy(), reco::PFJet.neutralEmEnergy(), JetTester.neutralEmEnergy, pat::Jet.neutralEmEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

77 
78  def neutralEmEnergyFraction(self):
79  return self.neutralEmEnergy()/self.rawEnergy()
def neutralEmEnergyFraction
Definition: Jet.py:77
def rawEnergy
Definition: Jet.py:56
def Jet.Jet.neutralHadronEnergyFraction (   self)

Definition at line 80 of file Jet.py.

References ScoutingPFJet.neutralHadronEnergy(), reco::JPTJet.neutralHadronEnergy(), reco::PFJet.neutralHadronEnergy(), JetTester.neutralHadronEnergy, pat::Jet.neutralHadronEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

80 
82  return self.neutralHadronEnergy()/self.rawEnergy()
def rawEnergy
Definition: Jet.py:56
def neutralHadronEnergyFraction
Definition: Jet.py:80
def Jet.Jet.photonEnergyFraction (   self)

Definition at line 83 of file Jet.py.

References PairProductionSimulator.photonEnergy, BremsstrahlungSimulator.photonEnergy, ScoutingPFJet.photonEnergy(), MuonBremsstrahlungSimulator.photonEnergy, reco::PFJet.photonEnergy(), JetTester.photonEnergy, pat::Jet.photonEnergy(), SuperClusterHelper.rawEnergy(), reco::SuperCluster.rawEnergy(), Jet.Jet.rawEnergy(), and PhotonFix.rawEnergy().

83 
84  def photonEnergyFraction(self):
85  return self.photonEnergy()/self.rawEnergy()
86 
def photonEnergyFraction
Definition: Jet.py:83
def rawEnergy
Definition: Jet.py:56
def Jet.Jet.puJetId (   self,
  label = "pileupJetId:fullDiscriminant" 
)
Full mva PU jet id

Definition at line 143 of file Jet.py.

References funct.abs(), eetest::CandForTest.eta(), DBlmapWriter::_LMapRowHBEF.eta, res::HelperElectron.eta(), res::HelperMuon.eta(), res::HelperJet.eta(), muonisolation::NominalEfficiencyThresholds::ThresholdLocation.eta, MSLayersKeeperX0AtEta.eta(), RecoObj.eta, HcalCellType::HcalCell.eta, res::HelperMET.eta(), Raddam_ch.eta, ScoutingParticle.eta(), SimG4HcalHitCluster.eta(), SuperClusterHelper.eta(), jetData.eta, ScoutingPhoton.eta(), Residual1DHit.eta, CaloHit.eta(), DDHCalTBZposAlgo.eta, DDHCalTestBeamAlgo.eta, ScoutingElectron.eta(), MySimTrack.eta, MatchStruct.eta, HcalChannelId.eta, BenchmarkTreeEntry.eta, PtEtaPhiMass.eta(), ScoutingMuon.eta(), HcalDDDRecConstants::HcalID.eta, HcalHardcodeGeometryLoader::HBHOCellParameters.eta, HcalFlexiHardcodeGeometryLoader::HBHOCellParameters.eta, L1Analysis::L1AnalysisRecoClusterDataFormat.eta, ScoutingCaloJet.eta(), ImpactPoint.eta, learn_.eta, L2TauPixelTrackMatch::TinyTrack.eta, reco::isodeposit::Direction.eta(), EnergyResolutionVsLumi::DegradationAtEta.eta, ScoutingPFJet.eta(), egHLT::BinData.eta, LMapLoader::_LMapRowHBEF.eta, TrackerValidationVariables::AVHitStruct.eta, ShallowClustersProducer::NearDigis.eta(), ResonanceBuilder.Resonance.eta(), LMapRow.eta, ElectronMVAEstimator.eta, DTMuonLocalAlignment.eta, HcalTestHistoClass::Hit.eta, L1Analysis::L1AnalysisL1CaloClusterDataFormat.eta, HcalDDDRecConstants::HcalActiveLength.eta, PatTrackAnalyzer::Plots.eta, ZMuMuIsolationAnalyzer.eta, HcalHardcodeGeometryLoader::HECellParameters.eta, L1Analysis::L1AnalysisRecoTauDataFormat.eta, BeamProfileVtxGenerator.eta(), PHcalTB04Info.eta(), MaterialBudgetCastorHistos.eta, L1Analysis::L1AnalysisRecoElectronDataFormat.eta, QcdLowPtDQM::Pixel.eta(), PHcalTB06Info::Hit.eta, StripCPEgeometric::WrappedCluster.eta(), GloballyPositioned< float >.eta(), GloballyPositioned< align::Scalar >.eta(), HcalFlexiHardcodeGeometryLoader::HECellParameters.eta, RotationType.eta(), GloballyPositioned< T >.eta(), L1Analysis::L1AnalysisL1CaloTowerDataFormat.eta, IdealObliquePrism.eta(), RhoEtaPhi.eta(), L1Analysis::L1AnalysisRecoMuon2DataFormat.eta, IdealZPrism.eta(), jpt::Map.eta(), PGlobalSimHit::CalHit.eta, OnePiRange< T >.eta(), Geom::OnePiRange< T >.eta(), MaterialBudget.eta, HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.eta(), L1MuGMTEtaLUT.eta(), FWPFCandidateDetailView.eta(), JetCalibrationParameterSetTauJet.eta(), HGCalRecHitValidation::HitsInfo.eta, trigger::TriggerObject.eta(), MaterialBudgetForward.eta, XMLHTRZeroSuppressionLoader::_datasetDBConfig.eta, IsolatedPixelTrackCandidateProducer::seedAtEC.eta, TrackerValidationVariables::AVTrackStruct.eta, reco::GhostTrackPrediction.eta(), PattRecoPeak< Real >.eta(), PFECALSuperClusterAlgo::CalibratedPFCluster.eta(), PGlobalSimHit::FwdHit.eta, HcalTB02HistoClass.eta(), MaterialBudgetHcalHistos.eta, HcalHardcodeGeometryLoader::HFCellParameters.eta, reco::PattRecoPeak< double >.eta(), reco::PattRecoPeak< float >.eta(), reco::PattRecoPeak< Real >.eta(), goodseedhelpers::HeavyObjectCache.eta, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.eta, reco::CaloMuon.eta(), SoftElectronMVAEstimator.eta, SimpleL1MuGMTCand.eta(), HTrackVariables.eta(), PdtPdgMini.eta, PHcalTB06Info.eta(), CSCSP_SPblock.eta(), MuScleFitMuon.eta(), XMLProcessor::_LMapRowHBEF.eta, ValidationMisalignedTracker.eta, HcalFlexiHardcodeGeometryLoader::HFCellParameters.eta, EleRelPoint.eta(), reco::CastorCell.eta(), PhotonFix.eta(), HGCalSimHitValidation::hitsinfo.eta, cms::MinBias.eta, L1MuDTEtaPattern.eta(), LMapDetId.eta, PatPhotonSimpleAnalyzer::struct_recPhoton.eta, PGlobalSimHit::BrlHit.eta, PhotonIDSimpleAnalyzer::struct_recPhoton.eta, reco::IsoDeposit.eta(), reco::CastorEgamma.eta(), reco::CastorJet.eta(), Point3DBase< T, Frame >.eta(), PV3DBase< T, PointTag, FrameTag >.eta(), Point3DBase< U, FrameTag >.eta(), PV3DBase< float, PointTag, LocalTag >.eta(), QcdLowPtDQM::Tracklet.eta(), PV3DBase< align::Scalar, PointTag, GlobalTag >.eta(), Vector3DBase< U, LocalTag >.eta(), PV3DBase< Scalar, PointTag, GlobalTag >.eta(), PV3DBase< T, VectorTag, FrameTag >.eta(), Vector3DBase< U, Frame >.eta(), PV3DBase< T, PointTag, GlobalTag >.eta(), Vector3DBase< T, Frame >.eta(), PV3DBase< Scalar, VectorTag, GlobalTag >.eta(), PV3DBase< float, VectorTag, GlobalTag >.eta(), Point3DBase< U, LocalTag >.eta(), PV3DBase< long double, PointTag, GlobalTag >.eta(), Vector3DBase< T, FrameTag >.eta(), Vector3DBase< double, LocalTag >.eta(), Vector3DBase< U, GlobalTag >.eta(), Point3DBase< U, GlobalTag >.eta(), Vector3DBase< U, FrameTag >.eta(), Point3DBase< U, Frame >.eta(), PV3DBase< T, PVType, FrameType >.eta(), PV3DBase< float, PointTag, GlobalTag >.eta(), PV3DBase< float, VectorTag, LocalTag >.eta(), PV3DBase< float, PointTag, MeasurementTag >.eta(), PV3DBase< float, VectorTag, MeasurementTag >.eta(), MuonGmtPair.eta(), L1MuDTTrack.eta(), MuonDTLocalMillepedeAlgorithm.eta, BPhysicsValidation::ParticleMonitor.eta, HcalTB02Analysis.eta, L1MuDTEtaProcessor.eta(), L1Analysis::L1AnalysisRecoJetDataFormat.eta, L1MuBMTrack.eta(), EgammaTowerIsolationNew< NC >.eta, L1MuBMEtaProcessor.eta(), L1TDEMON.eta, cms::Analyzer_minbias.eta, reco::PreId.eta(), reco::CastorCluster.eta(), Lepton.eta, L1TdeGCT.eta, TrackStruct::TrackParameterStruct.eta, reco::Candidate.eta(), egHLT::OffPho.eta(), JetPartonNamespace::JetPartonCalibrationParameterSet.eta(), AnalyzerMinbias.eta, l1t::EMTFHitExtra.eta, reco::Particle.eta(), reco::ParticleState.eta(), L1GctInternJetData.eta(), egHLT::OffEle.eta(), EcalTestPulseAnalyzer.eta, EcalABAnalyzer.eta, MuonGeometryArrange::MGACollection.eta, Basic3DVector< long double >.eta(), CandidateWithRef< Ref >.eta(), reco::LeafCandidate.eta(), EcalPerEvtLaserAnalyzer.eta, reco::IsoDeposit::const_iterator.eta(), Basic3DVector< float > mom GlobalVector.eta(), Basic3DVector< float > pos GlobalPoint.eta(), Basic3DVector< float >.eta(), Basic3DVector< U >.eta(), Basic3DVector< double >.eta(), Basic3DVector< Scalar >.eta(), Basic3DVector< align::Scalar >.eta(), Basic3DVector< T >.eta(), JetAnalyzer_HeavyIons_matching::MyJet.eta, CosmicRateAnalyzer.eta, l1t::EMTFTrack.eta, reco::CaloCluster.eta(), L1Analysis::L1AnalysisRecoMuonDataFormat.eta, GoodSeedProducer.eta, pat::PackedGenParticle.eta(), EcalLaserAnalyzer.eta, TrackingParticle.eta(), RawParticle.eta(), EcalLaserAnalyzer2.eta, SiPixelErrorEstimation.eta, HLTEgamma::OpenHLTPhoton.eta, HLTEgamma::OpenHLTElectron.eta, reco::TrackBase.eta(), pat::PackedCandidate.eta(), EcalSelectiveReadoutValidation::energiesEb_t.eta, EcalSelectiveReadoutValidation::energiesEe_t.eta, SiPixelTrackingRecHitsValid.eta, PMuonSimHit::Trk.eta, PTrackerSimHit::Trk.eta, and Jet.Jet.puMva().

144  def puJetId(self, label="pileupJetId:fullDiscriminant"):
145  '''Full mva PU jet id'''
146 
147  puMva = self.puMva(label)
148  wp = loose_53X_WP
149  eta = abs(self.eta())
150 
151  for etamin, etamax, cut in wp:
152  if not(eta>=etamin and eta<etamax):
153  continue
154  return puMva>cut
155  return -99
def puMva
Definition: Jet.py:138
def puJetId
Definition: Jet.py:143
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
def Jet.Jet.puMva (   self,
  label = "pileupJetId:fullDiscriminant" 
)

Definition at line 138 of file Jet.py.

References pat::PATObject< ObjectType >.hasUserFloat(), pat::PATObject< reco::Jet >.hasUserFloat(), pat::PATObject< reco::CompositeCandidate >.hasUserFloat(), pat::PATObject< reco::Photon >.hasUserFloat(), pat::PATObject< reco::MET >.hasUserFloat(), pat::PATObject< reco::PFCandidate >.hasUserFloat(), pat::PATObject< reco::GsfElectron >.hasUserFloat(), pat::PATObject< reco::LeafCandidate >.hasUserFloat(), pat::PATObject< LeptonType >.hasUserFloat(), pat::PATObject< reco::BaseTau >.hasUserFloat(), pat::PATObject< reco::Muon >.hasUserFloat(), Lepton< LeptonType >.hasUserFloat(), pat::PATObject< reco::RecoCandidate >.hasUserFloat(), pat::PATObject< ObjectType >.userFloat(), pat::PATObject< reco::PFCandidate >.userFloat(), pat::PATObject< reco::BaseTau >.userFloat(), pat::PATObject< reco::MET >.userFloat(), pat::PATObject< reco::GsfElectron >.userFloat(), pat::PATObject< reco::Muon >.userFloat(), Lepton< LeptonType >.userFloat(), pat::PATObject< LeptonType >.userFloat(), pat::PATObject< reco::CompositeCandidate >.userFloat(), pat::PATObject< reco::Photon >.userFloat(), pat::PATObject< reco::LeafCandidate >.userFloat(), pat::PATObject< reco::Jet >.userFloat(), and pat::PATObject< reco::RecoCandidate >.userFloat().

Referenced by Jet.Jet.puJetId().

139  def puMva(self, label="pileupJetId:fullDiscriminant"):
140  if self.hasUserFloat(label):
141  return self.userFloat(label)
142  return -99
def puMva
Definition: Jet.py:138
def Jet.Jet.qgl (   self)

Definition at line 208 of file Jet.py.

References Jet.Jet.computeQGvars().

209  def qgl(self) :
210  if not hasattr(self,"qgl_value") :
211  if hasattr(self,"qgl_rho") : #check if qgl calculator is configured
213  self.qgl_value=self.qgl_calc(self,self.qgl_rho)
214  else :
215  self.qgl_value=-1. #if no qgl calculator configured
216 
217  return self.qgl_value
def qgl
Definition: Jet.py:208
qgl_value
Definition: Jet.py:212
def computeQGvars
Definition: Jet.py:218
def Jet.Jet.rawEnergy (   self)

Definition at line 56 of file Jet.py.

References CaloRecHit.energy(), CommonHcalNoiseRBXData.energy(), EnergyDepositUnit.energy(), EnergySegmentFP420.energy(), PCaloHit.energy(), reco::CastorEgamma.energy(), reco::CastorJet.energy(), TrivialAmplitudeAlgo< C >.energy(), TrivialAmplitudeAlgo< EEDataFrame >.energy(), TrivialAmplitudeAlgo< EBDataFrame >.energy(), JetMatchingTools::JetConstituent.energy, RecHitWithFraction.energy, egHLT::BinData.energy, reco::CastorCell.energy(), G4SimTrack.energy(), ResonanceBuilder.Resonance.energy(), reco::CastorCluster.energy(), Multi5x5ClusterAlgo::ProtoBasicCluster.energy(), PFMultiDepthClusterizer::ClusterLink.energy(), HFClusterAlgo::HFCompleteHit.energy, FillInfo.energy(), HGCalRecHitValidation::HitsInfo.energy, MuScleFitMuon.energy(), PFECALSuperClusterAlgo::CalibratedPFCluster.energy(), KinematicParameters.energy(), metsig::SigInputObj.energy, trigger::TriggerObject.energy(), EcalRecHit.energy(), lumi::Lumi2DB::beamData.energy, reco::Candidate.energy(), reco::PFCluster.energy(), reco::Particle.energy(), reco::ParticleState.energy(), egHLT::OffPho.energy(), reco::LeafCandidate.energy(), CandidateWithRef< Ref >.energy(), reco::PFRecHit.energy(), egHLT::OffEle.energy(), reco::CaloCluster.energy(), HcalDetDiagNoiseRMEvent.energy, TrackingParticle.energy(), ZdcTBAnalysis.energy, pat::PackedGenParticle.energy(), SiPixelDigitizerAlgorithm::EnergyDepositUnit.energy(), pat::PackedCandidate.energy(), and Jet.Jet.rawFactor().

Referenced by Jet.Jet.chargedEmEnergyFraction(), Jet.Jet.chargedHadronEnergyFraction(), Jet.Jet.chargedMuEnergyFraction(), Jet.Jet.electronEnergyFraction(), Jet.Jet.HFEMEnergyFraction(), Jet.Jet.HFHadronEnergyFraction(), Jet.Jet.hoEnergyFraction(), Jet.Jet.jetID(), Jet.Jet.muonEnergyFraction(), Jet.Jet.neutralEmEnergyFraction(), Jet.Jet.neutralHadronEnergyFraction(), and Jet.Jet.photonEnergyFraction().

56 
57  def rawEnergy(self):
58  return self.energy() * self.rawFactor()
def rawEnergy
Definition: Jet.py:56
def rawFactor
Definition: Jet.py:156
def Jet.Jet.rawFactor (   self)

Definition at line 156 of file Jet.py.

References Jet.Jet._rawFactorMultiplier, pat::Jet.jecFactor(), and pat::Tau.jecFactor().

Referenced by Jet.Jet.corrFactor(), Jet.Jet.rawEnergy(), and Jet.Jet.setCorrP4().

157  def rawFactor(self):
158  return self.jecFactor('Uncorrected') * self._rawFactorMultiplier
_rawFactorMultiplier
Definition: Jet.py:51
def rawFactor
Definition: Jet.py:156
def Jet.Jet.setCorrP4 (   self,
  newP4 
)

Definition at line 165 of file Jet.py.

References Jet.Jet._recalibrated, eetest::CandForTest.pt(), mypt.pt, res::HelperElectron.pt(), res::HelperMuon.pt(), res::HelperJet.pt(), reco::VoronoiBackground.pt(), RecoObj.pt, ScoutingParticle.pt(), tauImpactParameter::LorentzVectorParticle.pt, L1MuCSCPtLut.pt(), ScoutingPhoton.pt(), Residual1DHit.pt, reco::MuonMETCorrectionData.pt(), ScoutingElectron.pt(), PtHatReweightUserHook.pt, MatchStruct.pt, PtEtaPhiMass.pt(), MySimTrack.pt, ALILine.pt(), ScoutingMuon.pt(), ScoutingCaloJet.pt(), L2TauPixelTrackMatch::TinyTrack.pt, TrackMultiSelector::Block.pt, ResonanceBuilder.Resonance.pt(), ScoutingPFJet.pt(), DTMuonLocalAlignment.pt, PGlobalSimHit::Trk.pt, TtFullHadSignalSel.pt(), ElectronMVAEstimator.pt, L1Analysis::L1AnalysisRecoTauDataFormat.pt, ZMuMuIsolationAnalyzer.pt, L1Analysis::L1AnalysisRecoElectronDataFormat.pt, PatTrackAnalyzer::Plots.pt, L1Analysis::L1AnalysisRecoMuon2DataFormat.pt, jpt::Map.pt(), SiStripLAProfileBooker.pt, PhysicsObjectsMonitor.pt, reco::CaloMuon.pt(), TrackerValidationVariables::AVTrackStruct.pt, trigger::TriggerObject.pt(), BSTrkParameters.pt(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables.pt, goodseedhelpers::HeavyObjectCache.pt, MuScleFitMuon.pt(), SoftElectronMVAEstimator.pt, PTrajectoryStateOnDet.pt(), ValidationMisalignedTracker.pt, HTrackVariables.pt(), SimpleL1MuGMTCand.pt(), ElectronMVAEstimatorRun2Spring16GeneralPurpose::AllVariables.pt, HepLine3D.pt(), ElectronMVAEstimatorRun2Spring16HZZ::AllVariables.pt, L1MuDTTrack.pt(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables.pt, TrajectoryStateClosestToPoint.pt(), L1MuBMTrack.pt(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables.pt, MuonDTLocalMillepedeAlgorithm.pt, BPhysicsValidation::ParticleMonitor.pt, MuonGmtPair.pt(), L1TMuon::InternalTrack.pt, susybsm::HSCParticle.pt(), PhotonPair.pt(), QualityCutsAnalyzer::histogram_element_t.pt, reco::PreId.pt(), Lepton.pt, reco::Candidate.pt(), egHLT::OffPho.pt(), TrackStruct::TrackParameterStruct.pt, reco::Particle.pt(), reco::ParticleState.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), PtHatRapReweightUserHook.pt, MuonResidualsFitter::MuonAlignmentTreeRow.pt, AlignmentMonitorMuonSystemMap1D::MyTrack.pt, reco::LeafCandidate.pt(), CandidateWithRef< Ref >.pt(), reco::PFCluster.pt(), CosmicRateAnalyzer.pt, JetAnalyzer_HeavyIons_matching::MyJet.pt, l1t::EMTFTrack.pt, L1Analysis::L1AnalysisRecoMuonDataFormat.pt, TrackingParticle.pt(), pat::MET::Vector2.pt(), GoodSeedProducer.pt, pat::PackedGenParticle.pt(), reco::TrackBase.pt(), pat::PackedCandidate.pt(), PMuonSimHit::Trk.pt, PTrackerSimHit::Trk.pt, Jet.Jet.rawFactor(), reco::PUSubMETCandInfo.setP4(), reco::Candidate.setP4(), reco::Particle.setP4(), reco::ParticleState.setP4(), CandidateWithRef< Ref >.setP4(), reco::LeafCandidate.setP4(), pat::PackedGenParticle.setP4(), reco::Photon.setP4(), pat::PackedCandidate.setP4(), reco::GsfElectron.setP4(), and Jet.Jet.setRawFactor().

166  def setCorrP4(self,newP4):
167  self._recalibrated = True
168  corr = newP4.Pt() / (self.pt() * self.rawFactor())
169  self.setP4(newP4);
170  self.setRawFactor(1.0/corr);
def setRawFactor
Definition: Jet.py:159
_recalibrated
Definition: Jet.py:52
def setCorrP4
Definition: Jet.py:165
def rawFactor
Definition: Jet.py:156
def Jet.Jet.setRawFactor (   self,
  factor 
)

Definition at line 159 of file Jet.py.

References Jet.Jet._rawFactorMultiplier, pat::Jet.jecFactor(), and pat::Tau.jecFactor().

Referenced by Jet.Jet.setCorrP4().

160  def setRawFactor(self, factor):
161  self._rawFactorMultiplier = factor/self.jecFactor('Uncorrected')
def setRawFactor
Definition: Jet.py:159
_rawFactorMultiplier
Definition: Jet.py:51

Member Data Documentation

Jet.Jet._leadingTrack
private

Definition at line 53 of file Jet.py.

Referenced by Jet.Jet.leadingTrack().

Jet.Jet._leadingTrackSearched
private

Definition at line 54 of file Jet.py.

Referenced by Jet.Jet.leadingTrack().

Jet.Jet._rawFactorMultiplier
private

Definition at line 51 of file Jet.py.

Referenced by Jet.Jet.rawFactor(), and Jet.Jet.setRawFactor().

Jet.Jet._recalibrated
private

Definition at line 52 of file Jet.py.

Referenced by Jet.Jet.l1corrFactor(), and Jet.Jet.setCorrP4().

Jet.Jet.hasQGvars

Definition at line 222 of file Jet.py.

Jet.Jet.qgl_value

Definition at line 212 of file Jet.py.