CMS 3D CMS Logo

List of all members | Public Member Functions
Lepton.Lepton Class Reference
Inheritance diagram for Lepton.Lepton:

Public Member Functions

def __str__ (self)
 
def absIsoFromEA (self, area='04')
 
def absIsoR (self, R=0.4, dBetaFactor=0, allCharged=False)
 
def ip3D (self)
 
def lostInner (self)
 
def p4WithFSR (self)
 
def relIso (self, dBetaFactor=0, allCharged=0)
 
def relIsoFromEA (self, area='04')
 
def relIsoR (self, R=0.4, dBetaFactor=0, allCharged=False)
 
def sip3D (self)
 

Detailed Description

Definition at line 4 of file Lepton.py.

Member Function Documentation

◆ __str__()

def Lepton.Lepton.__str__ (   self)

Definition at line 54 of file Lepton.py.

References IsoTrack.IsoTrack.relIso(), Lepton.Lepton.relIso(), and p2eg::GCTcluster_t.relIso.

54  def __str__(self):
55  ptc = super(Lepton, self).__str__()
56  return '{ptc}, iso={iso:5.2f}'.format(ptc=ptc, iso=self.relIso())
57 

◆ absIsoFromEA()

def Lepton.Lepton.absIsoFromEA (   self,
  area = '04' 
)
Calculate Isolation using the effective area approach.

Definition at line 14 of file Lepton.py.

References pat::PFIsolation.chargedHadronIso(), Photon.Photon.chargedHadronIso(), pat::Photon.chargedHadronIso(), pat::Lepton< LeptonType >.chargedHadronIso(), pat::Lepton< reco::BaseTau >.chargedHadronIso(), pat::Lepton< reco::GsfElectron >.chargedHadronIso(), pat::Lepton< reco::Muon >.chargedHadronIso(), Lepton< LeptonType >.chargedHadronIso(), reco::Photon::PflowIsolationVariables.chargedHadronIso, reco::Photon.chargedHadronIso(), SiStripPI.max, pat::PFIsolation.neutralHadronIso(), Photon.Photon.neutralHadronIso(), pat::Photon.neutralHadronIso(), pat::Lepton< reco::Muon >.neutralHadronIso(), Lepton< LeptonType >.neutralHadronIso(), pat::Lepton< reco::GsfElectron >.neutralHadronIso(), pat::Lepton< LeptonType >.neutralHadronIso(), pat::Lepton< reco::BaseTau >.neutralHadronIso(), reco::Photon::PflowIsolationVariables.neutralHadronIso, reco::Photon.neutralHadronIso(), pat::PFIsolation.photonIso(), Photon.Photon.photonIso(), pat::Photon.photonIso(), pat::Lepton< reco::GsfElectron >.photonIso(), pat::Lepton< reco::Muon >.photonIso(), Lepton< LeptonType >.photonIso(), pat::Lepton< LeptonType >.photonIso(), pat::Lepton< reco::BaseTau >.photonIso(), reco::Photon::PflowIsolationVariables.photonIso, reco::Photon.photonIso(), Photon.Photon.rho, Electron.Electron.rho, CaloDetInfo.rho(), CalorimeterProperties.rho(), PreshowerProperties.rho(), TauValidation.rho, ECALProperties.rho(), HCALProperties.rho(), correctionValue_class.rho, ticl::PatternRecognitionbyCLUE3D< TILES >::ClustersOnLayer.rho, MaterialEffectsSimulator.rho(), TangentCircle.rho(), TangentHelix.rho(), FastCircle.rho(), RhoEtaPhi.rho(), reco::GhostTrackPrediction.rho(), fastjet::BackgroundEstimator.rho(), QcdLowPtDQM::Pixel.rho(), FastCircleFit.rho(), StoredPileupJetIdentifier.rho(), reco::CastorCell.rho(), CylindricalState.rho(), reco::CastorEgamma.rho(), reco::CastorJet.rho(), GeometricTimingDet.rho(), GeometricDet.rho(), reco::CastorTower.rho(), reco::CastorCluster.rho(), AlignmentMonitorMuonSystemMap1D::MyResidual.rho, DAClusterizerInZ_vect::vertex_t.rho, HGCalCLUEAlgoT< TILE, STRATEGY >::CellsOnLayer.rho, HGCalImagingAlgo::Hexel.rho, DAClusterizerInZT_vect::vertex_t.rho, and objects.JetAnalyzer.JetAnalyzer.rho.

