CMS 3D CMS Logo

List of all members | Public Member Functions
ntupleDataFormat.Track Class Reference
Inheritance diagram for ntupleDataFormat.Track:
ntupleDataFormat._Object ntupleDataFormat._RecoHitAdaptor ntupleDataFormat._TrackingParticleMatchAdaptor

Public Member Functions

def __init__ (self, tree, index)
 
def dxyPull (self)
 
def dzPull (self)
 
def phiPull (self)
 
def ptPull (self)
 
def seed (self)
 
def thetaPull (self)
 
def vertex (self)
 
- Public Member Functions inherited from ntupleDataFormat._Object
def __getattr__ (self, attr)
 
def __init__ (self, tree, index, prefix)
 
def index (self)
 
def isValid (self)
 
- Public Member Functions inherited from ntupleDataFormat._RecoHitAdaptor
def __init__ (self)
 
def gluedHits (self)
 
def hits (self)
 
def invalidHits (self)
 
def phase2OTHits (self)
 
def pixelHits (self)
 
def stripHits (self)
 
- Public Member Functions inherited from ntupleDataFormat._TrackingParticleMatchAdaptor
def __init__ (self)
 
def bestMatchingTrackingParticle (self)
 
def bestMatchingTrackingParticleFromFirstHit (self)
 
def bestMatchingTrackingParticleFromFirstHitNormalizedChi2 (self)
 
def bestMatchingTrackingParticleFromFirstHitShareFrac (self)
 
def bestMatchingTrackingParticleFromFirstHitShareFracSimClusterDenom (self)
 
def bestMatchingTrackingParticleFromFirstHitShareFracSimDenom (self)
 
def bestMatchingTrackingParticleNormalizedChi2 (self)
 
def bestMatchingTrackingParticleShareFrac (self)
 
def bestMatchingTrackingParticleShareFracSimClusterDenom (self)
 
def bestMatchingTrackingParticleShareFracSimDenom (self)
 
def matchedTrackingParticleInfos (self)
 
def nMatchedTrackingParticles (self)
 

Detailed Description

Class presenting a track.

Definition at line 669 of file ntupleDataFormat.py.

Constructor & Destructor Documentation

def ntupleDataFormat.Track.__init__ (   self,
  tree,
  index 
)
Constructor.

Arguments:
tree  -- TTree object
index -- Index of the track

Definition at line 671 of file ntupleDataFormat.py.

671  def __init__(self, tree, index):
672  """Constructor.
673 
674  Arguments:
675  tree -- TTree object
676  index -- Index of the track
677  """
678  super(Track, self).__init__(tree, index, "trk")
679 
def __init__(self, tree, index)

Member Function Documentation

def ntupleDataFormat.Track.dxyPull (   self)
def ntupleDataFormat.Track.dzPull (   self)

Definition at line 714 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), btagbtvdeep::TrackPairFeatures.dz, btagbtvdeep::SeedingTrackFeatures.dz, tauImpactParameter::TrackParticle.dz, egammaisolation::EgammaTrackSelector.dz, RigidBodyAlignmentParameters.dz, HGCalParameters::hgtrap.dz, btagbtvdeep::SeedingTrackInfoBuilder.dz(), BowedSurfaceAlignmentDerivatives.dz, dnn_inputs_2017v1.dz, BowedSurfaceAlignmentParameters.dz, DTMuonSLToSL.dz, PreshowerStrip.dz(), IdealZDCTrapezoid.dz(), DDHCalXtalAlgo.dz, DDHCalTestBeamAlgo.dz, IdealObliquePrism.dz(), IdealZPrism.dz(), Tau.Tau.dz(), IdealCastorTrapezoid.dz(), pat::VertexAssociation.dz(), DTMuonMillepede.dz, DTSegmentResult.dz, PrimaryVertexMonitor.dz, ScoutingElectron.dz(), Muon.Muon.dz(), EcalTrapezoidParameters.dz(), DTHitResult.dz, TopMonitor::PVcut.dz, TrackerValidationVariables::AVTrackStruct.dz, pat::IsolatedTrack.dz(), ScoutingMuon.dz(), TrackStruct::TrackParameterStruct.dz, reco::Conversion.dz(), MuonGeometryArrange::MGACollection.dz, CosmicRateAnalyzer.dz, reco::TrackBase.dz(), pat::PackedGenParticle.dz(), Electron.Electron.dz(), pat::PackedCandidate.dz(), PrimaryVertexMonitor.dzErr, and TrackStruct::TrackParameterStruct.dzErr.

