CMS 3D CMS Logo

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

https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation74X50ns More...

Inheritance diagram for Jet.Jet:

Public Member Functions

def __init__ (self, args, kwargs)
 
def btag (self, name)
 
def btagWP (self, name)
 
def chargedEmEnergyFraction (self)
 
def chargedHadronEnergyFraction (self)
 
def chargedMuEnergyFraction (self)
 
def computeQGvars (self)
 
def corrFactor (self)
 
def electronEnergyFraction (self)
 
def HFEMEnergyFraction (self)
 
def HFHadronEnergyFraction (self)
 
def hoEnergyFraction (self)
 
def jetID (self, name="")
 
def l1corrFactor (self)
 
def leadingTrack (self)
 
def leadTrackPt (self)
 
def looseJetId (self)
 
def muonEnergyFraction (self)
 
def neutralEmEnergyFraction (self)
 
def neutralHadronEnergyFraction (self)
 
def photonEnergyFraction (self)
 
def puJetId (self, label="pileupJetId:fullDiscriminant")
 
def puMva (self, label="pileupJetId:fullDiscriminant")
 
def qgl (self)
 
def rawEnergy (self)
 
def rawFactor (self)
 
def setCorrP4 (self, newP4)
 
def setRawFactor (self, factor)
 

Public Attributes

 hasQGvars
 
 qgl_value
 

Private Member Functions

def _physObjInit (self)
 

Private Attributes

 _leadingTrack
 
 _leadingTrackSearched
 
 _rawFactorMultiplier
 
 _recalibrated
 

Detailed Description

https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation74X50ns

https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation80X

Definition at line 46 of file Jet.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 47 of file Jet.py.

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

47  def __init__(self, *args, **kwargs):
48  super(Jet, self).__init__(*args, **kwargs)
49  self._physObjInit()
50 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Function Documentation

◆ _physObjInit()

def Jet.Jet._physObjInit (   self)
private

Definition at line 51 of file Jet.py.

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

51  def _physObjInit(self):
52  self._rawFactorMultiplier = 1.0
53  self._recalibrated = False
54  self._leadingTrack = None
55  self._leadingTrackSearched = False
56 

◆ btag()

def Jet.Jet.btag (   self,
  name 
)

Definition at line 183 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
188 
btag
Definition: BTagSF.py:16

◆ btagWP()

def Jet.Jet.btagWP (   self,
  name 
)

Definition at line 189 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
193 

◆ chargedEmEnergyFraction()

def Jet.Jet.chargedEmEnergyFraction (   self)

◆ chargedHadronEnergyFraction()

def Jet.Jet.chargedHadronEnergyFraction (   self)

◆ chargedMuEnergyFraction()

def Jet.Jet.chargedMuEnergyFraction (   self)

◆ computeQGvars()

def Jet.Jet.computeQGvars (   self)

Definition at line 219 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 
290 

◆ corrFactor()

def Jet.Jet.corrFactor (   self)

Definition at line 163 of file Jet.py.

References Jet.Jet.rawFactor().

163  def corrFactor(self):
164  return 1.0/self.rawFactor()
165 

◆ electronEnergyFraction()

def Jet.Jet.electronEnergyFraction (   self)

◆ HFEMEnergyFraction()

def Jet.Jet.HFEMEnergyFraction (   self)

◆ HFHadronEnergyFraction()

def Jet.Jet.HFHadronEnergyFraction (   self)

◆ hoEnergyFraction()

def Jet.Jet.hoEnergyFraction (   self)

◆ jetID()

def Jet.Jet.jetID (   self,
  name = "" 
)

Definition at line 99 of file Jet.py.

