CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 46 of file Jet.py.

Constructor & Destructor Documentation

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

Definition at line 47 of file Jet.py.

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

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

Member Function Documentation

def Jet.Jet._physObjInit (   self)
private

Definition at line 51 of file Jet.py.

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

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

Definition at line 183 of file Jet.py.

References pat::Jet.bDiscriminator().

Referenced by Jet.Jet.btagWP().

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

Definition at line 189 of file Jet.py.

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

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

Definition at line 63 of file Jet.py.

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

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

Definition at line 66 of file Jet.py.

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

66 
68  return self.chargedHadronEnergy()/self.rawEnergy()
def rawEnergy
Definition: Jet.py:57
def chargedHadronEnergyFraction
Definition: Jet.py:66
def Jet.Jet.chargedMuEnergyFraction (   self)

Definition at line 69 of file Jet.py.

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

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

Definition at line 219 of file Jet.py.

Referenced by Jet.Jet.qgl().

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

Definition at line 163 of file Jet.py.

References Jet.Jet.rawFactor().

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

Definition at line 72 of file Jet.py.

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

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

Definition at line 91 of file Jet.py.

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

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

Definition at line 88 of file Jet.py.

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

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

Definition at line 94 of file Jet.py.

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

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

Definition at line 99 of file Jet.py.

