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 matchedTrackingParticleInfos (self)
 
def nMatchedTrackingParticles (self)
 

Detailed Description

Class presenting a track.

Definition at line 626 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 628 of file ntupleDataFormat.py.

628  def __init__(self, tree, index):
629  """Constructor.
630 
631  Arguments:
632  tree -- TTree object
633  index -- Index of the track
634  """
635  super(Track, self).__init__(tree, index, "trk")
636 
def __init__(self, tree, index)

Member Function Documentation

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

Definition at line 671 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), tauImpactParameter::TrackParticle.dz, egammaisolation::EgammaTrackSelector.dz, HGCalParameters::hgtrap.dz, RigidBodyAlignmentParameters.dz, DDHCalXtalAlgo.dz, ScoutingElectron.dz(), BowedSurfaceAlignmentDerivatives.dz, DDHCalTestBeamAlgo.dz, BowedSurfaceAlignmentParameters.dz, TrackMultiSelector::Block.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(), DTHitResult.dz, EcalTrapezoidParameters.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.

671  def dzPull(self):
672  tp = self.bestMatchingTrackingParticle()
673  if tp is None:
674  return None
675  return (self.dz() - tp.pca_dz())/self.dzErr()
676 
def ntupleDataFormat.Track.phiPull (   self)

Definition at line 659 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), eetest::CandForTest.phi(), res::HelperElectron.phi(), res::HelperMuon.phi(), TrackingRecHitGlobalState.phi, res::HelperJet.phi(), tauImpactParameter::TrackParticle.phi, res::HelperMET.phi(), RecoObj.phi, DDHCalEndcapModuleAlgo::HcalEndcapPar.phi, DDHGCalHEAlgo::HGCalHEPar.phi, DDHGCalEEAlgo::HGCalEEPar.phi, HcalCellType::HcalCell.phi, AnnealingSchedule.phi(), CommonMETData.phi, ConfigurableAnnealing.phi(), ScoutingParticle.phi(), SimG4HcalHitCluster.phi(), TwoBodyDecayDerivatives.phi, TwoBodyDecayParameters.phi, Geom::Polar2Cartesian< T >.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(), DDPixBarStackLinear.phi, DDCutTubsFromPoints::Section.phi, HcalDDDRecConstants::HcalID.phi, DDPixBarStackLinearGap.phi, L1Analysis::L1AnalysisRecoClusterDataFormat.phi, ScoutingCaloJet.phi(), DDTrackerLinear.phi, L1GctMet::etmiss_vec.phi, EcalClusterEnergyDeposition.phi, ImpactPoint.phi, L2TauPixelTrackMatch::TinyTrack.phi, reco::isodeposit::Direction.phi(), HcalFlexiHardcodeGeometryLoader::HBHOCellParameters.phi, correctionValue_class.phi, TrackerValidationVariables::AVHitStruct.phi, ScoutingPFJet.phi(), egHLT::BinData.phi, ScoutingMuon.phi(), Geom::Phi< double >.phi(), Geom::Phi< float >.phi(), Phi< double > deltaphi double.phi(), LMapRow.phi, Phi< U >.phi(), Phi< T >.phi(), Geom::Phi< T >.phi(), DTMuonLocalAlignment.phi, HcalTestHistoClass::Hit.phi, L1Analysis::L1AnalysisL1CaloClusterDataFormat.phi, LASCoordinateSet.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, CSCSP_MBblock.phi(), PHcalTB04Info.phi(), MaterialBudgetCastorHistos.phi, BeamProfileVtxGenerator.phi(), L1Analysis::L1AnalysisL1CaloTowerDataFormat.phi, L1Analysis::L1AnalysisRecoElectronDataFormat.phi, PHcalTB06Info::Hit.phi, Vector2DBase< T, FrameTag >.phi(), DataFormats_DTRecHit::dictionary.phi, QcdLowPtDQM::Pixel.phi(), PV2DBase< double, PointTag, LocalTag >.phi(), Vector2DBase< T, Frame >.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(), Point2DBase< Scalar, LocalTag >.phi(), Point2DBase< U, FrameTag >.phi(), Vector2DBase< U, FrameTag >.phi(), Point2DBase< T, Frame >.phi(), Vector2DBase< U, Frame >.phi(), Point2DBase< U, Frame >.phi(), Point2DBase< T, FrameTag >.phi(), PV2DBase< T, PVType, FrameType >.phi(), L1MuDTChambPhDigi.phi(), L1Analysis::L1AnalysisRecoMuon2DataFormat.phi, PGlobalSimHit::CalHit.phi, RhoEtaPhi.phi(), MaterialBudget.phi, reco::GhostTrackPrediction.phi(), reco::CastorCell.phi(), HGCalRecHitValidation::HitsInfo.phi, trigger::TriggerObject.phi(), FWPFCandidateDetailView.phi(), MaterialBudgetForward.phi, HLLHCEvtVtxGenerator.phi, HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE.phi(), IsolatedPixelTrackCandidateProducer::seedAtEC.phi, reco::CaloMuon.phi(), CSCSP_SPblock.phi(), SimpleL1MuGMTCand.phi(), PGlobalSimHit::FwdHit.phi, TrackerValidationVariables::AVTrackStruct.phi, MaterialBudgetHcalHistos.phi, reco::PattRecoPeak< Real >.phi(), metsig::SigInputObj.phi, PFECALSuperClusterAlgo::CalibratedPFCluster.phi(), HcalTB02HistoClass.phi(), IsolatedPixelTrackCandidateL1TProducer::seedAtEC.phi, reco::PattRecoPeak< float >.phi(), reco::PattRecoPeak< double >.phi(), PattRecoPeak< Real >.phi(), L1GctEtMiss.phi(), PHcalTB06Info.phi(), HTrackVariables.phi(), MuScleFitMuon.phi(), L1GctHtMiss.phi(), ValidationMisalignedTracker.phi, Thrust::ThetaPhi.phi, XMLProcessor::_LMapRowHBEF.phi, EleRelPoint.phi(), Vector3DBase< T, FrameTag >.phi(), Point3DBase< U, GlobalTag >.phi(), PV3DBase< T, PVType, FrameType >.phi(), PV3DBase< T, VectorTag, FrameTag >.phi(), Vector3DBase< U, Frame >.phi(), Vector3DBase< double, LocalTag >.phi(), Vector3DBase< U, FrameTag >.phi(), Vector3DBase< T, Frame >.phi(), PV3DBase< T, PointTag, FrameTag >.phi(), PerigeeTrajectoryParameters.phi(), HGCalSimHitValidation::hitsinfo.phi, Vector3DBase< U, LocalTag >.phi(), PV3DBase< float, VectorTag, LocalTag >.phi(), PV3DBase< float, VectorTag, MeasurementTag >.phi(), PV3DBase< Scalar, VectorTag, GlobalTag >.phi(), PV3DBase< float, VectorTag, GlobalTag >.phi(), cms::MinBias.phi, Point3DBase< Scalar, LocalTag >.phi(), Point3DBase< U, LocalTag >.phi(), Vector3DBase< U, GlobalTag >.phi(), Point3DBase< U, Frame >.phi(), Point3DBase< U, FrameTag >.phi(), Point3DBase< T, Frame >.phi(), Geom::Spherical2Cartesian< T >.phi(), PhotonFix.phi(), PGlobalSimHit::BrlHit.phi, LMapDetId.phi, PatPhotonSimpleAnalyzer::struct_recPhoton.phi, PhotonIDSimpleAnalyzer::struct_recPhoton.phi, reco::IsoDeposit.phi(), L1MuDTTrack.phi(), L1TMuon::InternalTrack.phi, L1GctMet::etmiss_internal.phi, reco::CastorJet.phi(), PixelUnpackingRegions::Module.phi, MuonDTLocalMillepedeAlgorithm.phi, reco::CastorEgamma.phi(), HcalTB02Analysis.phi, PdtPdgMini.phi, MuonGmtPair.phi(), L1MuBMTrack.phi(), BPhysicsValidation::ParticleMonitor.phi, L1Analysis::L1AnalysisRecoJetDataFormat.phi, Basic2DVector< float >.phi(), Basic2DVector< T >.phi(), Basic2DVector< double > thc.phi(), Basic2DVector< double >.phi(), Basic2DVector< U >.phi(), Basic2DVector< Scalar >.phi(), L1MuDTTrackSegPhi.phi(), L1MuBMTrackSegPhi.phi(), EgammaTowerIsolationNew< 1 >.phi, DDTrap.phi(), EgammaTowerIsolationNew< NC >.phi, CurvilinearTrajectoryParameters.phi(), RecHitsSortedInPhi.phi(), L1TDEMON.phi, SingleParticleEvent.phi(), cms::Analyzer_minbias.phi, Lepton.phi, reco::CastorCluster.phi(), best_tracks.phi, L1TdeGCT.phi, reco::Candidate.phi(), EcalTrapezoidParameters.phi(), TrackStruct::TrackParameterStruct.phi, egHLT::OffPho.phi(), reco::Particle.phi(), AnalyzerMinbias.phi, coord_delay.phi, DTChambPhSegm.phi(), reco::ParticleState.phi(), DTSectCollPhSegm.phi(), L1GctInternJetData.phi(), deltas_sector.phi, DTRecSegment4D.phi, deltas.phi, egHLT::OffEle.phi(), Basic3DVector< long double >.phi(), EcalTestPulseAnalyzer.phi, EcalABAnalyzer.phi, GeometricDet.phi(), HGCalClusterT< C >.phi(), CandidateWithRef< Ref >.phi(), CompositeRefCandidateT< reco::GenParticleRefVector >.phi(), MuonGeometryArrange::MGACollection.phi, reco::LeafCandidate.phi(), Basic3DVector< double > momAtVtx Basic3DVector< double >.phi(), pair< bool, reco::TrackBase::ParameterVector >.phi(), AlignmentMonitorMuonSystemMap1D::MyResidual.phi, Basic3DVector< double >.phi(), Basic3DVector< align::Scalar >.phi(), Basic3DVector< float > pos GlobalPoint.phi(), Basic3DVector< T >.phi(), Basic3DVector< U >.phi(), Basic3DVector< double > momAtVtx Basic3DVector< double > vert int.phi(), Basic3DVector< float > constituentCentre Basic3DVector< float >.phi(), Basic3DVector< float >.phi(), Basic3DVector< float > mom GlobalVector.phi(), Basic3DVector< Scalar >.phi(), EcalPerEvtLaserAnalyzer.phi, HcalLogicalMapGenerator.phi, reco::IsoDeposit::const_iterator.phi(), JetAnalyzer_HeavyIons_matching::MyJet.phi, CaloParticle.phi(), CosmicRateAnalyzer.phi, SimCluster.phi(), HitDoublets.phi(), L1Analysis::L1AnalysisRecoMuonDataFormat.phi, reco::CaloCluster.phi(), pat::MET::Vector2.phi(), TrackingParticle.phi(), pat::PackedGenParticle.phi(), sp.phi, EcalLaserAnalyzer.phi, EcalLaserAnalyzer2.phi, EcalClusterToolsT< noZS >::EcalClusterEnergyDeposition.phi, BTrack.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.