Referenced by Lepton.Lepton.relIsoFromEA().

14  def absIsoFromEA(self, area='04'):
15  '''Calculate Isolation using the effective area approach.'''
16  photonIso = self.photonIso()
17  offset = self.rho*getattr(self,"EffectiveArea"+area)
18  return self.chargedHadronIso()+max(0.,photonIso+self.neutralHadronIso()-offset)
19 

◆ absIsoR()

def Lepton.Lepton.absIsoR (   self,
  R = 0.4,
  dBetaFactor = 0,
  allCharged = False 
)
Isolation in given cone with optional delta-beta subtraction.

Definition at line 28 of file Lepton.py.

References Muon.Muon.chargedAllIsoR(), Electron.Electron.chargedAllIsoR(), Muon.Muon.chargedHadronIsoR(), Electron.Electron.chargedHadronIsoR(), SiStripPI.max, Muon.Muon.neutralHadronIsoR(), Electron.Electron.neutralHadronIsoR(), Muon.Muon.photonIsoR(), Electron.Electron.photonIsoR(), Muon.Muon.puChargedHadronIsoR(), and Electron.Electron.puChargedHadronIsoR().

Referenced by Lepton.Lepton.relIso(), and Lepton.Lepton.relIsoR().

28  def absIsoR(self, R=0.4, dBetaFactor=0, allCharged=False):
29  '''Isolation in given cone with optional delta-beta subtraction.'''
30  if dBetaFactor>0 and self.puChargedHadronIsoR(R)<0:
31  raise ValueError('If you want to use dbeta corrections, you must make sure that the pu charged hadron iso is available. This should never happen')
32  neutralIso = self.neutralHadronIsoR(R) + self.photonIsoR(R)
33  corNeutralIso = neutralIso - dBetaFactor * self.puChargedHadronIsoR(R)
34  charged = self.chargedHadronIsoR(R)
35  if allCharged:
36  charged = self.chargedAllIsoR(R)
37  return charged + max(corNeutralIso, 0.)
38 

◆ ip3D()

def Lepton.Lepton.ip3D (   self)
3D impact parameter value.

Definition at line 5 of file Lepton.py.

References funct.abs(), pat::Electron.dB(), pat::Muon.dB(), pat::Electron.PV3D, and pat::Muon.PV3D.

5  def ip3D(self):
6  '''3D impact parameter value.'''
7  return abs(self.dB(self.PV3D))
8 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

◆ lostInner()

def Lepton.Lepton.lostInner (   self)

Definition at line 42 of file Lepton.py.

References reco::CaloMuon.innerTrack(), reco::Muon.innerTrack(), pat::Muon.innerTrack(), HcalRaddamMuon.innerTrack, and TrackCollections2monitor_cff.numberOfLostHits.

42  def lostInner(self):
43  if hasattr(self.innerTrack(),"trackerExpectedHitsInner") :
44  return self.innerTrack().trackerExpectedHitsInner().numberOfLostHits()
45  else :
46  return self.innerTrack().hitPattern().numberOfLostHits(ROOT.reco.HitPattern.MISSING_INNER_HITS)
47 

◆ p4WithFSR()

◆ relIso()

def Lepton.Lepton.relIso (   self,
  dBetaFactor = 0,
  allCharged = 0 
)
Relative isolation with default cone size of 0.4.

Definition at line 23 of file Lepton.py.