References funct.abs(), reco::JPTJet.chargedEmEnergy(), reco::GenJet.chargedEmEnergy(), reco::PFJet.chargedEmEnergy(), JetTester.chargedEmEnergy, pat::Jet.chargedEmEnergy(), reco::JPTJet.chargedHadronEnergy(), Run3ScoutingPFJet.chargedHadronEnergy(), ScoutingPFJet.chargedHadronEnergy(), reco::GenJet.chargedHadronEnergy(), reco::PFJet.chargedHadronEnergy(), JetTester.chargedHadronEnergy, pat::Jet.chargedHadronEnergy(), Run3ScoutingPFJet.chargedHadronMultiplicity(), ScoutingPFJet.chargedHadronMultiplicity(), reco::GenJet.chargedHadronMultiplicity(), reco::PFJet.chargedHadronMultiplicity(), JetTester.chargedHadronMultiplicity, pat::Jet.chargedHadronMultiplicity(), reco::JPTJet.chargedMultiplicity(), reco::PFJet.chargedMultiplicity(), JetTester.chargedMultiplicity, pat::Jet.chargedMultiplicity(), PuppiCandidate.eta, eetest::CandForTest.eta(), btagbtvdeep::TrackPairFeatures.eta, btagbtvdeep::JetFeatures.eta, hi::TrackStructure.eta, btagbtvdeep::SeedingTrackFeatures.eta, res::HelperElectron.eta(), res::HelperMuon.eta(), CalibratedPFCluster.eta(), res::HelperJet.eta(), omtf::DtDataWord64.eta(), omtf::MuonDataWord64.eta(), HcalCellType::HcalCell.eta, ScoutingParticle.eta(), muonisolation::NominalEfficiencyThresholds::ThresholdLocation.eta, SimG4HcalHitCluster.eta(), l1thgcfirmware::HGCalTower.eta(), MSLayersKeeperX0AtEta.eta(), res::HelperMET.eta(), jetData.eta, BenchmarkTreeEntry.eta, CaloHit.eta(), l1tVertexFinder::L1Track.eta(), GoldenPatternResult.eta, gctobj::towerMax.eta, SuperClusterHelper.eta(), HcalChannelId.eta, MatchStruct.eta, ScoutingPhoton.eta(), btagbtvdeep::SeedingTrackInfoBuilder.eta(), RecoObj.eta, btagbtvdeep::LostTracksFeatures.eta, trklet::L1SimTrack.eta(), L1Analysis::L1AnalysisRecoClusterDataFormat.eta, Phase2L1GMT::propagation_t.eta, l1tpf_calo::Grid.eta(), HcalDDDRecConstants::HcalID.eta, l1t::EMTFPtLUT.eta, L2TauPixelTrackMatch::TinyTrack.eta, btagbtvdeep::NeutralCandidateFeatures.eta, reco::MuonRecHitCluster.eta(), l1ScoutingRun3::ugmt::masksMuon.eta, EnergyResolutionVsLumi::DegradationAtEta.eta, btagbtvdeep::SecondaryVertexFeatures.eta, gctpf::GCTpfcluster_t.eta, PtEtaPhiMass.eta(), ImpactPoint.eta, L1Analysis::L1AnalysisRecoPhotonDataFormat.eta, EtaValue.eta, reco::isodeposit::Direction.eta(), ticl::PatternRecognitionbyCLUE3D< TILES >::ClustersOnLayer.eta, EleRelPoint.eta(), egHLT::BinData.eta, HLTGenValObject.eta(), MTDTrackQualityMVA.eta, L1Analysis::L1AnalysisL1CaloClusterDataFormat.eta, LMapRow.eta, HEChannel.eta, DTMuonLocalAlignment.eta, ShallowClustersProducer::NearDigis.eta(), l1thgcfirmware::HGCalCluster.eta(), l1ScoutingRun3::demux::shiftsJet.eta, DDHCalTestBeamAlgo.eta, Phase2L1GMT::ConvertedTTTrack.eta(), l1thgcfirmware::HGCalTriggerCell.eta(), DDHCalTBZposAlgo.eta, GloballyPositioned< align::Scalar >.eta(), RotationType.eta(), GloballyPositioned< T >.eta(), gctpf::GCTint_t.eta, l1thgcfirmware::HGCalTowerCoord.eta, l1ScoutingRun3::demux::masksJet.eta, ResonanceBuilder.Resonance.eta(), StripCPEgeometric::WrappedCluster.eta(), GloballyPositioned< float >.eta(), HcalDDDRecConstants::HcalActiveLength.eta, L1Analysis::L1AnalysisL1CaloTowerDataFormat.eta, L1Analysis::L1AnalysisRecoTauDataFormat.eta, HcalHardcodeGeometryLoader::HBHOCellParameters.eta, HcalGeomCheck::hitsinfo.eta, HGCalRecHitValidation::HitsInfo.eta, HcalTestHistoClass::Hit.eta, HGCalSimHitStudy::hitsinfo.eta, L1Analysis::L1AnalysisRecoElectronDataFormat.eta, PatTrackAnalyzer::Plots.eta, PHcalTB04Info.eta(), l1t::HGCalTowerCoord.eta, BeamProfileVtxGenerator.eta(), l1ScoutingRun3::demux::shiftsEGamma.eta, L1Analysis::L1AnalysisRecoMuon2DataFormat.eta, Phase2L1GMT::PreTrackMatchedMuon.eta(), PHcalTB06Info::Hit.eta, gctobj::jetInfo.eta, mtd::MTDGeomUtil.eta(), l1ScoutingRun3::demux::masksEGamma.eta, cms::MinBias.eta, l1t::L1TGT_Common3Vector< 128 >.eta, l1t::L1TGT_Common3Vector< 64 >.eta, l1t::L1TGT_Common3Vector< 96 >.eta, HGCalSimHitValidation::hitsinfo.eta, l1t::L1TGT_Common3Vector< N >.eta, L1MuGMTEtaLUT.eta(), RhoEtaPhi.eta(), FWPFCandidateDetailView.eta(), HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.eta(), jpt::Map.eta(), trigger::TriggerObject.eta(), IdealObliquePrism.eta(), IdealZPrism.eta(), btagbtvdeep::ChargedCandidateFeatures.eta, reco::PFRecTrack.eta(), tmtt::TP.eta(), l1ScoutingRun3::demux::shiftsTau.eta, l1gt::ThreeVector.eta, l1ScoutingRun3::demux::masksTau.eta, reco::GhostTrackPrediction.eta(), PGlobalSimHit::CalHit.eta, TrackerValidationVariables::AVHitStruct.eta, XMLProcessor::_LMapRowHBEF.eta, MuScleFitMuon.eta(), QcdLowPtDQM::Pixel.eta(), L1TPFCaloProducer::SimpleHGCTC.eta, SimpleL1MuGMTCand.eta(), LMapDetId.eta, trklet::Track.eta(), TauL1TPair.eta(), PdtPdgMini.eta, TrajSeedMatcher::SCHitMatch.eta, PHcalTB06Info.eta(), Run3ScoutingCaloJet.eta(), ScoutingCaloJet.eta(), ScoutingElectron.eta(), l1tVertexFinder::VertexNTupler::GenJetsBranchData.eta, TrackBranch.eta, EtaPhiTower.eta, HTrackVariables.eta(), PGlobalSimHit::FwdHit.eta, reco::PattRecoPeak< float >.eta(), L1MuDTEtaPattern.eta(), PattRecoPeak< Real >.eta(), reco::PattRecoPeak< Real >.eta(), reco::CaloMuon.eta(), Run3ScoutingParticle.eta(), CSCSP_SPblock.eta(), reco::CastorCell.eta(), OmtfEvent::Hit.eta, OmtfEvent::Hit::.eta, l1ttrackjet::EtaPhiBin.eta, EopElecVariables.eta, HGCalTriggerModuleDetId.eta(), gctobj::GCTsupertower_t.eta, L1MuDTTrack.eta(), PGlobalSimHit::BrlHit.eta, PV3DBase< float, VectorTag, LocalTag >.eta(), PV3DBase< float, PointTag, LocalTag >.eta(), PV3DBase< Scalar, VectorTag, GlobalTag >.eta(), PV3DBase< T, VectorTag, FrameTag >.eta(), PV3DBase< Scalar, PointTag, GlobalTag >.eta(), PV3DBase< T, PointTag, FrameTag >.eta(), PV3DBase< float, PointTag, GlobalTag >.eta(), PV3DBase< long double, PointTag, GlobalTag >.eta(), PV3DBase< align::Scalar, PointTag, GlobalTag >.eta(), Point3DBase< U, LocalTag >.eta(), Point3DBase< U, GlobalTag >.eta(), Point3DBase< U, FrameTag >.eta(), Vector3DBase< U, FrameTag >.eta(), Point3DBase< T, Frame >.eta(), Vector3DBase< U, Frame >.eta(), Point3DBase< U, Frame >.eta(), Vector3DBase< float, GlobalTag >.eta(), Vector3DBase< double, LocalTag >.eta(), PV3DBase< T, PVType, FrameType >.eta(), Vector3DBase< T, Frame >.eta(), Vector3DBase< T, FrameTag >.eta(), Vector3DBase< U, GlobalTag >.eta(), Vector3DBase< U, LocalTag >.eta(), antiElecIDMVA6_blocks::ElecVars.eta, PV3DBase< T, PointTag, GlobalTag >.eta(), reco::CastorEgamma.eta(), reco::CastorJet.eta(), HcalHardcodeGeometryLoader::HECellParameters.eta, L1MuBMTrack.eta(), reco::IsoDeposit.eta(), BPhysicsValidation::ParticleMonitor.eta, L1TDEMON.eta, l1tVertexFinder::VertexNTupler::GenParticlesBranchData.eta, L1TPhase2CorrelatorOffline::SimpleObject.eta, EgammaTowerIsolationNew< NC >.eta, reco::PreId.eta(), IsolatedPixelTrackCandidateProducer::seedAtEC.eta, Run3ScoutingPhoton.eta(), IsolatedPixelTrackCandidateL1TProducer::seedAtEC.eta, Lepton.eta, L1MuDTEtaProcessor.eta(), HcalTB02HistoClass.eta(), QcdLowPtDQM::Tracklet.eta(), l1tp2::DigitizedClusterGT.eta(), Run3ScoutingPFJet.eta(), ScoutingPFJet.eta(), ValidationMisalignedTracker.eta, L1MuBMEtaProcessor.eta(), l1ttrackjet::TrackJetEmulationEtaPhiBin.eta, L1TdeGCT.eta, HcalTB02Analysis.eta, TrackerValidationVariables::AVTrackStruct.eta, l1ScoutingRun3::bmtf::masksStubs.eta, l1ScoutingRun3::bmtf::shiftsStubs.eta, L1GctInternJetData.eta(), reco::Candidate.eta(), OmtfHit.eta, OmtfHit::.eta, l1tpf_calo::GridData< int >.eta(), l1tpf_calo::GridData< PreCluster >.eta(), GridData< T >.eta(), cms::Analyzer_minbias.eta, AnalyzerMinbias.eta, l1tpf_calo::GridData< T >.eta(), l1tpf_calo::GridData< float >.eta(), HcalHardcodeGeometryLoader::HFCellParameters.eta, l1tVertexFinder::VertexNTupler::RecoTracksBranchData.eta, egHLT::OffPho.eta(), PhotonIDSimpleAnalyzer::struct_recPhoton.eta, reco::CastorCluster.eta(), ScoutingMuon.eta(), HcalFlexiHardcodeGeometryLoader::HFCellParameters.eta, tmtt::Stub.eta(), L1Analysis::L1AnalysisRecoJetDataFormat.eta, tmtt::KFTrackletTrack.eta(), TTTrack< Ref_Phase2TrackerDigi_ >.eta(), TTTrack< T >.eta(), TTTrack< Ref_Phase2TrackerDigi_ > ttTrack.eta(), TTTrack< Ref_Phase2TrackerDigi_ > aTrack unsigned int.eta(), l1tp2::DigitizedClusterCorrelator.eta(), Basic3DVector< long double >.eta(), reco::Particle.eta(), egHLT::OffEle.eta(), Run3ScoutingElectron.eta(), TrackStruct::TrackParameterStruct.eta, EcalTestPulseAnalyzer.eta, EcalABAnalyzer.eta, MuonGeometryArrange::MGACollection.eta, l1t::RegionalOutput< T >.eta(), emtf::phase2::track_t.eta, RegionalOutput< T >.eta(), EcalPerEvtLaserAnalyzer.eta, l1tVertexFinder::VertexNTupler::TrueTracksBranchData.eta, JetAnalyzer_HeavyIons_matching::MyJet.eta, CaloParticle.eta(), reco::ParticleState.eta(), reco::IsoDeposit::const_iterator.eta(), GenMuonGMTPair.eta(), Basic3DVector< Scalar >.eta(), Basic3DVector< float >.eta(), Basic3DVector< align::Scalar >.eta(), Basic3DVector< float > constituentCentre Basic3DVector< float >.eta(), Basic3DVector< T >.eta(), Basic3DVector< float > mom GlobalVector.eta(), Basic3DVector< float > seedCentre float.eta(), Basic3DVector< double >.eta(), Basic3DVector< float > pos GlobalPoint.eta(), Basic3DVector< float > tcCentre float.eta(), Basic3DVector< float > seedCentre.eta(), Basic3DVector< U >.eta(), HGCalClusterT< C >.eta(), reco::LeafCandidate.eta(), SimCluster.eta(), CandidateWithRef< Ref >.eta(), TrackingParticle.eta(), L1Analysis::L1AnalysisRecoMuonDataFormat.eta, tmtt::L1track3D.eta(), l1tpf_calo::Cluster.eta, mkfit::Hit.eta(), RawParticle.eta(), reco::CaloCluster.eta(), Run3ScoutingMuon.eta(), L1NNCaloTauProducer::SimpleHGCluster.eta, EcalLaserAnalyzer.eta, CosmicRateAnalyzer.eta, EcalLaserAnalyzer2.eta, MuonGmtPair.eta(), SiPixelErrorEstimation.eta, L1TPhase2CorrelatorOffline::McVars.eta, l1t::EMTFTrack.eta, tmtt::L1fittedTrack.eta(), l1t::L1TGT_GMT_TopoObject.eta, reco::TrackBase.eta(), L1NNCaloTauEmulator::SimpleHGCluster.eta, L1CaloJetProducer::simpleL1obj.eta(), pat::PackedGenParticle.eta(), l1ct::OutputBoard.eta, L1NNCaloTauEmulator::InputHGCluster.eta, l1t::EMTFHit.eta, EcalSelectiveReadoutValidation::energiesEb_t.eta, EcalSelectiveReadoutValidation::energiesEe_t.eta, SiPixelTrackingRecHitsValid.eta, p2eg::ecaltp_t.eta, pat::PackedCandidate.eta(), CellIndex.eta, PMuonSimHit::Trk.eta, PTrackerSimHit::Trk.eta, CMTRawAnalyzer.eta, JetAnalyzer_HeavyIons.isPFJet, JetTester.isPFJet, pat::Jet.isPFJet(), JetTester_HeavyIons.isPFJet, Jet.Jet.jetID(), JetMETHLTOfflineSource.jetID, ExoticaDQM.jetID, pat::Jet.jetID(), Run3ScoutingPFJet.muonEnergy(), ScoutingPFJet.muonEnergy(), reco::GenJet.muonEnergy(), reco::PFJet.muonEnergy(), JetTester.muonEnergy, pat::Jet.muonEnergy(), reco::GenJet.neutralEmEnergy(), reco::PFJet.neutralEmEnergy(), JetTester.neutralEmEnergy, pat::Jet.neutralEmEnergy(), Run3ScoutingPFJet.neutralHadronEnergy(), ScoutingPFJet.neutralHadronEnergy(), reco::GenJet.neutralHadronEnergy(), reco::PFJet.neutralHadronEnergy(), JetTester.neutralHadronEnergy, pat::Jet.neutralHadronEnergy(), reco::PFJet.neutralMultiplicity(), JetTester.neutralMultiplicity, pat::Jet.neutralMultiplicity(), SuperClusterHelper.rawEnergy(), Jet.Jet.rawEnergy(), reco::SuperCluster.rawEnergy(), Run3ScoutingPhoton.rawEnergy(), TICLCandidate.rawEnergy(), and Run3ScoutingElectron.rawEnergy().

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

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)
134 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ l1corrFactor()