References funct.abs(), reco::GenJet.chargedEmEnergy(), reco::JPTJet.chargedEmEnergy(), reco::PFJet.chargedEmEnergy(), JetTester.chargedEmEnergy, pat::Jet.chargedEmEnergy(), Run3ScoutingPFJet.chargedHadronEnergy(), ScoutingPFJet.chargedHadronEnergy(), reco::JPTJet.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(), res::HelperJet.eta(), L1TkMuMantraDF::track_df.eta, omtf::DtDataWord64.eta(), omtf::MuonDataWord64.eta(), HcalCellType::HcalCell.eta, Run3ScoutingParticle.eta(), EtaPhiBin.eta, ScoutingParticle.eta(), muonisolation::NominalEfficiencyThresholds::ThresholdLocation.eta, SimG4HcalHitCluster.eta(), MSLayersKeeperX0AtEta.eta(), res::HelperMET.eta(), BenchmarkTreeEntry.eta, jetData.eta, l1tVertexFinder::L1Track.eta(), CaloHit.eta(), GoldenPatternResult.eta, SuperClusterHelper.eta(), HcalChannelId.eta, L1TkMuMantraDF::muon_df.eta, ScoutingPhoton.eta(), btagbtvdeep::SeedingTrackInfoBuilder.eta(), MatchStruct.eta, RecoObj.eta, dnn_inputs_2017v1.eta, trklet::L1SimTrack.eta(), HGCal_helpers::Coordinates.eta, L1Analysis::L1AnalysisRecoClusterDataFormat.eta, l1tpf_calo::Grid.eta(), l1t::EMTFPtLUT.eta, L2TauPixelTrackMatch::TinyTrack.eta, HcalDDDRecConstants::HcalID.eta, reco::MuonRecHitCluster.eta(), ticl::PatternRecognitionbyCLUE3D< TILES >::ClustersOnLayer.eta, PtEtaPhiMass.eta(), ImpactPoint.eta, EnergyResolutionVsLumi::DegradationAtEta.eta, reco::isodeposit::Direction.eta(), EtaValue.eta, EleRelPoint.eta(), egHLT::BinData.eta, MTDTrackQualityMVA.eta, LMapRow.eta, HEChannel.eta, L1Analysis::L1AnalysisL1CaloClusterDataFormat.eta, DTMuonLocalAlignment.eta, DDHCalTestBeamAlgo.eta, ShallowClustersProducer::NearDigis.eta(), DDHCalTBZposAlgo.eta, GloballyPositioned< T >.eta(), RotationType.eta(), ResonanceBuilder.Resonance.eta(), StripCPEgeometric::WrappedCluster.eta(), GloballyPositioned< float >.eta(), GloballyPositioned< align::Scalar >.eta(), HcalDDDRecConstants::HcalActiveLength.eta, L1Analysis::L1AnalysisL1CaloTowerDataFormat.eta, L1Analysis::L1AnalysisRecoTauDataFormat.eta, HcalTestHistoClass::Hit.eta, HcalHardcodeGeometryLoader::HBHOCellParameters.eta, HcalGeomCheck::hitsinfo.eta, L1Analysis::L1AnalysisRecoElectronDataFormat.eta, HGCalRecHitValidation::HitsInfo.eta, l1t::HGCalTowerCoord.eta, PatTrackAnalyzer::Plots.eta, PHcalTB04Info.eta(), BeamProfileVtxGenerator.eta(), L1Analysis::L1AnalysisRecoMuon2DataFormat.eta, PHcalTB06Info::Hit.eta, OmtfEvent::Hit.eta, OmtfEvent::Hit::@873::@875.eta, HGCalSimHitStudy::hitsinfo.eta, L1MuGMTEtaLUT.eta(), RhoEtaPhi.eta(), l1tVertexFinder::VertexNTupler::GenJetsBranchData.eta, FWPFCandidateDetailView.eta(), IdealObliquePrism.eta(), HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.eta(), jpt::Map.eta(), trigger::TriggerObject.eta(), L1TkMuonProducer::PropState.eta, IdealZPrism.eta(), reco::PFRecTrack.eta(), JetCalibrationParameterSetTauJet.eta(), tmtt::TP.eta(), cms::MinBias.eta, TrackerValidationVariables::AVHitStruct.eta, PGlobalSimHit::CalHit.eta, reco::GhostTrackPrediction.eta(), trklet::Track.eta(), XMLProcessor::_LMapRowHBEF.eta, MuScleFitMuon.eta(), Run3ScoutingPhoton.eta(), QcdLowPtDQM::Pixel.eta(), L1TPFCaloProducer::SimpleHGCTC.eta, SimpleL1MuGMTCand.eta(), LMapDetId.eta, TrajSeedMatcher::SCHitMatch.eta, TauL1TPair.eta(), PFECALSuperClusterAlgo::CalibratedPFCluster.eta(), PHcalTB06Info.eta(), PdtPdgMini.eta, Run3ScoutingCaloJet.eta(), ScoutingCaloJet.eta(), ScoutingElectron.eta(), EtaPhiTower.eta, PGlobalSimHit::FwdHit.eta, HTrackVariables.eta(), reco::PattRecoPeak< Real >.eta(), reco::CaloMuon.eta(), l1tVertexFinder::VertexNTupler::GenParticlesBranchData.eta, CSCSP_SPblock.eta(), HGCalSimHitValidation::hitsinfo.eta, reco::PattRecoPeak< float >.eta(), L1MuDTEtaPattern.eta(), PattRecoPeak< Real >.eta(), PatPhotonSimpleAnalyzer::struct_recPhoton.eta, reco::CastorCell.eta(), TrackSoAHeterogeneousT< S >.eta, HGCalTriggerModuleDetId.eta(), ValidationMisalignedTracker.eta, Vector3DBase< double, LocalTag >.eta(), PV3DBase< T, PVType, FrameType >.eta(), Vector3DBase< U, LocalTag >.eta(), Point3DBase< U, Frame >.eta(), antiElecIDMVA6_blocks::ElecVars.eta, Vector3DBase< T, Frame >.eta(), PV3DBase< long double, PointTag, GlobalTag >.eta(), PGlobalSimHit::BrlHit.eta, PV3DBase< T, VectorTag, FrameTag >.eta(), PV3DBase< T, PointTag, GlobalTag >.eta(), PV3DBase< Scalar, PointTag, GlobalTag >.eta(), PV3DBase< float, VectorTag, LocalTag >.eta(), PV3DBase< float, PointTag, LocalTag >.eta(), PV3DBase< Scalar, VectorTag, GlobalTag >.eta(), Vector3DBase< T, FrameTag >.eta(), PV3DBase< T, PointTag, FrameTag >.eta(), PV3DBase< float, PointTag, GlobalTag >.eta(), PV3DBase< align::Scalar, PointTag, GlobalTag >.eta(), Point3DBase< U, LocalTag >.eta(), Point3DBase< U, GlobalTag >.eta(), Vector3DBase< U, GlobalTag >.eta(), Point3DBase< U, FrameTag >.eta(), Vector3DBase< U, FrameTag >.eta(), Point3DBase< T, Frame >.eta(), Vector3DBase< U, Frame >.eta(), Vector3DBase< float, GlobalTag >.eta(), L1MuDTTrack.eta(), reco::CastorEgamma.eta(), reco::CastorJet.eta(), HcalHardcodeGeometryLoader::HECellParameters.eta, L1MuBMTrack.eta(), reco::IsoDeposit.eta(), BPhysicsValidation::ParticleMonitor.eta, L1TDEMON.eta, EgammaTowerIsolationNew< NC >.eta, Run3ScoutingElectron.eta(), reco::PreId.eta(), IsolatedPixelTrackCandidateProducer::seedAtEC.eta, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.eta, L1TPhase2CorrelatorOffline::SimpleObject.eta, L1MuDTEtaProcessor.eta(), HcalTB02HistoClass.eta(), Lepton.eta, QcdLowPtDQM::Tracklet.eta(), L1Analysis::L1AnalysisRecoJetDataFormat.eta, Run3ScoutingPFJet.eta(), ScoutingPFJet.eta(), L1MuBMEtaProcessor.eta(), L1TdeGCT.eta, HcalTB02Analysis.eta, TrackerValidationVariables::AVTrackStruct.eta, l1tVertexFinder::VertexNTupler::RecoTracksBranchData.eta, L1GctInternJetData.eta(), cms::Analyzer_minbias.eta, reco::Candidate.eta(), AnalyzerMinbias.eta, JetPartonNamespace::JetPartonCalibrationParameterSet.eta(), HcalHardcodeGeometryLoader::HFCellParameters.eta, egHLT::OffPho.eta(), PhotonIDSimpleAnalyzer::struct_recPhoton.eta, reco::CastorCluster.eta(), GridData< T >.eta(), l1tpf_calo::GridData< PreCluster >.eta(), l1tpf_calo::GridData< T >.eta(), l1tpf_calo::GridData< float >.eta(), l1tpf_calo::GridData< int >.eta(), HcalFlexiHardcodeGeometryLoader::HFCellParameters.eta, ScoutingMuon.eta(), tmtt::Stub.eta(), tmtt::KFTrackletTrack.eta(), TTTrack< T >.eta(), TTTrack< Ref_Phase2TrackerDigi_ >.eta(), TTTrack< Ref_Phase2TrackerDigi_ > aTrack unsigned int.eta(), Basic3DVector< long double >.eta(), reco::Particle.eta(), egHLT::OffEle.eta(), l1tVertexFinder::VertexNTupler::TrueTracksBranchData.eta, EcalTestPulseAnalyzer.eta, TrackStruct::TrackParameterStruct.eta, EcalABAnalyzer.eta, MuonGeometryArrange::MGACollection.eta, EcalPerEvtLaserAnalyzer.eta, CaloParticle.eta(), JetAnalyzer_HeavyIons_matching::MyJet.eta, reco::ParticleState.eta(), reco::IsoDeposit::const_iterator.eta(), Basic3DVector< float > mom GlobalVector.eta(), Basic3DVector< Scalar >.eta(), Basic3DVector< float > seedCentre.eta(), Basic3DVector< double >.eta(), Basic3DVector< float > constituentCentre Basic3DVector< float >.eta(), Basic3DVector< U >.eta(), Basic3DVector< T >.eta(), Basic3DVector< float > tcCentre float.eta(), Basic3DVector< align::Scalar >.eta(), Basic3DVector< float > pos GlobalPoint.eta(), Basic3DVector< float > seedCentre float.eta(), Basic3DVector< float >.eta(), SimCluster.eta(), CandidateWithRef< Ref >.eta(), reco::LeafCandidate.eta(), HGCalClusterT< C >.eta(), TrackingParticle.eta(), L1Analysis::L1AnalysisRecoMuonDataFormat.eta, l1tpf_calo::Cluster.eta, tmtt::L1track3D.eta(), HGCalCLUEAlgoT< TILE >::CellsOnLayer.eta, RawParticle.eta(), reco::CaloCluster.eta(), Run3ScoutingMuon.eta(), EcalLaserAnalyzer.eta, CosmicRateAnalyzer.eta, MuonGmtPair.eta(), EcalLaserAnalyzer2.eta, SiPixelErrorEstimation.eta, L1TPhase2CorrelatorOffline::McVars.eta, l1t::EMTFTrack.eta, tmtt::L1fittedTrack.eta(), reco::TrackBase.eta(), L1CaloJetProducer::simpleL1obj.eta(), pat::PackedGenParticle.eta(), l1t::EMTFHit.eta, EcalSelectiveReadoutValidation::energiesEb_t.eta, EcalSelectiveReadoutValidation::energiesEe_t.eta, SiPixelTrackingRecHitsValid.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::JPTJet.neutralEmEnergy(), reco::PFJet.neutralEmEnergy(), JetTester.neutralEmEnergy, pat::Jet.neutralEmEnergy(), Run3ScoutingPFJet.neutralHadronEnergy(), ScoutingPFJet.neutralHadronEnergy(), reco::JPTJet.neutralHadronEnergy(), reco::GenJet.neutralHadronEnergy(), reco::PFJet.neutralHadronEnergy(), JetTester.neutralHadronEnergy, pat::Jet.neutralHadronEnergy(), reco::PFJet.neutralMultiplicity(), JetTester.neutralMultiplicity, pat::Jet.neutralMultiplicity(), SuperClusterHelper.rawEnergy(), TICLCandidate.rawEnergy(), Jet.Jet.rawEnergy(), and reco::SuperCluster.rawEnergy().

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

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