References Lepton.Lepton.absIsoR(), 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(), reco::VoronoiBackground.pt(), ScoutingParticle.pt(), l1ScoutingRun3::ugmt::masksMuon.pt, l1ScoutingRun3::ugmt::shiftsMuon.pt, L1MuCSCPtLut.pt(), l1t::Vertex.pt(), Phase2L1GMT::MuonROI.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, HLTGenValObject.pt(), ResonanceBuilder.Resonance.pt(), MTDTrackQualityMVA.pt, Phase2L1GMT::ConvertedTTTrack.pt(), DTMuonLocalAlignment.pt, l1thgcfirmware::HGCalCluster.pt(), PipeEntry< T >.pt(), antiElecIDMVA6_blocks::TauVars.pt, l1ct::tdr_regionizer::PipeEntry< T >.pt(), L1Analysis::L1AnalysisRecoTauDataFormat.pt, mkfit::IdxChi2List.pt, l1thgcfirmware::HGCalTriggerCell.pt(), L1Analysis::L1AnalysisRecoElectronDataFormat.pt, Phase2L1GMT::PreTrackMatchedMuon.pt(), L1Analysis::L1AnalysisRecoMuon2DataFormat.pt, PatTrackAnalyzer::Plots.pt, PGlobalSimHit::Trk.pt, HepLine3D.pt(), tmtt::TP.pt(), mtd::MTDGeomUtil.pt(), btagbtvdeep::ChargedCandidateFeatures.pt, trigger::TriggerObject.pt(), jpt::Map.pt(), l1gt::ThreeVector.pt, PhysicsObjectsMonitor.pt, trklet::Track.pt(), RecoVertex< L1Track >.pt(), RecoVertex<>.pt(), l1tVertexFinder::RecoVertex< T >.pt(), TtFullHadSignalSel.pt(), reco::CaloMuon.pt(), BSTrkParameters.pt(), MuScleFitMuon.pt(), trklet::L1TStub.pt(), PTrajectoryStateOnDet.pt(), reco::ForwardProton.pt(), SiStripLAProfileBooker.pt, l1tVertexFinder::VertexNTupler::GenJetsBranchData.pt, Run3ScoutingCaloJet.pt(), ScoutingCaloJet.pt(), ScoutingElectron.pt(), Run3ScoutingParticle.pt(), TrackBranch.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, reco::Candidate.pt(), l1tVertexFinder::VertexNTupler::RecoTracksBranchData.pt, egHLT::OffPho.pt(), MuonResidualsFitter::MuonAlignmentTreeRow.pt, reco::PFCluster.pt(), ScoutingMuon.pt(), tmtt::KFTrackletTrack.pt(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.pt, reco::Particle.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), Run3ScoutingElectron.pt(), l1tp2::DigitizedClusterCorrelator.pt(), CaloParticle.pt(), TrackStruct::TrackParameterStruct.pt, Primary4DVertexValidation::recoPrimaryVertex.pt, l1ct::tdr_regionizer::BufferEntry< T >.pt(), l1tVertexFinder::VertexNTupler::TrueTracksBranchData.pt, SimCluster.pt(), reco::ParticleState.pt(), JetAnalyzer_HeavyIons_matching::MyJet.pt, GenMuonGMTPair.pt(), AlignmentMonitorMuonSystemMap1D::MyTrack.pt, TrackingParticle.pt(), HGCalClusterT< C >.pt(), reco::LeafCandidate.pt(), CandidateWithRef< Ref >.pt(), l1t::TkJetWord.pt(), tmtt::L1track3D.pt(), L1Analysis::L1AnalysisRecoMuonDataFormat.pt, l1t::VertexWord.pt(), PtHatRapReweightUserHook.pt, l1ct::tdr_regionizer::Buffer< T >.pt(), Run3ScoutingMuon.pt(), CosmicRateAnalyzer.pt, MuonGmtPair.pt(), pixelTrack::QualityCutsT< TrackerTraits, pixelTopology::isPhase1Topology< TrackerTraits > >.pt, L1TPhase2CorrelatorOffline::McVars.pt, RawParticle.pt(), pat::MET::Vector2.pt(), l1t::EMTFTrack.pt, L1TPhase2CorrelatorOffline::RecoVars.pt, tmtt::L1fittedTrack.pt(), reco::TrackBase.pt(), pat::PackedGenParticle.pt(), p2eg::SimpleCaloHit.pt(), L1CaloJetProducer::simpleL1obj.pt(), L1EGCrystalClusterEmulatorProducer::SimpleCaloHit.pt(), pat::PackedCandidate.pt(), PMuonSimHit::Trk.pt, and PTrackerSimHit::Trk.pt.