def Jet.Jet.l1corrFactor (   self)

Definition at line 172 of file Jet.py.

References Jet.Jet._recalibrated, and PhysicsObject.PhysicsObject.physObj.

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
182 

◆ leadingTrack()

def Jet.Jet.leadingTrack (   self)

Definition at line 194 of file Jet.py.

References Jet.Jet._leadingTrack, Jet.Jet._leadingTrackSearched, ALCARECOTkAlJpsiMuMu_cff.charge, reco::CompositePtrCandidate.daughterPtrVector(), pat::Jet.daughterPtrVector(), and SiStripPI.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
202 

◆ leadTrackPt()

def Jet.Jet.leadTrackPt (   self)

Definition at line 203 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 :
208  return 0.

◆ looseJetId()

def Jet.Jet.looseJetId (   self)
PF Jet ID (loose operation point) [method provided for convenience only]

Definition at line 135 of file Jet.py.

References Jet.Jet.jetID(), JetMETHLTOfflineSource.jetID, ExoticaDQM.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")
138 

◆ muonEnergyFraction()

def Jet.Jet.muonEnergyFraction (   self)

◆ neutralEmEnergyFraction()

def Jet.Jet.neutralEmEnergyFraction (   self)

◆ neutralHadronEnergyFraction()

def Jet.Jet.neutralHadronEnergyFraction (   self)