714  def dzPull(self):
715  tp = self.bestMatchingTrackingParticle()
716  if tp is None:
717  return None
718  return (self.dz() - tp.pca_dz())/self.dzErr()
719 
def ntupleDataFormat.Track.phiPull (   self)

Definition at line 702 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), eetest::CandForTest.phi(), btagbtvdeep::JetFeatures.phi, btagbtvdeep::TrackPairFeatures.phi, TrackingRecHitGlobalState.phi, btagbtvdeep::SeedingTrackFeatures.phi, omtf::DtDataWord64.phi(), GEMVfatStatusDigi.phi(), res::HelperElectron.phi(), res::HelperMuon.phi(), omtf::MuonDataWord64.phi(), res::HelperJet.phi(), tauImpactParameter::TrackParticle.phi, TwoBodyDecayParameters.phi, HcalCellType::HcalCell.phi, AnnealingSchedule.phi(), res::HelperMET.phi(), TwoBodyDecayDerivatives.phi, CommonMETData.phi, ScoutingParticle.phi(), ThirdHitPredictionFromCircle.phi(), SimG4HcalHitCluster.phi(), ConfigurableAnnealing.phi(), Geom::Polar2Cartesian< T >.phi(), jetData.phi, HcalNumberingFromDDD::HcalID.phi, CaloHit.phi(), GeometricAnnealing.phi(), Residual1DHit.phi, DeterministicAnnealing.phi(), MySimTrack.phi, HcalChannelId.phi, SuperClusterHelper.phi(), RecoObj.phi, ScoutingPhoton.phi(), RecHitsSortedInPhi::HitWithPhi.phi(), btagbtvdeep::SeedingTrackInfoBuilder.phi(), MatchStruct.phi, L1Analysis::L1AnalysisRecoClusterDataFormat.phi, L2TauPixelTrackMatch::TinyTrack.phi, HcalDDDRecConstants::HcalID.phi, HGCal_helpers::Coordinates.phi, L1GctMet::etmiss_vec.phi, EcalClusterEnergyDeposition.phi, ImpactPoint.phi, PtEtaPhiMass.phi(), reco::isodeposit::Direction.phi(), correctionValue_class.phi, EleRelPoint.phi(), DDHCalEndcapModuleAlgo::HcalEndcapPar.phi, HEChannel.phi, egHLT::BinData.phi, DDTrackerPhiAlgo.phi, LMapRow.phi, L1Analysis::L1AnalysisL1CaloClusterDataFormat.phi, DTMuonLocalAlignment.phi, RotationType.phi(), GloballyPositioned< U >.phi(), DDHCalTestBeamAlgo.phi, GloballyPositioned< float >.phi(), GloballyPositioned< align::Scalar >.phi(), GloballyPositioned< T >.phi(), l1t::HGCalTowerCoord.phi, DDCutTubsFromPoints::Section.phi, DDTrackerLinear.phi, Geom::Cylindrical2Cartesian< T >.phi(), L1Analysis::L1AnalysisL1CaloTowerDataFormat.phi, L1Analysis::L1AnalysisRecoTauDataFormat.phi, ResonanceBuilder.Resonance.phi(), BeamProfileVtxGenerator.phi(), PatTrackAnalyzer::Plots.phi, HcalTestHistoClass::Hit.phi, L1Analysis::L1AnalysisRecoElectronDataFormat.phi, PHcalTB04Info.phi(), L1MuDTChambPhDigi.phi(), L1Phase2MuDTPhDigi.phi(), HcalFlexiHardcodeGeometryLoader::HBHOCellParameters.phi, Point2DBase< T, FrameTag >.phi(), Vector2DBase< T, FrameTag >.phi(), LASCoordinateSet.phi, L1Analysis::L1AnalysisRecoMuon2DataFormat.phi, PHcalTB06Info::Hit.phi, PV2DBase< double, PointTag, LocalTag >.phi(), PV2DBase< float, PointTag, LocalTag >.phi(), PV2DBase< T, VectorTag, FrameTag >.phi(), PV2DBase< float, VectorTag, GlobalTag >.phi(), PV2DBase< T, PointTag, FrameTag >.phi(), Vector2DBase< T, Frame >.phi(), PV2DBase< T, PVType, FrameType >.phi(), Point2DBase< Scalar, LocalTag >.phi(), Point2DBase< U, FrameTag >.phi(), Vector2DBase< U, FrameTag >.phi(), Point2DBase< T, Frame >.phi(), Vector2DBase< U, Frame >.phi(), Point2DBase< U, Frame >.phi(), reco::GhostTrackPrediction.phi(), CSCSP_MBblock.phi(), HGCalRecHitValidation::HitsInfo.phi, TrackerValidationVariables::AVHitStruct.phi, RhoEtaPhi.phi(), FWPFCandidateDetailView.phi(), trigger::TriggerObject.phi(), l1t::emtf::RPC.phi, HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.phi(), PFECALSuperClusterAlgo::CalibratedPFCluster.phi(), reco::CastorCell.phi(), cms::MinBias.phi, PGlobalSimHit::CalHit.phi, HGCalSimHitStudy::hitsinfo.phi, HLLHCEvtVtxGenerator.phi, MaterialBudgetHcalHistos.phi, HCalEndcapModuleAlgo::HcalEndcapPar.phi, SimpleL1MuGMTCand.phi(), QcdLowPtDQM::Pixel.phi(), metsig::SigInputObj.phi, IsolatedPixelTrackCandidateProducer::seedAtEC.phi, TauL1TPair.phi(), XMLProcessor::_LMapRowHBEF.phi, MuScleFitMuon.phi(), L1GctEtMiss.phi(), CSCSP_SPblock.phi(), PerigeeTrajectoryParameters.phi(), LMapDetId.phi, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.phi, PGlobalSimHit::FwdHit.phi, PHcalTB06Info.phi(), reco::CaloMuon.phi(), L1GctHtMiss.phi(), ScoutingCaloJet.phi(), ScoutingElectron.phi(), ValidationMisalignedTracker.phi, Point3DBase< U, Frame >.phi(), Point3DBase< U, GlobalTag >.phi(), Vector3DBase< T, FrameTag >.phi(), Vector3DBase< float, GlobalTag >.phi(), PV3DBase< T, PointTag, GlobalTag >.phi(), PV3DBase< long double, PointTag, GlobalTag >.phi(), Vector3DBase< double, LocalTag >.phi(), Vector3DBase< U, Frame >.phi(), Vector3DBase< U, FrameTag >.phi(), Point3DBase< T, Frame >.phi(), Vector3DBase< T, Frame >.phi(), Point3DBase< U, FrameTag >.phi(), HTrackVariables.phi(), PV3DBase< Scalar, PointTag, GlobalTag >.phi(), PV3DBase< float, VectorTag, LocalTag >.phi(), PV3DBase< float, PointTag, LocalTag >.phi(), PV3DBase< Scalar, VectorTag, GlobalTag >.phi(), PV3DBase< float, PointTag, GlobalTag >.phi(), PV3DBase< T, VectorTag, FrameTag >.phi(), PV3DBase< T, PointTag, FrameTag >.phi(), PV3DBase< align::Scalar, PointTag, GlobalTag >.phi(), Point3DBase< U, LocalTag >.phi(), Vector3DBase< U, LocalTag >.phi(), Vector3DBase< U, GlobalTag >.phi(), PV3DBase< T, PVType, FrameType >.phi(), Thrust::ThetaPhi.phi, reco::PattRecoPeak< Real >.phi(), reco::PattRecoPeak< float >.phi(), Geom::Spherical2Cartesian< T >.phi(), PattRecoPeak< Real >.phi(), PatPhotonSimpleAnalyzer::struct_recPhoton.phi, PhotonFix.phi(), PixelUnpackingRegions::Module.phi, CurvilinearTrajectoryParameters.phi(), HGCalSimHitValidation::hitsinfo.phi, L1MuDTTrack.phi(), L1MuKBMTCombinedStub.phi(), PGlobalSimHit::BrlHit.phi, gem::VFATdata.phi(), L1MuBMTrack.phi(), reco::IsoDeposit.phi(), reco::CastorJet.phi(), reco::CastorEgamma.phi(), PdtPdgMini.phi, Phi< T >.phi(), Phi< U >.phi(), Geom::Phi< T1, Range >.phi(), MuonDTLocalMillepedeAlgorithm.phi, Phi< double > deltaphi double.phi(), Phi< double >.phi(), Phi< T1, Range >.phi(), Phi< double, Geom::MinusPiToPi >.phi(), Geom::Phi< float >.phi(), Phi< float, Geom::MinusPiToPi >.phi(), HcalFlexiHardcodeGeometryLoader::HECellParameters.phi, BPhysicsValidation::ParticleMonitor.phi, L1GctMet::etmiss_internal.phi, EgammaTowerIsolationNew< NC >.phi, EcalTrapezoidParameters.phi(), L1TDEMON.phi, TrajSeedMatcher::SCHitMatch.phi(), Basic2DVector< float >.phi(), Basic2DVector< Scalar >.phi(), Basic2DVector< double > thc.phi(), Basic2DVector< U >.phi(), Lepton.phi, Basic2DVector< double >.phi(), Basic2DVector< T >.phi(), HcalTB02HistoClass.phi(), TTTrack< T >.phi(), TTTrack< Ref_Phase2TrackerDigi_ >.phi(), L1Analysis::L1AnalysisRecoJetDataFormat.phi, ScoutingPFJet.phi(), DDTrap.phi(), RecHitsSortedInPhi.phi(), cms::dd::DDTrap.phi(), HcalTB02Analysis.phi, L1TdeGCT.phi, L1MuDTTrackSegPhi.phi(), TrackerValidationVariables::AVTrackStruct.phi, GeometricTimingDet.phi(), L1GctInternJetData.phi(), cms::Analyzer_minbias.phi, L1MuBMTrackSegPhi.phi(), reco::Candidate.phi(), AnalyzerMinbias.phi, DTChambPhSegm.phi(), egHLT::OffPho.phi(), PhotonIDSimpleAnalyzer::struct_recPhoton.phi, Basic3DVector< long double >.phi(), ScoutingMuon.phi(), DTSectCollPhSegm.phi(), reco::CastorCluster.phi(), EcalTestPulseAnalyzer.phi, DTRecSegment4D.phi, EcalABAnalyzer.phi, GeometricDet.phi(), reco::Particle.phi(), EcalPerEvtLaserAnalyzer.phi, SingleParticleEvent.phi(), egHLT::OffEle.phi(), TrackStruct::TrackParameterStruct.phi, MuonGeometryArrange::MGACollection.phi, Basic3DVector< double > momAtVtx Basic3DVector< double > vert.phi(), Basic3DVector< float > pos GlobalPoint.phi(), Basic3DVector< double >.phi(), Basic3DVector< float > seedCentre.phi(), Basic3DVector< U >.phi(), Basic3DVector< Scalar >.phi(), Basic3DVector< align::Scalar >.phi(), Basic3DVector< float > tcCentre float.phi(), Basic3DVector< double > momAtVtx Basic3DVector< double >.phi(), Basic3DVector< float > seedCentre float.phi(), Basic3DVector< float > mom GlobalVector.phi(), Basic3DVector< T >.phi(), Basic3DVector< float > constituentCentre Basic3DVector< float >.phi(), Basic3DVector< float >.phi(), pair< bool, reco::TrackBase::ParameterVector >.phi(), CaloParticle.phi(), AlignmentMonitorMuonSystemMap1D::MyResidual.phi, reco::ParticleState.phi(), SimCluster.phi(), JetAnalyzer_HeavyIons_matching::MyJet.phi, CosmicRateAnalyzer.phi, TrackingParticle.phi(), CandidateWithRef< Ref >.phi(), HGCalClusterT< C >.phi(), HGCalCLUEAlgo::CellsOnLayer.phi, reco::LeafCandidate.phi(), reco::IsoDeposit::const_iterator.phi(), HitDoublets.phi(), L1Analysis::L1AnalysisRecoMuonDataFormat.phi, HcalLogicalMapGenerator.phi, EcalLaserAnalyzer.phi, EcalLaserAnalyzer2.phi, reco::CaloCluster.phi(), MuonGmtPair.phi(), SiPixelErrorEstimation.phi, pat::MET::Vector2.phi(), RawParticle.phi(), reco::TrackBase.phi(), pat::PackedGenParticle.phi(), EcalClusterToolsT< noZS >::EcalClusterEnergyDeposition.phi, EcalSelectiveReadoutValidation::energiesEb_t.phi, DDParallelepiped.phi(), EcalSelectiveReadoutValidation::energiesEe_t.phi, SiPixelTrackingRecHitsValid.phi, pat::PackedCandidate.phi(), CellIndex.phi, PMuonSimHit::Trk.phi, PTrackerSimHit::Trk.phi, and TrackStruct::TrackParameterStruct.phiErr.