Referenced by Lepton.Lepton.__str__().

23  def relIso(self, dBetaFactor=0, allCharged=0):
24  '''Relative isolation with default cone size of 0.4.'''
25  rel = self.absIsoR(dBetaFactor=dBetaFactor, allCharged=allCharged)/self.pt()
26  return rel
27 

◆ relIsoFromEA()

def Lepton.Lepton.relIsoFromEA (   self,
  area = '04' 
)

Definition at line 20 of file Lepton.py.

References Lepton.Lepton.absIsoFromEA(), 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(), reco::VoronoiBackground.pt(), ScoutingParticle.pt(), l1ScoutingRun3::ugmt::masksMuon.pt, l1ScoutingRun3::ugmt::shiftsMuon.pt, L1MuCSCPtLut.pt(), l1t::Vertex.pt(), Phase2L1GMT::MuonROI.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, HLTGenValObject.pt(), ResonanceBuilder.Resonance.pt(), MTDTrackQualityMVA.pt, Phase2L1GMT::ConvertedTTTrack.pt(), DTMuonLocalAlignment.pt, l1thgcfirmware::HGCalCluster.pt(), PipeEntry< T >.pt(), antiElecIDMVA6_blocks::TauVars.pt, l1ct::tdr_regionizer::PipeEntry< T >.pt(), L1Analysis::L1AnalysisRecoTauDataFormat.pt, mkfit::IdxChi2List.pt, l1thgcfirmware::HGCalTriggerCell.pt(), L1Analysis::L1AnalysisRecoElectronDataFormat.pt, Phase2L1GMT::PreTrackMatchedMuon.pt(), L1Analysis::L1AnalysisRecoMuon2DataFormat.pt, PatTrackAnalyzer::Plots.pt, PGlobalSimHit::Trk.pt, HepLine3D.pt(), tmtt::TP.pt(), mtd::MTDGeomUtil.pt(), btagbtvdeep::ChargedCandidateFeatures.pt, trigger::TriggerObject.pt(), jpt::Map.pt(), l1gt::ThreeVector.pt, PhysicsObjectsMonitor.pt, trklet::Track.pt(), RecoVertex< L1Track >.pt(), RecoVertex<>.pt(), l1tVertexFinder::RecoVertex< T >.pt(), TtFullHadSignalSel.pt(), reco::CaloMuon.pt(), BSTrkParameters.pt(), MuScleFitMuon.pt(), trklet::L1TStub.pt(), PTrajectoryStateOnDet.pt(), reco::ForwardProton.pt(), SiStripLAProfileBooker.pt, l1tVertexFinder::VertexNTupler::GenJetsBranchData.pt, Run3ScoutingCaloJet.pt(), ScoutingCaloJet.pt(), ScoutingElectron.pt(), Run3ScoutingParticle.pt(), TrackBranch.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, reco::Candidate.pt(), l1tVertexFinder::VertexNTupler::RecoTracksBranchData.pt, egHLT::OffPho.pt(), MuonResidualsFitter::MuonAlignmentTreeRow.pt, reco::PFCluster.pt(), ScoutingMuon.pt(), tmtt::KFTrackletTrack.pt(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.pt, reco::Particle.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), Run3ScoutingElectron.pt(), l1tp2::DigitizedClusterCorrelator.pt(), CaloParticle.pt(), TrackStruct::TrackParameterStruct.pt, Primary4DVertexValidation::recoPrimaryVertex.pt, l1ct::tdr_regionizer::BufferEntry< T >.pt(), l1tVertexFinder::VertexNTupler::TrueTracksBranchData.pt, SimCluster.pt(), reco::ParticleState.pt(), JetAnalyzer_HeavyIons_matching::MyJet.pt, GenMuonGMTPair.pt(), AlignmentMonitorMuonSystemMap1D::MyTrack.pt, TrackingParticle.pt(), HGCalClusterT< C >.pt(), reco::LeafCandidate.pt(), CandidateWithRef< Ref >.pt(), l1t::TkJetWord.pt(), tmtt::L1track3D.pt(), L1Analysis::L1AnalysisRecoMuonDataFormat.pt, l1t::VertexWord.pt(), PtHatRapReweightUserHook.pt, l1ct::tdr_regionizer::Buffer< T >.pt(), Run3ScoutingMuon.pt(), CosmicRateAnalyzer.pt, MuonGmtPair.pt(), pixelTrack::QualityCutsT< TrackerTraits, pixelTopology::isPhase1Topology< TrackerTraits > >.pt, L1TPhase2CorrelatorOffline::McVars.pt, RawParticle.pt(), pat::MET::Vector2.pt(), l1t::EMTFTrack.pt, L1TPhase2CorrelatorOffline::RecoVars.pt, tmtt::L1fittedTrack.pt(), reco::TrackBase.pt(), pat::PackedGenParticle.pt(), p2eg::SimpleCaloHit.pt(), L1CaloJetProducer::simpleL1obj.pt(), L1EGCrystalClusterEmulatorProducer::SimpleCaloHit.pt(), pat::PackedCandidate.pt(), PMuonSimHit::Trk.pt, and PTrackerSimHit::Trk.pt.