Definition at line 172 of file Jet.py.

References Jet.Jet._recalibrated.

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

Definition at line 194 of file Jet.py.

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

Referenced by Jet.Jet.leadTrackPt().

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

Definition at line 203 of file Jet.py.

References Jet.Jet.leadingTrack().

204  def leadTrackPt(self):
205  lt=self.leadingTrack()
206  if lt :
207  return lt.pt()
208  else :
return 0.
def leadingTrack
Definition: Jet.py:194
def leadTrackPt
Definition: Jet.py:203
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().

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

Definition at line 75 of file Jet.py.

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

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

Definition at line 78 of file Jet.py.

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

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

Definition at line 81 of file Jet.py.

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

81 
83  return self.neutralHadronEnergy()/self.rawEnergy()
def rawEnergy
Definition: Jet.py:57
def neutralHadronEnergyFraction
Definition: Jet.py:81
def Jet.Jet.photonEnergyFraction (   self)

Definition at line 84 of file Jet.py.

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

84 
85  def photonEnergyFraction(self):
86  return self.photonEnergy()/self.rawEnergy()
87 
def photonEnergyFraction
Definition: Jet.py:84
def rawEnergy
Definition: Jet.py:57
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::JetFeatures.eta, btagbtvdeep::TrackPairFeatures.eta, hi::TrackStructure.eta, btagbtvdeep::SeedingTrackFeatures.eta, res::HelperElectron.eta(), res::HelperMuon.eta(), res::HelperJet.eta(), L1TkMuMantraDF::track_df.eta, omtf::DtDataWord64.eta(), omtf::MuonDataWord64.eta(), HcalCellType::HcalCell.eta, EtaPhiBin.eta, Run3ScoutingParticle.eta(), ScoutingParticle.eta(), muonisolation::NominalEfficiencyThresholds::ThresholdLocation.eta, SimG4HcalHitCluster.eta(), MSLayersKeeperX0AtEta.eta(), res::HelperMET.eta(), BenchmarkTreeEntry.eta, jetData.eta, l1tVertexFinder::L1Track.eta(), CaloHit.eta(), GoldenPatternResult.eta, HcalChannelId.eta, SuperClusterHelper.eta(), L1TkMuMantraDF::muon_df.eta, ScoutingPhoton.eta(), MatchStruct.eta, btagbtvdeep::SeedingTrackInfoBuilder.eta(), RecoObj.eta, dnn_inputs_2017v1.eta, trklet::L1SimTrack.eta(), HGCal_helpers::Coordinates.eta, l1tpf_calo::Grid.eta(), L1Analysis::L1AnalysisRecoClusterDataFormat.eta, l1t::EMTFPtLUT.eta, HcalDDDRecConstants::HcalID.eta, L2TauPixelTrackMatch::TinyTrack.eta, reco::MuonRecHitCluster.eta(), ticl::PatternRecognitionbyCLUE3D< TILES >::ClustersOnLayer.eta, PtEtaPhiMass.eta(), ImpactPoint.eta, EnergyResolutionVsLumi::DegradationAtEta.eta, reco::isodeposit::Direction.eta(), EtaValue.eta, EleRelPoint.eta(), egHLT::BinData.eta, MTDTrackQualityMVA.eta, LMapRow.eta, HEChannel.eta, L1Analysis::L1AnalysisL1CaloClusterDataFormat.eta, DDHCalTestBeamAlgo.eta, DTMuonLocalAlignment.eta, ShallowClustersProducer::NearDigis.eta(), DDHCalTBZposAlgo.eta, RotationType.eta(), ResonanceBuilder.Resonance.eta(), StripCPEgeometric::WrappedCluster.eta(), GloballyPositioned< float >.eta(), GloballyPositioned< align::Scalar >.eta(), GloballyPositioned< T >.eta(), HcalDDDRecConstants::HcalActiveLength.eta, L1Analysis::L1AnalysisRecoTauDataFormat.eta, L1Analysis::L1AnalysisL1CaloTowerDataFormat.eta, HcalTestHistoClass::Hit.eta, HcalHardcodeGeometryLoader::HBHOCellParameters.eta, HcalGeomCheck::hitsinfo.eta, HGCalRecHitValidation::HitsInfo.eta, L1Analysis::L1AnalysisRecoElectronDataFormat.eta, PatTrackAnalyzer::Plots.eta, PHcalTB04Info.eta(), l1t::HGCalTowerCoord.eta, BeamProfileVtxGenerator.eta(), L1Analysis::L1AnalysisRecoMuon2DataFormat.eta, PHcalTB06Info::Hit.eta, OmtfEvent::Hit.eta, OmtfEvent::Hit::@873::@875.eta, HGCalSimHitStudy::hitsinfo.eta, L1MuGMTEtaLUT.eta(), RhoEtaPhi.eta(), l1tVertexFinder::VertexNTupler::GenJetsBranchData.eta, FWPFCandidateDetailView.eta(), IdealObliquePrism.eta(), HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.eta(), jpt::Map.eta(), trigger::TriggerObject.eta(), L1TkMuonProducer::PropState.eta, IdealZPrism.eta(), reco::PFRecTrack.eta(), JetCalibrationParameterSetTauJet.eta(), tmtt::TP.eta(), cms::MinBias.eta, PGlobalSimHit::CalHit.eta, TrackerValidationVariables::AVHitStruct.eta, reco::GhostTrackPrediction.eta(), trklet::Track.eta(), MuScleFitMuon.eta(), XMLProcessor::_LMapRowHBEF.eta, Run3ScoutingPhoton.eta(), QcdLowPtDQM::Pixel.eta(), L1TPFCaloProducer::SimpleHGCTC.eta, SimpleL1MuGMTCand.eta(), LMapDetId.eta, PFECALSuperClusterAlgo::CalibratedPFCluster.eta(), TrajSeedMatcher::SCHitMatch.eta, TauL1TPair.eta(), PHcalTB06Info.eta(), PdtPdgMini.eta, Run3ScoutingCaloJet.eta(), ScoutingElectron.eta(), ScoutingCaloJet.eta(), EtaPhiTower.eta, HTrackVariables.eta(), PGlobalSimHit::FwdHit.eta, reco::PattRecoPeak< Real >.eta(), reco::CaloMuon.eta(), l1tVertexFinder::VertexNTupler::GenParticlesBranchData.eta, CSCSP_SPblock.eta(), HGCalSimHitValidation::hitsinfo.eta, reco::PattRecoPeak< float >.eta(), L1MuDTEtaPattern.eta(), PattRecoPeak< Real >.eta(), PatPhotonSimpleAnalyzer::struct_recPhoton.eta, reco::CastorCell.eta(), TrackSoAHeterogeneousT< S >.eta, HGCalTriggerModuleDetId.eta(), ValidationMisalignedTracker.eta, PV3DBase< T, PVType, FrameType >.eta(), Vector3DBase< T, FrameTag >.eta(), PV3DBase< Scalar, VectorTag, GlobalTag >.eta(), Vector3DBase< U, FrameTag >.eta(), PV3DBase< T, VectorTag, FrameTag >.eta(), Vector3DBase< double, LocalTag >.eta(), Vector3DBase< float, GlobalTag >.eta(), antiElecIDMVA6_blocks::ElecVars.eta, Point3DBase< U, Frame >.eta(), PGlobalSimHit::BrlHit.eta, Point3DBase< U, GlobalTag >.eta(), Vector3DBase< U, Frame >.eta(), PV3DBase< float, VectorTag, LocalTag >.eta(), Vector3DBase< U, GlobalTag >.eta(), PV3DBase< float, PointTag, LocalTag >.eta(), PV3DBase< T, PointTag, GlobalTag >.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(), Vector3DBase< U, LocalTag >.eta(), Point3DBase< U, FrameTag >.eta(), Point3DBase< T, Frame >.eta(), Vector3DBase< T, Frame >.eta(), L1MuDTTrack.eta(), reco::CastorEgamma.eta(), reco::CastorJet.eta(), HcalHardcodeGeometryLoader::HECellParameters.eta, L1MuBMTrack.eta(), reco::IsoDeposit.eta(), BPhysicsValidation::ParticleMonitor.eta, L1TDEMON.eta, EgammaTowerIsolationNew< NC >.eta, Run3ScoutingElectron.eta(), reco::PreId.eta(), IsolatedPixelTrackCandidateProducer::seedAtEC.eta, L1TPhase2CorrelatorOffline::SimpleObject.eta, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.eta, L1MuDTEtaProcessor.eta(), HcalTB02HistoClass.eta(), Lepton.eta, QcdLowPtDQM::Tracklet.eta(), L1Analysis::L1AnalysisRecoJetDataFormat.eta, Run3ScoutingPFJet.eta(), ScoutingPFJet.eta(), L1MuBMEtaProcessor.eta(), L1TdeGCT.eta, HcalTB02Analysis.eta, TrackerValidationVariables::AVTrackStruct.eta, l1tVertexFinder::VertexNTupler::RecoTracksBranchData.eta, L1GctInternJetData.eta(), cms::Analyzer_minbias.eta, reco::Candidate.eta(), AnalyzerMinbias.eta, JetPartonNamespace::JetPartonCalibrationParameterSet.eta(), HcalHardcodeGeometryLoader::HFCellParameters.eta, egHLT::OffPho.eta(), PhotonIDSimpleAnalyzer::struct_recPhoton.eta, GridData< T >.eta(), l1tpf_calo::GridData< PreCluster >.eta(), reco::CastorCluster.eta(), l1tpf_calo::GridData< int >.eta(), l1tpf_calo::GridData< T >.eta(), l1tpf_calo::GridData< float >.eta(), ScoutingMuon.eta(), HcalFlexiHardcodeGeometryLoader::HFCellParameters.eta, tmtt::Stub.eta(), tmtt::KFTrackletTrack.eta(), TTTrack< T >.eta(), TTTrack< Ref_Phase2TrackerDigi_ > aTrack unsigned int.eta(), TTTrack< Ref_Phase2TrackerDigi_ >.eta(), Basic3DVector< long double >.eta(), reco::Particle.eta(), l1tVertexFinder::VertexNTupler::TrueTracksBranchData.eta, egHLT::OffEle.eta(), EcalTestPulseAnalyzer.eta, EcalABAnalyzer.eta, TrackStruct::TrackParameterStruct.eta, MuonGeometryArrange::MGACollection.eta, EcalPerEvtLaserAnalyzer.eta, CaloParticle.eta(), JetAnalyzer_HeavyIons_matching::MyJet.eta, reco::ParticleState.eta(), reco::IsoDeposit::const_iterator.eta(), Basic3DVector< float > pos GlobalPoint.eta(), Basic3DVector< align::Scalar >.eta(), Basic3DVector< double >.eta(), Basic3DVector< Scalar >.eta(), Basic3DVector< U >.eta(), Basic3DVector< float > seedCentre float.eta(), Basic3DVector< float > tcCentre float.eta(), Basic3DVector< float > constituentCentre Basic3DVector< float >.eta(), Basic3DVector< T >.eta(), Basic3DVector< float > seedCentre.eta(), Basic3DVector< float > mom GlobalVector.eta(), Basic3DVector< float >.eta(), SimCluster.eta(), CandidateWithRef< Ref >.eta(), reco::LeafCandidate.eta(), HGCalClusterT< C >.eta(), TrackingParticle.eta(), L1Analysis::L1AnalysisRecoMuonDataFormat.eta, tmtt::L1track3D.eta(), l1tpf_calo::Cluster.eta, HGCalCLUEAlgoT< TILE >::CellsOnLayer.eta, RawParticle.eta(), reco::CaloCluster.eta(), Run3ScoutingMuon.eta(), CosmicRateAnalyzer.eta, EcalLaserAnalyzer.eta, MuonGmtPair.eta(), EcalLaserAnalyzer2.eta, SiPixelErrorEstimation.eta, L1TPhase2CorrelatorOffline::McVars.eta, l1t::EMTFTrack.eta, tmtt::L1fittedTrack.eta(), reco::TrackBase.eta(), L1CaloJetProducer::simpleL1obj.eta(), pat::PackedGenParticle.eta(), l1t::EMTFHit.eta, EcalSelectiveReadoutValidation::energiesEb_t.eta, EcalSelectiveReadoutValidation::energiesEe_t.eta, SiPixelTrackingRecHitsValid.eta, pat::PackedCandidate.eta(), CellIndex.eta, PMuonSimHit::Trk.eta, PTrackerSimHit::Trk.eta, CMTRawAnalyzer.eta, and Jet.Jet.puMva().

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

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

