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 667 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 669 of file ntupleDataFormat.py.

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

Member Function Documentation

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

Definition at line 712 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), tauImpactParameter::TrackParticle.dz, HGCalParameters::hgtrap.dz, egammaisolation::EgammaTrackSelector.dz, DDHCalXtalAlgo.dz, RigidBodyAlignmentParameters.dz, BowedSurfaceAlignmentDerivatives.dz, ScoutingElectron.dz(), DDHCalTestBeamAlgo.dz, BowedSurfaceAlignmentParameters.dz, DTMuonSLToSL.dz, IdealZDCTrapezoid.dz(), PreshowerStrip.dz(), ScoutingMuon.dz(), IdealObliquePrism.dz(), IdealZPrism.dz(), Tau.Tau.dz(), IdealCastorTrapezoid.dz(), pat::VertexAssociation.dz(), DTMuonMillepede.dz, DTSegmentResult.dz, TrackerValidationVariables::AVTrackStruct.dz, PrimaryVertexMonitor.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.

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

Definition at line 700 of file ntupleDataFormat.py.

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

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

Definition at line 688 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), eetest::CandForTest.pt(), mypt.pt, btagbtvdeep::JetFeatures.pt, btagbtvdeep::SecondaryVertexFeatures.pt, res::HelperElectron.pt(), res::HelperMuon.pt(), res::HelperJet.pt(), reco::VoronoiBackground.pt(), RecoObj.pt, ScoutingParticle.pt(), tauImpactParameter::LorentzVectorParticle.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, PGlobalSimHit::Trk.pt, TtFullHadSignalSel.pt(), ElectronMVAEstimator.pt, L1Analysis::L1AnalysisRecoTauDataFormat.pt, ZMuMuIsolationAnalyzer.pt, L1Analysis::L1AnalysisRecoElectronDataFormat.pt, PatTrackAnalyzer::Plots.pt, L1Analysis::L1AnalysisRecoMuon2DataFormat.pt, PhysicsObjectsMonitor.pt, jpt::Map.pt(), SiStripLAProfileBooker.pt, reco::CaloMuon.pt(), TrackerValidationVariables::AVTrackStruct.pt, trigger::TriggerObject.pt(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables.pt, BSTrkParameters.pt(), goodseedhelpers::HeavyObjectCache.pt, TauL1TPair.pt(), MuScleFitMuon.pt(), ElectronMVAEstimatorRun2Spring16GeneralPurpose::AllVariables.pt, SoftElectronMVAEstimator.pt, SimpleL1MuGMTCand.pt(), PTrajectoryStateOnDet.pt(), ValidationMisalignedTracker.pt, HTrackVariables.pt(), ElectronMVAEstimatorRun2Spring16HZZ::AllVariables.pt, HepLine3D.pt(), ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables.pt, L1MuDTTrack.pt(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables.pt, TrajectoryStateClosestToPoint.pt(), L1MuBMTrack.pt(), MuonDTLocalMillepedeAlgorithm.pt, BPhysicsValidation::ParticleMonitor.pt, susybsm::HSCParticle.pt(), QualityCutsAnalyzer::histogram_element_t.pt, reco::PreId.pt(), Lepton.pt, reco::Candidate.pt(), egHLT::OffPho.pt(), reco::Particle.pt(), TrackStruct::TrackParameterStruct.pt, reco::ParticleState.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.pt, MuonResidualsFitter::MuonAlignmentTreeRow.pt, AlignmentMonitorMuonSystemMap1D::MyTrack.pt, CompositeRefCandidateT< reco::GenParticleRefVector >.pt(), CandidateWithRef< Ref >.pt(), reco::LeafCandidate.pt(), HGCalClusterT< C >.pt(), reco::PFCluster.pt(), CosmicRateAnalyzer.pt, PtHatRapReweightUserHook.pt, CaloParticle.pt(), JetAnalyzer_HeavyIons_matching::MyJet.pt, SimCluster.pt(), L1Analysis::L1AnalysisRecoMuonDataFormat.pt, TrackingParticle.pt(), pat::MET::Vector2.pt(), GoodSeedProducer.pt, l1t::EMTFTrack.pt, MuonGmtPair.pt(), pat::PackedGenParticle.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().

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

Definition at line 694 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle().

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