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, tauImpactParameter::TrackParticle.dz, btagbtvdeep::SeedingTrackFeatures.dz, egammaisolation::EgammaTrackSelector.dz, btagbtvdeep::SeedingTrackInfoBuilder.dz(), dnn_inputs_2017v1.dz, RigidBodyAlignmentParameters.dz, HGCalParameters::hgtrap.dz, DDHCalXtalAlgo.dz, ScoutingElectron.dz(), BowedSurfaceAlignmentDerivatives.dz, DDHCalTestBeamAlgo.dz, BowedSurfaceAlignmentParameters.dz, btagbtvdeep::ChargedCandidateFeatures.dz, DTMuonSLToSL.dz, IdealZDCTrapezoid.dz(), PreshowerStrip.dz(), ScoutingMuon.dz(), Tau.Tau.dz(), IdealObliquePrism.dz(), IdealZPrism.dz(), IdealCastorTrapezoid.dz(), pat::VertexAssociation.dz(), DTMuonMillepede.dz, DTSegmentResult.dz, PrimaryVertexMonitor.dz, TrackerValidationVariables::AVTrackStruct.dz, Muon.Muon.dz(), pat::IsolatedTrack.dz(), DTHitResult.dz, EcalTrapezoidParameters.dz(), TopMonitor::PVcut.dz, TrackStruct::TrackParameterStruct.dz, MuonGeometryArrange::MGACollection.dz, reco::Conversion.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(), PuppiCandidate.phi, eetest::CandForTest.phi(), btagbtvdeep::JetFeatures.phi, btagbtvdeep::TrackPairFeatures.phi, omtf::DtDataWord64.phi(), TrackingRecHitGlobalState.phi, btagbtvdeep::SeedingTrackFeatures.phi, GEMVfatStatusDigi.phi(), omtf::MuonDataWord64.phi(), res::HelperElectron.phi(), res::HelperMuon.phi(), RecoObj.phi, tauImpactParameter::TrackParticle.phi, res::HelperJet.phi(), TwoBodyDecayParameters.phi, DDHCalEndcapModuleAlgo::HcalEndcapPar.phi, TwoBodyDecayDerivatives.phi, AnnealingSchedule.phi(), HcalCellType::HcalCell.phi, res::HelperMET.phi(), SimG4HcalHitCluster.phi(), CommonMETData.phi, btagbtvdeep::SeedingTrackInfoBuilder.phi(), ConfigurableAnnealing.phi(), ScoutingParticle.phi(), SuperClusterHelper.phi(), Geom::Polar2Cartesian< T >.phi(), jetData.phi, ThirdHitPredictionFromCircle.phi(), ScoutingPhoton.phi(), CaloHit.phi(), Residual1DHit.phi, HcalNumberingFromDDD::HcalID.phi, ScoutingElectron.phi(), DDHCalTestBeamAlgo.phi, DeterministicAnnealing.phi(), GeometricAnnealing.phi(), MySimTrack.phi, HcalChannelId.phi, RecHitsSortedInPhi::HitWithPhi.phi(), MatchStruct.phi, DDTrackerPhiAlgo.phi, HGCal_helpers::Coordinates.phi, PtEtaPhiMass.phi(), DDCutTubsFromPoints::Section.phi, HcalDDDRecConstants::HcalID.phi, L1Analysis::L1AnalysisRecoClusterDataFormat.phi, ScoutingCaloJet.phi(), DDTrackerLinear.phi, L1GctMet::etmiss_vec.phi, EcalClusterEnergyDeposition.phi, ImpactPoint.phi, L2TauPixelTrackMatch::TinyTrack.phi, reco::isodeposit::Direction.phi(), EleRelPoint.phi(), HcalFlexiHardcodeGeometryLoader::HBHOCellParameters.phi, correctionValue_class.phi, HEChannel.phi, TrackerValidationVariables::AVHitStruct.phi, ScoutingPFJet.phi(), egHLT::BinData.phi, ScoutingMuon.phi(), l1t::HGCalTowerCoord.phi, Geom::Phi< float >.phi(), LMapRow.phi, Phi< double >.phi(), Phi< double > deltaphi double.phi(), Geom::Phi< T >.phi(), Phi< U >.phi(), Phi< T >.phi(), DTMuonLocalAlignment.phi, LASCoordinateSet.phi, L1Analysis::L1AnalysisL1CaloClusterDataFormat.phi, ResonanceBuilder.Resonance.phi(), Geom::Cylindrical2Cartesian< T >.phi(), RotationType.phi(), ToLocal.phi(), GloballyPositioned< U >.phi(), PatTrackAnalyzer::Plots.phi, GloballyPositioned< float >.phi(), GloballyPositioned< align::Scalar >.phi(), GloballyPositioned< T >.phi(), L1Analysis::L1AnalysisRecoTauDataFormat.phi, HcalTestHistoClass::Hit.phi, PHcalTB04Info.phi(), MaterialBudgetCastorHistos.phi, l1t::emtf::RPC.phi, CSCSP_MBblock.phi(), PHcalTB06Info::Hit.phi, BeamProfileVtxGenerator.phi(), L1Analysis::L1AnalysisL1CaloTowerDataFormat.phi, L1Analysis::L1AnalysisRecoElectronDataFormat.phi, Vector2DBase< T, FrameTag >.phi(), Vector2DBase< T, Frame >.phi(), Point2DBase< U, FrameTag >.phi(), PV2DBase< float, PointTag, LocalTag >.phi(), PV2DBase< T, VectorTag, FrameTag >.phi(), HcalFlexiHardcodeGeometryLoader::HECellParameters.phi, PV2DBase< float, VectorTag, GlobalTag >.phi(), PV2DBase< double, PointTag, LocalTag >.phi(), PV2DBase< T, PointTag, FrameTag >.phi(), Point2DBase< Scalar, LocalTag >.phi(), Vector2DBase< U, FrameTag >.phi(), Point2DBase< T, Frame >.phi(), Vector2DBase< U, Frame >.phi(), PV2DBase< T, PVType, FrameType >.phi(), Point2DBase< U, Frame >.phi(), Point2DBase< T, FrameTag >.phi(), L1MuDTChambPhDigi.phi(), L1Analysis::L1AnalysisRecoMuon2DataFormat.phi, RhoEtaPhi.phi(), L1Phase2MuDTPhDigi.phi(), MaterialBudget.phi, HGCalRecHitValidation::HitsInfo.phi, QcdLowPtDQM::Pixel.phi(), reco::GhostTrackPrediction.phi(), PGlobalSimHit::CalHit.phi, PFECALSuperClusterAlgo::CalibratedPFCluster.phi(), reco::CastorCell.phi(), HLLHCEvtVtxGenerator.phi, MaterialBudgetForward.phi, trigger::TriggerObject.phi(), FWPFCandidateDetailView.phi(), HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.phi(), cms::MinBias.phi, IsolatedPixelTrackCandidateProducer::seedAtEC.phi, reco::CaloMuon.phi(), CSCSP_SPblock.phi(), SimpleL1MuGMTCand.phi(), TauL1TPair.phi(), L1MuKBMTCombinedStub.phi(), MaterialBudgetHcalHistos.phi, metsig::SigInputObj.phi, IsolatedPixelTrackCandidateL1TProducer::seedAtEC.phi, reco::PattRecoPeak< float >.phi(), PattRecoPeak< Real >.phi(), reco::PattRecoPeak< Real >.phi(), L1GctEtMiss.phi(), PHcalTB06Info.phi(), TrackerValidationVariables::AVTrackStruct.phi, PGlobalSimHit::FwdHit.phi, HTrackVariables.phi(), L1GctHtMiss.phi(), MuScleFitMuon.phi(), ValidationMisalignedTracker.phi, Thrust::ThetaPhi.phi, XMLProcessor::_LMapRowHBEF.phi, HGCalSimHitValidation::hitsinfo.phi, Vector3DBase< U, Frame >.phi(), Vector3DBase< float, GlobalTag >.phi(), PV3DBase< Scalar, VectorTag, GlobalTag >.phi(), Point3DBase< U, GlobalTag >.phi(), Vector3DBase< U, FrameTag >.phi(), Vector3DBase< T, Frame >.phi(), Vector3DBase< double, LocalTag >.phi(), PV3DBase< T, VectorTag, FrameTag >.phi(), Point3DBase< U, FrameTag >.phi(), Vector3DBase< U, GlobalTag >.phi(), Point3DBase< U, Frame >.phi(), PV3DBase< float, VectorTag, LocalTag >.phi(), PV3DBase< T, PVType, FrameType >.phi(), Vector3DBase< T, FrameTag >.phi(), PV3DBase< T, PointTag, FrameTag >.phi(), Point3DBase< Scalar, LocalTag >.phi(), Point3DBase< U, LocalTag >.phi(), PerigeeTrajectoryParameters.phi(), Vector3DBase< U, LocalTag >.phi(), Point3DBase< T, Frame >.phi(), PhotonFix.phi(), LMapDetId.phi, Geom::Spherical2Cartesian< T >.phi(), PatPhotonSimpleAnalyzer::struct_recPhoton.phi, PGlobalSimHit::BrlHit.phi, PhotonIDSimpleAnalyzer::struct_recPhoton.phi, L1MuDTTrack.phi(), gem::VFATdata.phi(), reco::IsoDeposit.phi(), L1GctMet::etmiss_internal.phi, L1MuBMTrack.phi(), MuonDTLocalMillepedeAlgorithm.phi, reco::CastorJet.phi(), HcalTB02Analysis.phi, PixelUnpackingRegions::Module.phi, PdtPdgMini.phi, reco::CastorEgamma.phi(), BPhysicsValidation::ParticleMonitor.phi, EcalTrapezoidParameters.phi(), HcalTB02HistoClass.phi(), Basic2DVector< U >.phi(), Basic2DVector< T >.phi(), Basic2DVector< double > thc.phi(), Basic2DVector< Scalar >.phi(), Basic2DVector< double >.phi(), Basic2DVector< float >.phi(), TTTrack< T >.phi(), TTTrack< Ref_Phase2TrackerDigi_ >.phi(), Lepton.phi, L1MuDTTrackSegPhi.phi(), EgammaTowerIsolationNew< NC >.phi, L1Analysis::L1AnalysisRecoJetDataFormat.phi, L1TDEMON.phi, RecHitsSortedInPhi.phi(), CurvilinearTrajectoryParameters.phi(), DDTrap.phi(), L1MuBMTrackSegPhi.phi(), SingleParticleEvent.phi(), cms::Analyzer_minbias.phi, reco::CastorCluster.phi(), L1TdeGCT.phi, reco::Candidate.phi(), TrajSeedMatcher::SCHitMatch.phi(), egHLT::OffPho.phi(), AnalyzerMinbias.phi, reco::Particle.phi(), DTChambPhSegm.phi(), GeometricTimingDet.phi(), reco::ParticleState.phi(), L1GctInternJetData.phi(), DTSectCollPhSegm.phi(), DTRecSegment4D.phi, egHLT::OffEle.phi(), Basic3DVector< long double >.phi(), EcalTestPulseAnalyzer.phi, EcalABAnalyzer.phi, TrackStruct::TrackParameterStruct.phi, GeometricDet.phi(), MuonGeometryArrange::MGACollection.phi, reco::LeafCandidate.phi(), CandidateWithRef< Ref >.phi(), HGCalClusterT< C >.phi(), CaloParticle.phi(), AlignmentMonitorMuonSystemMap1D::MyResidual.phi, pair< bool, reco::TrackBase::ParameterVector >.phi(), Basic3DVector< float > pos GlobalPoint.phi(), Basic3DVector< float >.phi(), Basic3DVector< align::Scalar >.phi(), Basic3DVector< float > seedCentre.phi(), Basic3DVector< float > tcCentre float.phi(), Basic3DVector< double > momAtVtx Basic3DVector< double >.phi(), Basic3DVector< T >.phi(), Basic3DVector< U >.phi(), Basic3DVector< Scalar >.phi(), Basic3DVector< float > constituentCentre Basic3DVector< float >.phi(), Basic3DVector< double >.phi(), Basic3DVector< float > mom GlobalVector.phi(), Basic3DVector< float > seedCentre float.phi(), Basic3DVector< double > momAtVtx Basic3DVector< double > vert.phi(), EcalPerEvtLaserAnalyzer.phi, SimCluster.phi(), HcalLogicalMapGenerator.phi, reco::IsoDeposit::const_iterator.phi(), CosmicRateAnalyzer.phi, JetAnalyzer_HeavyIons_matching::MyJet.phi, HitDoublets.phi(), L1Analysis::L1AnalysisRecoMuonDataFormat.phi, reco::CaloCluster.phi(), TrackingParticle.phi(), MuonGmtPair.phi(), EcalLaserAnalyzer.phi, pat::PackedGenParticle.phi(), EcalLaserAnalyzer2.phi, SiPixelErrorEstimation.phi, EcalClusterToolsT< noZS >::EcalClusterEnergyDeposition.phi, pat::MET::Vector2.phi(), RawParticle.phi(), reco::TrackBase.phi(), EcalSelectiveReadoutValidation::energiesEb_t.phi, EcalSelectiveReadoutValidation::energiesEe_t.phi, DDParallelepiped.phi(), pat::PackedCandidate.phi(), CellIndex.phi, SiPixelTrackingRecHitsValid.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(), PuppiCandidate.pt, eetest::CandForTest.pt(), btagbtvdeep::TrackPairFeatures.pt, btagbtvdeep::SecondaryVertexFeatures.pt, mypt.pt, btagbtvdeep::JetFeatures.pt, btagbtvdeep::SeedingTrackFeatures.pt, res::HelperElectron.pt(), res::HelperMuon.pt(), res::HelperJet.pt(), reco::VoronoiBackground.pt(), RecoObj.pt, btagbtvdeep::SeedingTrackInfoBuilder.pt(), tauImpactParameter::LorentzVectorParticle.pt, ScoutingParticle.pt(), dnn_inputs_2017v1.pt, L1MuCSCPtLut.pt(), ScoutingPhoton.pt(), Residual1DHit.pt, ScoutingElectron.pt(), reco::MuonMETCorrectionData.pt(), PtHatReweightUserHook.pt, MatchStruct.pt, PtEtaPhiMass.pt(), MySimTrack.pt, ALILine.pt(), ScoutingCaloJet.pt(), L2TauPixelTrackMatch::TinyTrack.pt, ResonanceBuilder.Resonance.pt(), ScoutingPFJet.pt(), ScoutingMuon.pt(), DTMuonLocalAlignment.pt, TtFullHadSignalSel.pt(), L1Analysis::L1AnalysisRecoTauDataFormat.pt, ZMuMuIsolationAnalyzer.pt, L1Analysis::L1AnalysisRecoElectronDataFormat.pt, PatTrackAnalyzer::Plots.pt, PGlobalSimHit::Trk.pt, L1Analysis::L1AnalysisRecoMuon2DataFormat.pt, PhysicsObjectsMonitor.pt, SiStripLAProfileBooker.pt, jpt::Map.pt(), reco::CaloMuon.pt(), trigger::TriggerObject.pt(), BSTrkParameters.pt(), reco::ForwardProton.pt(), TrackerValidationVariables::AVTrackStruct.pt, goodseedhelpers::HeavyObjectCache.pt, TauL1TPair.pt(), MuScleFitMuon.pt(), ValidationMisalignedTracker.pt, SimpleL1MuGMTCand.pt(), PTrajectoryStateOnDet.pt(), HTrackVariables.pt(), HepLine3D.pt(), L1MuDTTrack.pt(), L1MuBMTrack.pt(), QualityCutsAnalyzer::histogram_element_t.pt, TrajectoryStateClosestToPoint.pt(), MuonDTLocalMillepedeAlgorithm.pt, BPhysicsValidation::ParticleMonitor.pt, susybsm::HSCParticle.pt(), Lepton.pt, reco::PreId.pt(), reco::Candidate.pt(), egHLT::OffPho.pt(), reco::Particle.pt(), reco::ParticleState.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.pt, MuonResidualsFitter::MuonAlignmentTreeRow.pt, TrackStruct::TrackParameterStruct.pt, CaloParticle.pt(), AlignmentMonitorMuonSystemMap1D::MyTrack.pt, reco::LeafCandidate.pt(), CandidateWithRef< Ref >.pt(), HGCalClusterT< C >.pt(), SimCluster.pt(), reco::PFCluster.pt(), CosmicRateAnalyzer.pt, PtHatRapReweightUserHook.pt, JetAnalyzer_HeavyIons_matching::MyJet.pt, L1Analysis::L1AnalysisRecoMuonDataFormat.pt, TrackingParticle.pt(), GoodSeedProducer.pt, MuonGmtPair.pt(), l1t::EMTFTrack.pt, pat::PackedGenParticle.pt(), pat::MET::Vector2.pt(), RawParticle.pt(), reco::TrackBase.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)