20  def relIsoFromEA(self, area='04'):
21  return self.absIsoFromEA(area)/self.pt()
22 

◆ relIsoR()

def Lepton.Lepton.relIsoR (   self,
  R = 0.4,
  dBetaFactor = 0,
  allCharged = False 
)

Definition at line 39 of file Lepton.py.

References Lepton.Lepton.absIsoR(), 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(), reco::VoronoiBackground.pt(), ScoutingParticle.pt(), l1ScoutingRun3::ugmt::masksMuon.pt, l1ScoutingRun3::ugmt::shiftsMuon.pt, L1MuCSCPtLut.pt(), l1t::Vertex.pt(), Phase2L1GMT::MuonROI.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, HLTGenValObject.pt(), ResonanceBuilder.Resonance.pt(), MTDTrackQualityMVA.pt, Phase2L1GMT::ConvertedTTTrack.pt(), DTMuonLocalAlignment.pt, l1thgcfirmware::HGCalCluster.pt(), PipeEntry< T >.pt(), antiElecIDMVA6_blocks::TauVars.pt, l1ct::tdr_regionizer::PipeEntry< T >.pt(), L1Analysis::L1AnalysisRecoTauDataFormat.pt, mkfit::IdxChi2List.pt, l1thgcfirmware::HGCalTriggerCell.pt(), L1Analysis::L1AnalysisRecoElectronDataFormat.pt, Phase2L1GMT::PreTrackMatchedMuon.pt(), L1Analysis::L1AnalysisRecoMuon2DataFormat.pt, PatTrackAnalyzer::Plots.pt, PGlobalSimHit::Trk.pt, HepLine3D.pt(), tmtt::TP.pt(), mtd::MTDGeomUtil.pt(), btagbtvdeep::ChargedCandidateFeatures.pt, trigger::TriggerObject.pt(), jpt::Map.pt(), l1gt::ThreeVector.pt, PhysicsObjectsMonitor.pt, trklet::Track.pt(), RecoVertex< L1Track >.pt(), RecoVertex<>.pt(), l1tVertexFinder::RecoVertex< T >.pt(), TtFullHadSignalSel.pt(), reco::CaloMuon.pt(), BSTrkParameters.pt(), MuScleFitMuon.pt(), trklet::L1TStub.pt(), PTrajectoryStateOnDet.pt(), reco::ForwardProton.pt(), SiStripLAProfileBooker.pt, l1tVertexFinder::VertexNTupler::GenJetsBranchData.pt, Run3ScoutingCaloJet.pt(), ScoutingCaloJet.pt(), ScoutingElectron.pt(), Run3ScoutingParticle.pt(), TrackBranch.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, reco::Candidate.pt(), l1tVertexFinder::VertexNTupler::RecoTracksBranchData.pt, egHLT::OffPho.pt(), MuonResidualsFitter::MuonAlignmentTreeRow.pt, reco::PFCluster.pt(), ScoutingMuon.pt(), tmtt::KFTrackletTrack.pt(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.pt, reco::Particle.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), Run3ScoutingElectron.pt(), l1tp2::DigitizedClusterCorrelator.pt(), CaloParticle.pt(), TrackStruct::TrackParameterStruct.pt, Primary4DVertexValidation::recoPrimaryVertex.pt, l1ct::tdr_regionizer::BufferEntry< T >.pt(), l1tVertexFinder::VertexNTupler::TrueTracksBranchData.pt, SimCluster.pt(), reco::ParticleState.pt(), JetAnalyzer_HeavyIons_matching::MyJet.pt, GenMuonGMTPair.pt(), AlignmentMonitorMuonSystemMap1D::MyTrack.pt, TrackingParticle.pt(), HGCalClusterT< C >.pt(), reco::LeafCandidate.pt(), CandidateWithRef< Ref >.pt(), l1t::TkJetWord.pt(), tmtt::L1track3D.pt(), L1Analysis::L1AnalysisRecoMuonDataFormat.pt, l1t::VertexWord.pt(), PtHatRapReweightUserHook.pt, l1ct::tdr_regionizer::Buffer< T >.pt(), Run3ScoutingMuon.pt(), CosmicRateAnalyzer.pt, MuonGmtPair.pt(), pixelTrack::QualityCutsT< TrackerTraits, pixelTopology::isPhase1Topology< TrackerTraits > >.pt, L1TPhase2CorrelatorOffline::McVars.pt, RawParticle.pt(), pat::MET::Vector2.pt(), l1t::EMTFTrack.pt, L1TPhase2CorrelatorOffline::RecoVars.pt, tmtt::L1fittedTrack.pt(), reco::TrackBase.pt(), pat::PackedGenParticle.pt(), p2eg::SimpleCaloHit.pt(), L1CaloJetProducer::simpleL1obj.pt(), L1EGCrystalClusterEmulatorProducer::SimpleCaloHit.pt(), pat::PackedCandidate.pt(), PMuonSimHit::Trk.pt, and PTrackerSimHit::Trk.pt.

39  def relIsoR(self, R=0.4, dBetaFactor=0, allCharged=False):
40  return self.absIsoR(R, dBetaFactor, allCharged)/self.pt()
41 

◆ sip3D()

def Lepton.Lepton.sip3D (   self)
3D impact parameter significance.

Definition at line 9 of file Lepton.py.

References funct.abs(), pat::Electron.dB(), pat::Muon.dB(), pat::Electron.edB(), pat::Muon.edB(), pat::Electron.PV3D, and pat::Muon.PV3D.

9  def sip3D(self):
10  '''3D impact parameter significance.'''
11  db, edb = self.dB(self.PV3D), self.edB(self.PV3D)
12  return abs(db/edb) if edb > 0 else 999.
13 
Abs< T >::type abs(const T &t)
Definition: Abs.h:22