702  def phiPull(self):
703  tp = self.bestMatchingTrackingParticle()
704  if tp is None:
705  return None
706  return (self.phi() - tp.pca_phi())/self.phiErr()
707 
def ntupleDataFormat.Track.ptPull (   self)

Definition at line 690 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), eetest::CandForTest.pt(), btagbtvdeep::TrackPairFeatures.pt, btagbtvdeep::JetFeatures.pt, btagbtvdeep::SecondaryVertexFeatures.pt, mypt.pt, btagbtvdeep::SeedingTrackFeatures.pt, res::HelperElectron.pt(), res::HelperMuon.pt(), res::HelperJet.pt(), ScoutingParticle.pt(), reco::VoronoiBackground.pt(), L1MuCSCPtLut.pt(), dnn_inputs_2017v1.pt, Residual1DHit.pt, PtHatReweightUserHook.pt, ScoutingPhoton.pt(), MySimTrack.pt, btagbtvdeep::SeedingTrackInfoBuilder.pt(), MatchStruct.pt, ALILine.pt(), RecoObj.pt, L2TauPixelTrackMatch::TinyTrack.pt, PtEtaPhiMass.pt(), reco::MuonMETCorrectionData.pt(), tauImpactParameter::LorentzVectorParticle.pt, ResonanceBuilder.Resonance.pt(), DTMuonLocalAlignment.pt, L1Analysis::L1AnalysisRecoTauDataFormat.pt, L1Analysis::L1AnalysisRecoElectronDataFormat.pt, ZMuMuIsolationAnalyzer.pt, L1Analysis::L1AnalysisRecoMuon2DataFormat.pt, PatTrackAnalyzer::Plots.pt, PGlobalSimHit::Trk.pt, HepLine3D.pt(), jpt::Map.pt(), PhysicsObjectsMonitor.pt, trigger::TriggerObject.pt(), SiStripLAProfileBooker.pt, TtFullHadSignalSel.pt(), reco::CaloMuon.pt(), BSTrkParameters.pt(), MuScleFitMuon.pt(), PTrajectoryStateOnDet.pt(), TauL1TPair.pt(), ScoutingCaloJet.pt(), ScoutingElectron.pt(), goodseedhelpers::HeavyObjectCache.pt, reco::ForwardProton.pt(), ValidationMisalignedTracker.pt, SimpleL1MuGMTCand.pt(), L1MuDTTrack.pt(), HTrackVariables.pt(), L1MuBMTrack.pt(), susybsm::HSCParticle.pt(), QualityCutsAnalyzer::histogram_element_t.pt, TrajectoryStateClosestToPoint.pt(), MuonDTLocalMillepedeAlgorithm.pt, BPhysicsValidation::ParticleMonitor.pt, reco::PreId.pt(), Lepton.pt, ScoutingPFJet.pt(), TrackerValidationVariables::AVTrackStruct.pt, reco::Candidate.pt(), egHLT::OffPho.pt(), MuonResidualsFitter::MuonAlignmentTreeRow.pt, ScoutingMuon.pt(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.pt, reco::Particle.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), reco::PFCluster.pt(), TrackStruct::TrackParameterStruct.pt, CaloParticle.pt(), AlignmentMonitorMuonSystemMap1D::MyTrack.pt, SimCluster.pt(), reco::ParticleState.pt(), CosmicRateAnalyzer.pt, JetAnalyzer_HeavyIons_matching::MyJet.pt, TrackingParticle.pt(), HGCalClusterT< C >.pt(), reco::LeafCandidate.pt(), CandidateWithRef< Ref >.pt(), L1Analysis::L1AnalysisRecoMuonDataFormat.pt, PtHatRapReweightUserHook.pt, GoodSeedProducer.pt, MuonGmtPair.pt(), l1t::EMTFTrack.pt, pat::MET::Vector2.pt(), RawParticle.pt(), reco::TrackBase.pt(), pat::PackedGenParticle.pt(), pat::PackedCandidate.pt(), PMuonSimHit::Trk.pt, PTrackerSimHit::Trk.pt, PatTrackAnalyzer::Plots.ptErr, TrackStruct::TrackParameterStruct.ptErr, Muon.Muon.ptErr(), and Electron.Electron.ptErr().

690  def ptPull(self):
691  tp = self.bestMatchingTrackingParticle()
692  if tp is None:
693  return None
694  return (self.pt() - tp.pca_pt())/self.ptErr()
695 
def ntupleDataFormat.Track.seed (   self)
def ntupleDataFormat.Track.thetaPull (   self)

Definition at line 696 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle().

696  def thetaPull(self):
697  tp = self.bestMatchingTrackingParticle()
698  if tp is None:
699  return None
700  return (getattr(self, "lambda")() - tp.pca_lambda())/self.lambdaErr() # as in MTV
701 
def ntupleDataFormat.Track.vertex (   self)