Definition at line 209 of file Jet.py.

References Jet.Jet.computeQGvars().

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

Definition at line 57 of file Jet.py.

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

57 
58  def rawEnergy(self):
59  return self.energy() * self.rawFactor()
def rawEnergy
Definition: Jet.py:57
def rawFactor
Definition: Jet.py:157
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().

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

Definition at line 166 of file Jet.py.

References Jet.Jet._recalibrated, PuppiCandidate.pt, eetest::CandForTest.pt(), btagbtvdeep::TrackPairFeatures.pt, btagbtvdeep::JetFeatures.pt, btagbtvdeep::SecondaryVertexFeatures.pt, mypt.pt, btagbtvdeep::SeedingTrackFeatures.pt, res::HelperElectron.pt(), res::HelperMuon.pt(), hi::TrackStructure.pt, res::HelperJet.pt(), L1TkMuMantraDF::track_df.pt, Run3ScoutingParticle.pt(), ScoutingParticle.pt(), reco::VoronoiBackground.pt(), L1MuCSCPtLut.pt(), l1t::Vertex.pt(), l1tVertexFinder::L1Track.pt(), PtHatReweightUserHook.pt, L1TkMuMantraDF::muon_df.pt, ScoutingPhoton.pt(), btagbtvdeep::SeedingTrackInfoBuilder.pt(), MatchStruct.pt, RecoObj.pt, dnn_inputs_2017v1.pt, trklet::L1SimTrack.pt(), ALILine.pt(), PtEtaPhiMass.pt(), L2TauPixelTrackMatch::TinyTrack.pt, reco::MuonMETCorrectionData.pt(), tauImpactParameter::LorentzVectorParticle.pt, ResonanceBuilder.Resonance.pt(), MTDTrackQualityMVA.pt, DTMuonLocalAlignment.pt, antiElecIDMVA6_blocks::TauVars.pt, L1Analysis::L1AnalysisRecoTauDataFormat.pt, L1Analysis::L1AnalysisRecoElectronDataFormat.pt, PatTrackAnalyzer::Plots.pt, L1Analysis::L1AnalysisRecoMuon2DataFormat.pt, PGlobalSimHit::Trk.pt, HepLine3D.pt(), tmtt::TP.pt(), l1tVertexFinder::VertexNTupler::GenJetsBranchData.pt, L1TkMuonProducer::PropState.pt, trigger::TriggerObject.pt(), PhysicsObjectsMonitor.pt, trklet::Track.pt(), jpt::Map.pt(), l1tVertexFinder::RecoVertex< T >.pt(), RecoVertex< L1Track >.pt(), RecoVertex<>.pt(), reco::CaloMuon.pt(), TtFullHadSignalSel.pt(), BSTrkParameters.pt(), trklet::L1TStub.pt(), MuScleFitMuon.pt(), Run3ScoutingPhoton.pt(), PTrajectoryStateOnDet.pt(), SiStripLAProfileBooker.pt, reco::ForwardProton.pt(), Run3ScoutingCaloJet.pt(), ScoutingCaloJet.pt(), ScoutingElectron.pt(), l1tVertexFinder::VertexNTupler::GenParticlesBranchData.pt, TauL1TPair.pt(), SimpleL1MuGMTCand.pt(), L1MuDTTrack.pt(), HTrackVariables.pt(), TrackSoAHeterogeneousT< S >.pt, L1MuBMTrack.pt(), ValidationMisalignedTracker.pt, susybsm::HSCParticle.pt(), QualityCutsAnalyzer::histogram_element_t.pt, TrajectoryStateClosestToPoint.pt(), BPhysicsValidation::ParticleMonitor.pt, Run3ScoutingElectron.pt(), reco::PreId.pt(), L1TPhase2CorrelatorOffline::SimpleObject.pt, Lepton.pt, Run3ScoutingPFJet.pt(), ScoutingPFJet.pt(), TrackerValidationVariables::AVTrackStruct.pt, l1tVertexFinder::VertexNTupler::RecoTracksBranchData.pt, reco::Candidate.pt(), egHLT::OffPho.pt(), MuonResidualsFitter::MuonAlignmentTreeRow.pt, ScoutingMuon.pt(), reco::PFCluster.pt(), tmtt::KFTrackletTrack.pt(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.pt, reco::Particle.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), l1tVertexFinder::VertexNTupler::TrueTracksBranchData.pt, TrackStruct::TrackParameterStruct.pt, CaloParticle.pt(), Primary4DVertexValidation::recoPrimaryVertex.pt, SimCluster.pt(), reco::ParticleState.pt(), AlignmentMonitorMuonSystemMap1D::MyTrack.pt, JetAnalyzer_HeavyIons_matching::MyJet.pt, TrackingParticle.pt(), HGCalClusterT< C >.pt(), reco::LeafCandidate.pt(), CandidateWithRef< Ref >.pt(), tmtt::L1track3D.pt(), L1Analysis::L1AnalysisRecoMuonDataFormat.pt, PtHatRapReweightUserHook.pt, Run3ScoutingMuon.pt(), CosmicRateAnalyzer.pt, MuonGmtPair.pt(), L1TPhase2CorrelatorOffline::McVars.pt, pat::MET::Vector2.pt(), RawParticle.pt(), l1t::EMTFTrack.pt, L1TPhase2CorrelatorOffline::RecoVars.pt, tmtt::L1fittedTrack.pt(), reco::TrackBase.pt(), pat::PackedGenParticle.pt(), L1CaloJetProducer::simpleL1obj.pt(), L1EGCrystalClusterEmulatorProducer::SimpleCaloHit.pt(), pat::PackedCandidate.pt(), PMuonSimHit::Trk.pt, PTrackerSimHit::Trk.pt, Jet.Jet.rawFactor(), ticl::TracksterP4FromTrackAndPCA.setP4(), ticl::TracksterP4FromEnergySum.setP4(), ticl::TracksterMomentumPluginBase.setP4(), reco::PUSubMETCandInfo.setP4(), reco::Candidate.setP4(), reco::Particle.setP4(), reco::ParticleState.setP4(), HGCalClusterT< C >.setP4(), CandidateWithRef< Ref >.setP4(), reco::LeafCandidate.setP4(), pat::PackedGenParticle.setP4(), reco::Photon.setP4(), pat::PackedCandidate.setP4(), reco::GsfElectron.setP4(), and Jet.Jet.setRawFactor().

167  def setCorrP4(self,newP4):
168  self._recalibrated = True
169  corr = newP4.Pt() / (self.pt() * self.rawFactor())
170  self.setP4(newP4);
171  self.setRawFactor(1.0/corr);
def setRawFactor
Definition: Jet.py:160
_recalibrated
Definition: Jet.py:53
def setCorrP4
Definition: Jet.py:166
def rawFactor
Definition: Jet.py:157
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().

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

Member Data Documentation

Jet.Jet._leadingTrack
private

Definition at line 54 of file Jet.py.

Referenced by Jet.Jet.leadingTrack().

Jet.Jet._leadingTrackSearched
private

Definition at line 55 of file Jet.py.

Referenced by Jet.Jet.leadingTrack().

Jet.Jet._rawFactorMultiplier
private

Definition at line 52 of file Jet.py.

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

Jet.Jet._recalibrated
private

Definition at line 53 of file Jet.py.

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

Jet.Jet.hasQGvars

Definition at line 223 of file Jet.py.

Jet.Jet.qgl_value

Definition at line 213 of file Jet.py.