test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrajectoryStateClosestToPoint.h
Go to the documentation of this file.
1 #ifndef TrajectoryStateClosestToPoint_H
2 #define TrajectoryStateClosestToPoint_H
3 
9 
19 {
23 
24 public:
25 
28 
35  const GlobalPoint& referencePoint, const MagneticField* field):
36  theField(field), theRefPoint(referencePoint),
37  theParameters(perigeeParameters), thePt( pt ),
39  {}
40 
48  const MagneticField* field):
49  theField(field), theRefPoint(referencePoint),
50  theParameters(perigeeParameters), thePt( pt ), thePerigeeError(perigeeError),
52 
53 
59  const GlobalPoint & referencePoint() const {
60  return theRefPoint;
61  }
62 
63 
69  return theParameters;
70  }
71 
75  double pt() const {
76  return thePt;
77  }
78 
84  return thePerigeeError;
85  }
86 
93  }
94 
95 
98  }
99 
100 
101  TrackCharge charge() const {
102  return theParameters.charge();
103  }
104 
105 
106  const FreeTrajectoryState & theState() const {
108  return theFTS;
109  }
110 
111 
116  bool hasError() const {
117  return errorIsAvailable;
118  }
119 
123  bool isValid() const {
124  return valid;
125  }
126 
127 
128 
130 
136  TrajectoryStateClosestToPoint(const FTS& originalFTS, const GlobalPoint& referencePoint);
137 
138  void calculateFTS() const;
139 
140 private:
141 
143 
144  mutable FTS theFTS;
145 
148  double thePt;
150  bool valid;
151  mutable bool theFTSavailable;
153 
154 };
155 #endif
const PerigeeTrajectoryError & perigeeError() const
const FreeTrajectoryState & theState() const
TrajectoryStateClosestToPoint()
parameter dimension
int TrackCharge
Definition: TrackCharge.h:4
const PerigeeTrajectoryParameters & perigeeParameters() const
GlobalPoint positionFromPerigee(const PerigeeTrajectoryParameters &parameters, const GlobalPoint &referencePoint)
GlobalVector momentumFromPerigee(const AlgebraicVector3 &momentum, const TrackCharge &charge, const GlobalPoint &referencePoint, const MagneticField *field)
TrajectoryStateClosestToPoint(const PerigeeTrajectoryParameters &perigeeParameters, double pt, const GlobalPoint &referencePoint, const MagneticField *field)
TrajectoryStateClosestToPoint(const PerigeeTrajectoryParameters &perigeeParameters, double pt, const PerigeeTrajectoryError &perigeeError, const GlobalPoint &referencePoint, const MagneticField *field)
const GlobalPoint & referencePoint() const
volatile std::atomic< bool > shutdown_flag false
PerigeeTrajectoryParameters theParameters