◆ photonEnergyFraction()

def Jet.Jet.photonEnergyFraction (   self)

◆ puJetId()

def Jet.Jet.puJetId (   self,
  label = "pileupJetId:fullDiscriminant" 
)
Full mva PU jet id

Definition at line 144 of file Jet.py.

References funct.abs(), PuppiCandidate.eta, eetest::CandForTest.eta(), btagbtvdeep::TrackPairFeatures.eta, btagbtvdeep::JetFeatures.eta, hi::TrackStructure.eta, btagbtvdeep::SeedingTrackFeatures.eta, res::HelperElectron.eta(), res::HelperMuon.eta(), CalibratedPFCluster.eta(), res::HelperJet.eta(), omtf::DtDataWord64.eta(), omtf::MuonDataWord64.eta(), HcalCellType::HcalCell.eta, ScoutingParticle.eta(), muonisolation::NominalEfficiencyThresholds::ThresholdLocation.eta, SimG4HcalHitCluster.eta(), l1thgcfirmware::HGCalTower.eta(), MSLayersKeeperX0AtEta.eta(), res::HelperMET.eta(), jetData.eta, BenchmarkTreeEntry.eta, CaloHit.eta(), l1tVertexFinder::L1Track.eta(), GoldenPatternResult.eta, gctobj::towerMax.eta, HcalChannelId.eta, SuperClusterHelper.eta(), MatchStruct.eta, ScoutingPhoton.eta(), btagbtvdeep::SeedingTrackInfoBuilder.eta(), RecoObj.eta, trklet::L1SimTrack.eta(), btagbtvdeep::LostTracksFeatures.eta, L1Analysis::L1AnalysisRecoClusterDataFormat.eta, Phase2L1GMT::propagation_t.eta, l1tpf_calo::Grid.eta(), l1t::EMTFPtLUT.eta, L2TauPixelTrackMatch::TinyTrack.eta, HcalDDDRecConstants::HcalID.eta, btagbtvdeep::NeutralCandidateFeatures.eta, reco::MuonRecHitCluster.eta(), l1ScoutingRun3::ugmt::masksMuon.eta, EnergyResolutionVsLumi::DegradationAtEta.eta, btagbtvdeep::SecondaryVertexFeatures.eta, gctpf::GCTpfcluster_t.eta, PtEtaPhiMass.eta(), ImpactPoint.eta, L1Analysis::L1AnalysisRecoPhotonDataFormat.eta, EtaValue.eta, reco::isodeposit::Direction.eta(), ticl::PatternRecognitionbyCLUE3D< TILES >::ClustersOnLayer.eta, EleRelPoint.eta(), egHLT::BinData.eta, HLTGenValObject.eta(), MTDTrackQualityMVA.eta, L1Analysis::L1AnalysisL1CaloClusterDataFormat.eta, LMapRow.eta, HEChannel.eta, ShallowClustersProducer::NearDigis.eta(), DTMuonLocalAlignment.eta, l1thgcfirmware::HGCalCluster.eta(), l1ScoutingRun3::demux::shiftsJet.eta, DDHCalTestBeamAlgo.eta, l1thgcfirmware::HGCalTriggerCell.eta(), Phase2L1GMT::ConvertedTTTrack.eta(), DDHCalTBZposAlgo.eta, gctpf::GCTint_t.eta, RotationType.eta(), GloballyPositioned< T >.eta(), l1thgcfirmware::HGCalTowerCoord.eta, l1ScoutingRun3::demux::masksJet.eta, ResonanceBuilder.Resonance.eta(), StripCPEgeometric::WrappedCluster.eta(), GloballyPositioned< float >.eta(), GloballyPositioned< align::Scalar >.eta(), HcalDDDRecConstants::HcalActiveLength.eta, L1Analysis::L1AnalysisL1CaloTowerDataFormat.eta, L1Analysis::L1AnalysisRecoTauDataFormat.eta, HcalHardcodeGeometryLoader::HBHOCellParameters.eta, HcalGeomCheck::hitsinfo.eta, HGCalRecHitValidation::HitsInfo.eta, HcalTestHistoClass::Hit.eta, HGCalSimHitStudy::hitsinfo.eta, L1Analysis::L1AnalysisRecoElectronDataFormat.eta, PatTrackAnalyzer::Plots.eta, PHcalTB04Info.eta(), l1t::HGCalTowerCoord.eta, BeamProfileVtxGenerator.eta(), l1ScoutingRun3::demux::shiftsEGamma.eta, L1Analysis::L1AnalysisRecoMuon2DataFormat.eta, Phase2L1GMT::PreTrackMatchedMuon.eta(), PHcalTB06Info::Hit.eta, gctobj::jetInfo.eta, mtd::MTDGeomUtil.eta(), l1ScoutingRun3::demux::masksEGamma.eta, cms::MinBias.eta, l1t::L1TGT_Common3Vector< 128 >.eta, l1t::L1TGT_Common3Vector< 96 >.eta, HGCalSimHitValidation::hitsinfo.eta, l1t::L1TGT_Common3Vector< 64 >.eta, l1t::L1TGT_Common3Vector< N >.eta, L1MuGMTEtaLUT.eta(), RhoEtaPhi.eta(), FWPFCandidateDetailView.eta(), HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.eta(), jpt::Map.eta(), trigger::TriggerObject.eta(), IdealObliquePrism.eta(), IdealZPrism.eta(), reco::PFRecTrack.eta(), tmtt::TP.eta(), btagbtvdeep::ChargedCandidateFeatures.eta, l1ScoutingRun3::demux::shiftsTau.eta, l1gt::ThreeVector.eta, l1ScoutingRun3::demux::masksTau.eta, reco::GhostTrackPrediction.eta(), PGlobalSimHit::CalHit.eta, TrackerValidationVariables::AVHitStruct.eta, XMLProcessor::_LMapRowHBEF.eta, MuScleFitMuon.eta(), QcdLowPtDQM::Pixel.eta(), L1TPFCaloProducer::SimpleHGCTC.eta, LMapDetId.eta, SimpleL1MuGMTCand.eta(), trklet::Track.eta(), PdtPdgMini.eta, TauL1TPair.eta(), TrajSeedMatcher::SCHitMatch.eta, PHcalTB06Info.eta(), Run3ScoutingCaloJet.eta(), ScoutingCaloJet.eta(), ScoutingElectron.eta(), l1tVertexFinder::VertexNTupler::GenJetsBranchData.eta, TrackBranch.eta, EtaPhiTower.eta, PGlobalSimHit::FwdHit.eta, HTrackVariables.eta(), reco::PattRecoPeak< float >.eta(), L1MuDTEtaPattern.eta(), PattRecoPeak< Real >.eta(), reco::PattRecoPeak< Real >.eta(), reco::CaloMuon.eta(), Run3ScoutingParticle.eta(), CSCSP_SPblock.eta(), reco::CastorCell.eta(), OmtfEvent::Hit.eta, OmtfEvent::Hit::.eta, l1ttrackjet::EtaPhiBin.eta, HGCalTriggerModuleDetId.eta(), EopElecVariables.eta, gctobj::GCTsupertower_t.eta, L1MuDTTrack.eta(), PV3DBase< float, VectorTag, LocalTag >.eta(), PV3DBase< float, PointTag, LocalTag >.eta(), PV3DBase< T, PointTag, GlobalTag >.eta(), PV3DBase< T, VectorTag, FrameTag >.eta(), PV3DBase< Scalar, PointTag, GlobalTag >.eta(), PV3DBase< float, PointTag, GlobalTag >.eta(), PV3DBase< T, PointTag, FrameTag >.eta(), PV3DBase< long double, PointTag, GlobalTag >.eta(), Vector3DBase< U, LocalTag >.eta(), Vector3DBase< U, GlobalTag >.eta(), Point3DBase< U, FrameTag >.eta(), Vector3DBase< U, FrameTag >.eta(), Point3DBase< T, Frame >.eta(), Vector3DBase< T, Frame >.eta(), Vector3DBase< float, GlobalTag >.eta(), PV3DBase< T, PVType, FrameType >.eta(), Point3DBase< U, LocalTag >.eta(), PV3DBase< Scalar, VectorTag, GlobalTag >.eta(), PV3DBase< align::Scalar, PointTag, GlobalTag >.eta(), Vector3DBase< U, Frame >.eta(), Point3DBase< U, Frame >.eta(), Vector3DBase< double, LocalTag >.eta(), PGlobalSimHit::BrlHit.eta, antiElecIDMVA6_blocks::ElecVars.eta, Vector3DBase< T, FrameTag >.eta(), Point3DBase< U, GlobalTag >.eta(), reco::CastorEgamma.eta(), reco::CastorJet.eta(), HcalHardcodeGeometryLoader::HECellParameters.eta, L1MuBMTrack.eta(), reco::IsoDeposit.eta(), L1TDEMON.eta, l1tVertexFinder::VertexNTupler::GenParticlesBranchData.eta, BPhysicsValidation::ParticleMonitor.eta, L1TPhase2CorrelatorOffline::SimpleObject.eta, reco::PreId.eta(), IsolatedPixelTrackCandidateProducer::seedAtEC.eta, EgammaTowerIsolationNew< NC >.eta, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.eta, Lepton.eta, Run3ScoutingPhoton.eta(), L1MuDTEtaProcessor.eta(), HcalTB02HistoClass.eta(), QcdLowPtDQM::Tracklet.eta(), l1tp2::DigitizedClusterGT.eta(), Run3ScoutingPFJet.eta(), ScoutingPFJet.eta(), ValidationMisalignedTracker.eta, l1ttrackjet::TrackJetEmulationEtaPhiBin.eta, L1MuBMEtaProcessor.eta(), L1TdeGCT.eta, HcalTB02Analysis.eta, TrackerValidationVariables::AVTrackStruct.eta, l1ScoutingRun3::bmtf::masksStubs.eta, l1ScoutingRun3::bmtf::shiftsStubs.eta, L1GctInternJetData.eta(), reco::Candidate.eta(), OmtfHit.eta, OmtfHit::.eta, GridData< T >.eta(), cms::Analyzer_minbias.eta, AnalyzerMinbias.eta, l1tpf_calo::GridData< PreCluster >.eta(), l1tpf_calo::GridData< T >.eta(), l1tpf_calo::GridData< float >.eta(), l1tpf_calo::GridData< int >.eta(), l1tVertexFinder::VertexNTupler::RecoTracksBranchData.eta, HcalHardcodeGeometryLoader::HFCellParameters.eta, PhotonIDSimpleAnalyzer::struct_recPhoton.eta, egHLT::OffPho.eta(), reco::CastorCluster.eta(), ScoutingMuon.eta(), HcalFlexiHardcodeGeometryLoader::HFCellParameters.eta, tmtt::Stub.eta(), L1Analysis::L1AnalysisRecoJetDataFormat.eta, tmtt::KFTrackletTrack.eta(), TTTrack< Ref_Phase2TrackerDigi_ > ttTrack.eta(), TTTrack< Ref_Phase2TrackerDigi_ > aTrack unsigned int.eta(), TTTrack< T >.eta(), TTTrack< Ref_Phase2TrackerDigi_ >.eta(), l1tp2::DigitizedClusterCorrelator.eta(), Basic3DVector< long double >.eta(), reco::Particle.eta(), egHLT::OffEle.eta(), Run3ScoutingElectron.eta(), EcalABAnalyzer.eta, TrackStruct::TrackParameterStruct.eta, EcalTestPulseAnalyzer.eta, MuonGeometryArrange::MGACollection.eta, RegionalOutput< T >.eta(), l1t::RegionalOutput< T >.eta(), emtf::phase2::track_t.eta, EcalPerEvtLaserAnalyzer.eta, l1tVertexFinder::VertexNTupler::TrueTracksBranchData.eta, JetAnalyzer_HeavyIons_matching::MyJet.eta, CaloParticle.eta(), reco::ParticleState.eta(), GenMuonGMTPair.eta(), reco::IsoDeposit::const_iterator.eta(), Basic3DVector< align::Scalar >.eta(), Basic3DVector< T >.eta(), Basic3DVector< U >.eta(), Basic3DVector< float > seedCentre float.eta(), Basic3DVector< double >.eta(), Basic3DVector< float > constituentCentre Basic3DVector< float >.eta(), Basic3DVector< float > pos GlobalPoint.eta(), Basic3DVector< float > mom GlobalVector.eta(), Basic3DVector< float > tcCentre float.eta(), Basic3DVector< float >.eta(), Basic3DVector< float > seedCentre.eta(), Basic3DVector< Scalar >.eta(), HGCalClusterT< C >.eta(), reco::LeafCandidate.eta(), CandidateWithRef< Ref >.eta(), SimCluster.eta(), TrackingParticle.eta(), L1Analysis::L1AnalysisRecoMuonDataFormat.eta, tmtt::L1track3D.eta(), l1tpf_calo::Cluster.eta, mkfit::Hit.eta(), RawParticle.eta(), reco::CaloCluster.eta(), Run3ScoutingMuon.eta(), L1NNCaloTauProducer::SimpleHGCluster.eta, EcalLaserAnalyzer.eta, CosmicRateAnalyzer.eta, EcalLaserAnalyzer2.eta, MuonGmtPair.eta(), SiPixelErrorEstimation.eta, L1TPhase2CorrelatorOffline::McVars.eta, l1t::EMTFTrack.eta, tmtt::L1fittedTrack.eta(), l1t::L1TGT_GMT_TopoObject.eta, reco::TrackBase.eta(), L1NNCaloTauEmulator::SimpleHGCluster.eta, L1CaloJetProducer::simpleL1obj.eta(), pat::PackedGenParticle.eta(), l1ct::OutputBoard.eta, L1NNCaloTauEmulator::InputHGCluster.eta, l1t::EMTFHit.eta, EcalSelectiveReadoutValidation::energiesEb_t.eta, EcalSelectiveReadoutValidation::energiesEe_t.eta, SiPixelTrackingRecHitsValid.eta, p2eg::ecaltp_t.eta, pat::PackedCandidate.eta(), CellIndex.eta, PMuonSimHit::Trk.eta, PTrackerSimHit::Trk.eta, CMTRawAnalyzer.eta, and Jet.Jet.puMva().

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

