CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TransientTrack.h
Go to the documentation of this file.
1 #ifndef TrackReco_TransientTrack_h
2 #define TrackReco_TransientTrack_h
3 
4 
14 
18 
19 namespace reco {
20 
22 
24 
25  public:
26 
27  // constructor from persistent track
28  TransientTrack();
29  TransientTrack( const Track & tk , const MagneticField* field);
30  TransientTrack( const TrackRef & tk , const MagneticField* field);
31 
32  TransientTrack( const TrackRef & tk , const MagneticField* field, const edm::ESHandle<GlobalTrackingGeometry>& trackingGeometry);
33 
34  TransientTrack( const Track & tk , const MagneticField* field, const edm::ESHandle<GlobalTrackingGeometry>& trackingGeometry);
35 
37 
38  void setES(const edm::EventSetup& es) {sharedData().setES(es);}
39 
41  {sharedData().setTrackingGeometry(tg);}
42 
43  void setBeamSpot(const reco::BeamSpot& beamSpot)
44  {sharedData().setBeamSpot(beamSpot);}
45 
46  FreeTrajectoryState initialFreeState() const {return data().initialFreeState();}
47 
49  {return data().outermostMeasurementState();}
50 
52  {return data().innermostMeasurementState();}
53 
56  {return data().trajectoryStateClosestToPoint(point);}
57 
59  {return data().stateOnSurface(point);}
60 
62  {return data().impactPointTSCP();}
63 
65  {return data().impactPointState();}
66 
68  {return data().impactPointStateAvailable();}
69 
70  TrackCharge charge() const {return data().charge();}
71 
72  bool operator== (const TransientTrack & other) const
73  {return &(data()) == &(other.data());}
74  // {return (a.persistentTrackRef()==tkr_);}
75 
76  bool operator< (const TransientTrack & other) const
77  {return &(data()) < &(other.data());}
78  // {return (initialFTS.momentum().z()<a.initialFreeState().momentum().z());}
79 
80  const MagneticField* field() const {return data().field();}
81 
82  const BasicTransientTrack* basicTransientTrack() const {return &(data());}
83 
84  const Track & track() const {return data().track();}
85 
86  TrackBaseRef trackBaseRef() const {return data().trackBaseRef();}
87 
89  {return data().stateAtBeamLine();}
90 
91 // Methods forwarded to original track.
92 
98  TrackingRecHitRef recHit( size_t i ) const { return track().recHit( i ); }
100  size_t recHitsSize() const { return track().recHitsSize(); }
101  // hit pattern
102  const HitPattern & hitPattern() const { return track().hitPattern(); }
104  unsigned short numberOfValidHits() const { return track().hitPattern().numberOfValidHits(); }
106  unsigned short numberOfLostHits() const { return track().hitPattern().numberOfLostHits(); }
108  double chi2() const { return track().chi2(); }
110  double ndof() const { return track().ndof(); }
112  double normalizedChi2() const { return track().chi2() / track().ndof(); }
113 
115  bool isValid() const {return Base::isValid() ;}
116 
117  };
118 
119 }
120 
121 #endif
unsigned short numberOfValidHits() const
number of hits found
int i
Definition: DBlmapReader.cc:9
bool operator==(const TransientTrack &other) const
int numberOfValidHits() const
Definition: HitPattern.cc:321
void setBeamSpot(const reco::BeamSpot &beamSpot)
bool isValid() const
Make the ReferenceCountingProxy method to check validity public.
TrackBaseRef trackBaseRef() const
TrajectoryStateClosestToPoint impactPointTSCP() const
size_t recHitsSize() const
Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits)...
Definition: Track.h:69
bool operator<(const TransientTrack &other) const
TransientTrack(BasicTransientTrack *btt)
const HitPattern & hitPattern() const
const MagneticField * field() const
size_t recHitsSize() const
number of RecHits
double chi2() const
chi-squared of the fit
TrajectoryStateClosestToBeamLine stateAtBeamLine() const
TrajectoryStateOnSurface innermostMeasurementState() const
unsigned short numberOfLostHits() const
number of hits lost
int TrackCharge
Definition: TrackCharge.h:4
TrackCharge charge() const
double chi2() const
chi-squared of the fit
Definition: TrackBase.h:107
double ndof() const
number of degrees of freedom of the fit
Definition: TrackBase.h:109
bool impactPointStateAvailable() const
int numberOfLostHits() const
Definition: HitPattern.cc:502
TrackingRecHitRef recHit(size_t i) const
get n-th recHit
TrajectoryStateOnSurface outermostMeasurementState() const
trackingRecHit_iterator recHitsBegin() const
Iterator to first hit on the track.
Definition: Track.h:63
const HitPattern & hitPattern() const
Access the hit pattern, indicating in which Tracker layers the track has hits.
Definition: TrackBase.h:223
void setES(const edm::EventSetup &es)
trackingRecHit_iterator recHitsEnd() const
last iterator to RecHits
FreeTrajectoryState initialFreeState() const
const BasicTransientTrack * basicTransientTrack() const
const Track & track() const
BasicTransientTrack::Proxy Base
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint(const GlobalPoint &point) const
const T & data() const
Definition: ProxyBase.h:64
double normalizedChi2() const
chi-squared divided by n.d.o.f.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Definition: Point3D.h:18
double ndof() const
number of degrees of freedom of the fit
bool isValid() const
Definition: ProxyBase.h:78
TrajectoryStateOnSurface stateOnSurface(const GlobalPoint &point) const
void setTrackingGeometry(const edm::ESHandle< GlobalTrackingGeometry > &tg)
TrackingRecHitRef recHit(size_t i) const
Get i-th hit on the track.
Definition: Track.h:67
TrajectoryStateOnSurface impactPointState() const
trackingRecHit_iterator recHitsBegin() const
first iterator to RecHits
T & sharedData()
Definition: ProxyBase.h:76
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
trackingRecHit_iterator recHitsEnd() const
Iterator to last hit on the track.
Definition: Track.h:65