659  def phiPull(self):
660  tp = self.bestMatchingTrackingParticle()
661  if tp is None:
662  return None
663  return (self.phi() - tp.pca_phi())/self.phiErr()
664 
def ntupleDataFormat.Track.ptPull (   self)

Definition at line 647 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle(), eetest::CandForTest.pt(), mypt.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, reco::MuonMETCorrectionData.pt(), ScoutingElectron.pt(), PtHatReweightUserHook.pt, MatchStruct.pt, PtEtaPhiMass.pt(), MySimTrack.pt, ALILine.pt(), ScoutingCaloJet.pt(), L2TauPixelTrackMatch::TinyTrack.pt, TrackMultiSelector::Block.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, jpt::Map.pt(), SiStripLAProfileBooker.pt, PhysicsObjectsMonitor.pt, reco::CaloMuon.pt(), TrackerValidationVariables::AVTrackStruct.pt, trigger::TriggerObject.pt(), BSTrkParameters.pt(), ElectronMVAEstimatorRun2Phys14NonTrig::AllVariables.pt, goodseedhelpers::HeavyObjectCache.pt, MuScleFitMuon.pt(), SoftElectronMVAEstimator.pt, PTrajectoryStateOnDet.pt(), ValidationMisalignedTracker.pt, SimpleL1MuGMTCand.pt(), HTrackVariables.pt(), ElectronMVAEstimatorRun2Spring16GeneralPurpose::AllVariables.pt, HepLine3D.pt(), L1MuDTTrack.pt(), ElectronMVAEstimatorRun2Spring16HZZ::AllVariables.pt, ElectronMVAEstimatorRun2Spring15NonTrig::AllVariables.pt, TrajectoryStateClosestToPoint.pt(), L1MuBMTrack.pt(), ElectronMVAEstimatorRun2Spring15Trig::AllVariables.pt, MuonDTLocalMillepedeAlgorithm.pt, BPhysicsValidation::ParticleMonitor.pt, MuonGmtPair.pt(), L1TMuon::InternalTrack.pt, susybsm::HSCParticle.pt(), QualityCutsAnalyzer::histogram_element_t.pt, reco::PreId.pt(), Lepton.pt, reco::Candidate.pt(), egHLT::OffPho.pt(), TrackStruct::TrackParameterStruct.pt, reco::Particle.pt(), reco::ParticleState.pt(), contrib::CMSBoostedTauSeedingAlgorithmStructure.pt(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.pt, PtHatRapReweightUserHook.pt, MuonResidualsFitter::MuonAlignmentTreeRow.pt, CompositeRefCandidateT< reco::GenParticleRefVector >.pt(), CandidateWithRef< Ref >.pt(), AlignmentMonitorMuonSystemMap1D::MyTrack.pt, reco::LeafCandidate.pt(), HGCalClusterT< C >.pt(), reco::PFCluster.pt(), CaloParticle.pt(), CosmicRateAnalyzer.pt, JetAnalyzer_HeavyIons_matching::MyJet.pt, SimCluster.pt(), l1t::EMTFTrack.pt, L1Analysis::L1AnalysisRecoMuonDataFormat.pt, TrackingParticle.pt(), pat::MET::Vector2.pt(), pat::PackedGenParticle.pt(), GoodSeedProducer.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().

647  def ptPull(self):
648  tp = self.bestMatchingTrackingParticle()
649  if tp is None:
650  return None
651  return (self.pt() - tp.pca_pt())/self.ptErr()
652 
def ntupleDataFormat.Track.seed (   self)
def ntupleDataFormat.Track.thetaPull (   self)

Definition at line 653 of file ntupleDataFormat.py.

References ntupleDataFormat._TrackingParticleMatchAdaptor.bestMatchingTrackingParticle().

653  def thetaPull(self):
654  tp = self.bestMatchingTrackingParticle()
655  if tp is None:
656  return None
657  return (getattr(self, "lambda")() - tp.pca_lambda())/self.lambdaErr() # as in MTV
658 
def ntupleDataFormat.Track.vertex (   self)