◆ puMva()

def Jet.Jet.puMva (   self,
  label = "pileupJetId:fullDiscriminant" 
)

Definition at line 139 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(), EGRegressionModifierDRN::partVars< T >.userFloat, pat::PATObject< LeptonType >.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< reco::Jet >.userFloat(), pat::PATObject< reco::CompositeCandidate >.userFloat(), pat::PATObject< reco::Photon >.userFloat(), pat::PATObject< reco::LeafCandidate >.userFloat(), pat::PATObject< ObjectType >.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
143 

◆ qgl()

def Jet.Jet.qgl (   self)

Definition at line 209 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
212  self.computeQGvars()
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
218 

◆ rawEnergy()

def Jet.Jet.rawEnergy (   self)

Definition at line 57 of file Jet.py.

References MTDHit.energy, reco::HcalMuonRecHit.energy, btagbtvdeep::JetFeatures.energy, CalibratedPFCluster.energy(), l1thgcfirmware::HGCalSeed.energy(), EnergyDepositUnit.energy(), hcal::RecHitCollection< StoragePolicy >.energy, hcal::RecHitCollection< calo::common::DevStoragePolicy >.energy, hcal::RecHitCollection< calo::common::VecStoragePolicy< calo::common::CUDAHostAllocatorAlias > >.energy, RecHitCollection<::calo::common::DevStoragePolicy >.energy, ecal::RecHit< calo::common::DevStoragePolicy >.energy, ecal::RecHit< calo::common::VecStoragePolicy< calo::common::CUDAHostAllocatorAlias > >.energy, RecHit<::calo::common::DevStoragePolicy >.energy, ecal::RecHit< StoragePolicy >.energy, gctobj::towerMax.energy, hgcal::Spot.energy(), CommonHcalNoiseRBXData.energy(), PCaloHit.energy(), ValidHit.energy(), FTLTrackingRecHit< ObjRef >.energy(), ValidRecHits.energy, MTDTrackingRecHit.energy(), TrivialAmplitudeAlgo< C >.energy(), CaloRecHit.energy(), reco::CastorEgamma.energy(), reco::CastorJet.energy(), TrivialAmplitudeAlgo< EEDataFrame >.energy(), TrivialAmplitudeAlgo< EBDataFrame >.energy(), ticl::simClusterOnBLayer.energy, FTLCluster::FTLHit.energy(), JetMatchingTools::JetConstituent.energy, MTDArrayBuffer.energy(), egHLT::BinData.energy, reco::CastorCell.energy(), hgcal::caloParticleOnALayer.energy, ResonanceBuilder.Resonance.energy(), MTDClusterizerBase::AccretionCluster.energy, ticl::PatternRecognitionbyCLUE3D< TILES >::ClustersOnLayer.energy, TmpSimTrack.energy(), PassiveHit.energy(), HcalGeomCheck::hitsinfo.energy, HGCalRecHitValidation::HitsInfo.energy, HGCalSimHitStudy::hitsinfo.energy, ticl::simClusterOnCLayer.energy, gctobj::jetInfo.energy, Multi5x5ClusterAlgo::ProtoBasicCluster.energy(), ticl::caloParticleOnLayer.energy, ticl::simTracksterOnLayer.energy, MuScleFitMuon.energy(), LHCInfoCombined.energy, PFMultiDepthClusterizer::ClusterLink.energy(), reco::CastorCluster.energy(), HFPreRecHit.energy(), HFClusterAlgo::HFCompleteHit.energy, KinematicParameters.energy(), FillInfo.energy(), metsig::SigInputObj.energy, FTLRecHit.energy(), trigger::TriggerObject.energy(), EcalSimHitStudy::EcalHit.energy, l1tVertexFinder::VertexNTupler::GenJetsBranchData.energy, EcalRecHit.energy(), reco::PFCluster.energy(), reco::Candidate.energy(), l1tVertexFinder::VertexNTupler::GenParticlesBranchData.energy, lumi::Lumi2DB::beamData.energy, HFQIE10Info.energy(), LHCInfoPerFill.energy(), LHCInfo.energy(), CaloParticle.energy(), reco::Particle.energy(), reco::PFRecHit.energy(), egHLT::OffPho.energy(), SimCluster.energy(), reco::ParticleState.energy(), TrackingParticle.energy(), HGCalClusterT< C >.energy(), reco::LeafCandidate.energy(), CandidateWithRef< Ref >.energy(), egHLT::OffEle.energy(), digitizerUtility::EnergyDepositUnit.energy(), reco::CaloCluster.energy(), ZdcTBAnalysis.energy, SiPixelDigitizerAlgorithm::EnergyDepositUnit.energy(), FTLCluster.energy(), pat::PackedGenParticle.energy(), p2eg::SimpleCaloHit.energy(), L1EGCrystalClusterEmulatorProducer::SimpleCaloHit.energy(), HGVHistoProducerAlgo::caloParticleOnLayer.energy, pat::PackedCandidate.energy(), p2eg::crystal.energy, p2eg::crystalMax.energy, p2eg::ecaltp_t.energy, p2eg::clusterInfo.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().

57  def rawEnergy(self):
58  return self.energy() * self.rawFactor()
59 

◆ rawFactor()

def Jet.Jet.rawFactor (   self)

Definition at line 157 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
159 

◆ setCorrP4()

def Jet.Jet.setCorrP4 (   self,
  newP4 
)

Definition at line 166 of file Jet.py.

References Jet.Jet._recalibrated, PuppiCandidate.pt, eetest::CandForTest.pt(), btagbtvdeep::JetFeatures.pt, btagbtvdeep::SecondaryVertexFeatures.pt, btagbtvdeep::TrackPairFeatures.pt, mypt.pt, btagbtvdeep::SeedingTrackFeatures.pt, res::HelperElectron.pt(), res::HelperMuon.pt(), hi::TrackStructure.pt, res::HelperJet.pt(), mkfit::IdxChi2List.pt, reco::VoronoiBackground.pt(), ScoutingParticle.pt(), L1MuCSCPtLut.pt(), l1ScoutingRun3::ugmt::masksMuon.pt, l1ScoutingRun3::ugmt::shiftsMuon.pt, l1t::Vertex.pt(), PtHatReweightUserHook.pt, l1tVertexFinder::L1Track.pt(), MatchStruct.pt, btagbtvdeep::SeedingTrackInfoBuilder.pt(), ScoutingPhoton.pt(), btagbtvdeep::LostTracksFeatures.pt, btagbtvdeep::NeutralCandidateFeatures.pt, RecoObj.pt, ALILine.pt(), trklet::L1SimTrack.pt(), PtEtaPhiMass.pt(), L2TauPixelTrackMatch::TinyTrack.pt, reco::MuonMETCorrectionData.pt(), L1Analysis::L1AnalysisRecoPhotonDataFormat.pt, P2L1HTMHTEmu::PtPxPy.pt, ResonanceBuilder.Resonance.pt(), HLTGenValObject.pt(), MTDTrackQualityMVA.pt, DTMuonLocalAlignment.pt, Phase2L1GMT::ConvertedTTTrack.pt(), l1thgcfirmware::HGCalCluster.pt(), PipeEntry< T >.pt(), antiElecIDMVA6_blocks::TauVars.pt, l1ct::tdr_regionizer::PipeEntry< T >.pt(), L1Analysis::L1AnalysisRecoTauDataFormat.pt, l1thgcfirmware::HGCalTriggerCell.pt(), L1Analysis::L1AnalysisRecoElectronDataFormat.pt, L1Analysis::L1AnalysisRecoMuon2DataFormat.pt, PatTrackAnalyzer::Plots.pt, Phase2L1GMT::PreTrackMatchedMuon.pt(), HepLine3D.pt(), PGlobalSimHit::Trk.pt, tmtt::TP.pt(), btagbtvdeep::ChargedCandidateFeatures.pt, mtd::MTDGeomUtil.pt(), trigger::TriggerObject.pt(), jpt::Map.pt(), PhysicsObjectsMonitor.pt, trklet::Track.pt(), l1gt::ThreeVector.pt, l1tVertexFinder::RecoVertex< T >.pt(), RecoVertex< L1Track >.pt(), RecoVertex<>.pt(), TtFullHadSignalSel.pt(), reco::CaloMuon.pt(), BSTrkParameters.pt(), MuScleFitMuon.pt(), PTrajectoryStateOnDet.pt(), trklet::L1TStub.pt(), SiStripLAProfileBooker.pt, reco::ForwardProton.pt(), Run3ScoutingCaloJet.pt(), l1tVertexFinder::VertexNTupler::GenJetsBranchData.pt, ScoutingElectron.pt(), ScoutingCaloJet.pt(), TrackBranch.pt, Run3ScoutingParticle.pt(), TauL1TPair.pt(), SimpleL1MuGMTCand.pt(), L1MuDTTrack.pt(), EopElecVariables.pt, HTrackVariables.pt(), L1MuBMTrack.pt(), susybsm::HSCParticle.pt(), QualityCutsAnalyzer::histogram_element_t.pt, l1tVertexFinder::VertexNTupler::GenParticlesBranchData.pt, TrajectoryStateClosestToPoint.pt(), BPhysicsValidation::ParticleMonitor.pt, L1TPhase2CorrelatorOffline::SimpleObject.pt, reco::PreId.pt(), Run3ScoutingPhoton.pt(), l1tp2::DigitizedClusterGT.pt(), Lepton.pt, Run3ScoutingPFJet.pt(), ScoutingPFJet.pt(), ValidationMisalignedTracker.pt, TrackerValidationVariables::AVTrackStruct.pt, Primary4DVertexValidation::simPrimaryVertex.pt, reco::Candidate.pt(), l1tVertexFinder::VertexNTupler::RecoTracksBranchData.pt, egHLT::OffPho.pt(), MuonResidualsFitter::MuonAlignmentTreeRow.pt, reco::PFCluster.pt(), ScoutingMuon.pt(), tmtt::KFTrackletTrack.pt(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.pt, l1tp2::DigitizedClusterCorrelator.pt(), reco::Particle.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), emtf::phase2::track_t.pt, Run3ScoutingElectron.pt(), CaloParticle.pt(), TrackStruct::TrackParameterStruct.pt, l1tVertexFinder::VertexNTupler::TrueTracksBranchData.pt, l1ct::tdr_regionizer::BufferEntry< T >.pt(), reco::ParticleState.pt(), JetAnalyzer_HeavyIons_matching::MyJet.pt, SimCluster.pt(), GenMuonGMTPair.pt(), AlignmentMonitorMuonSystemMap1D::MyTrack.pt, TrackingParticle.pt(), CandidateWithRef< Ref >.pt(), HGCalClusterT< C >.pt(), reco::LeafCandidate.pt(), Primary4DVertexValidation::recoPrimaryVertex.pt, l1t::TkJetWord.pt(), tmtt::L1track3D.pt(), L1Analysis::L1AnalysisRecoMuonDataFormat.pt, l1t::VertexWord.pt(), PtHatRapReweightUserHook.pt, l1ct::tdr_regionizer::Buffer< T >.pt(), Run3ScoutingMuon.pt(), l1t::TkTripletWord.pt(), L1NNCaloTauProducer::SimpleHGCluster.pt, CosmicRateAnalyzer.pt, MuonGmtPair.pt(), pixelTrack::QualityCutsT< TrackerTraits, pixelTopology::isPhase1Topology< TrackerTraits > >.pt, L1TPhase2CorrelatorOffline::McVars.pt, pat::MET::Vector2.pt(), RawParticle.pt(), l1t::EMTFTrack.pt, L1TPhase2CorrelatorOffline::RecoVars.pt, tmtt::L1fittedTrack.pt(), reco::TrackBase.pt(), L1NNCaloTauEmulator::SimpleHGCluster.pt, pat::PackedGenParticle.pt(), p2eg::SimpleCaloHit.pt(), L1CaloJetProducer::simpleL1obj.pt(), L1NNCaloTauEmulator::InputHGCluster.pt, L1EGCrystalClusterEmulatorProducer::SimpleCaloHit.pt(), pat::PackedCandidate.pt(), PMuonSimHit::Trk.pt, PTrackerSimHit::Trk.pt, Jet.Jet.rawFactor(), ticl::TracksterP4FromEnergySum.setP4(), ticl::TracksterP4FromTrackAndPCA.setP4(), ticl::TracksterMomentumPluginBase.setP4(), reco::PUSubMETCandInfo.setP4(), reco::Candidate.setP4(), reco::Particle.setP4(), reco::ParticleState.setP4(), reco::LeafCandidate.setP4(), HGCalClusterT< C >.setP4(), CandidateWithRef< Ref >.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);
171 

◆ setRawFactor()

def Jet.Jet.setRawFactor (   self,
  factor 
)

Definition at line 160 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')
162 

Member Data Documentation

◆ _leadingTrack

Jet.Jet._leadingTrack
private

Definition at line 54 of file Jet.py.

Referenced by Jet.Jet.leadingTrack().

◆ _leadingTrackSearched

Jet.Jet._leadingTrackSearched
private

Definition at line 55 of file Jet.py.

Referenced by Jet.Jet.leadingTrack().

◆ _rawFactorMultiplier

Jet.Jet._rawFactorMultiplier
private

Definition at line 52 of file Jet.py.

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

◆ _recalibrated

Jet.Jet._recalibrated
private

Definition at line 53 of file Jet.py.

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

◆ hasQGvars

Jet.Jet.hasQGvars

Definition at line 223 of file Jet.py.

◆ qgl_value

Jet.Jet.qgl_value

Definition at line 213 of file Jet.py.