CMS 3D CMS Logo

TrajectoryStateClosestToPoint.h
Go to the documentation of this file.
1 #ifndef TrajectoryStateClosestToPoint_H
2 #define TrajectoryStateClosestToPoint_H
3 
9 
22 
23 public:
25 
32  double pt,
34  const MagneticField* field)
35  : theField(field),
38  thePt(pt),
39  valid(true),
42 
49  double pt,
52  const MagneticField* field)
53  : theField(field),
56  thePt(pt),
58  valid(true),
61 
67  const GlobalPoint& referencePoint() const { return theRefPoint; }
68 
74 
78  double pt() const { return thePt; }
79 
85 
91 
93 
94  TrackCharge charge() const { return theParameters.charge(); }
95 
96  const FreeTrajectoryState& theState() const {
97  if (!theFTSavailable)
98  calculateFTS();
99  return theFTS;
100  }
101 
106  bool hasError() const { return errorIsAvailable; }
107 
111  bool isValid() const { return valid; }
112 
114 
120  TrajectoryStateClosestToPoint(const FTS& originalFTS, const GlobalPoint& referencePoint);
121 
122  void calculateFTS() const;
123 
124 private:
126 
127  mutable FTS theFTS;
128 
131  double thePt;
133  bool valid;
134  mutable bool theFTSavailable;
136 };
137 #endif
Vector3DBase
Definition: Vector3DBase.h:8
PerigeeTrajectoryParameters.h
TrajectoryStateOnSurface.h
FreeTrajectoryState.h
funct::false
false
Definition: Factorize.h:29
TrackCharge
int TrackCharge
Definition: TrackCharge.h:4
TrajectoryStateClosestToPoint::theParameters
PerigeeTrajectoryParameters theParameters
Definition: TrajectoryStateClosestToPoint.h:130
TrajectoryStateClosestToPointBuilder
Definition: TrajectoryStateClosestToPointBuilder.h:14
PerigeeTrajectoryParameters
Definition: PerigeeTrajectoryParameters.h:16
TrajectoryStateClosestToPoint::calculateFTS
void calculateFTS() const
Definition: TrajectoryStateClosestToPoint.cc:26
TrajectoryStateClosestToPoint::theFTS
FTS theFTS
Definition: TrajectoryStateClosestToPoint.h:127
PerigeeTrajectoryError
Definition: PerigeeTrajectoryError.h:14
TrajectoryStateClosestToPoint::thePt
double thePt
Definition: TrajectoryStateClosestToPoint.h:131
TrajectoryStateClosestToPoint::errorIsAvailable
bool errorIsAvailable
Definition: TrajectoryStateClosestToPoint.h:135
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
TrajectoryStateClosestToPoint::position
GlobalPoint position() const
Definition: TrajectoryStateClosestToPoint.h:90
PerigeeConversions.h
TrajectoryStateClosestToPoint::hasError
bool hasError() const
Definition: TrajectoryStateClosestToPoint.h:106
PerigeeConversions::positionFromPerigee
GlobalPoint positionFromPerigee(const PerigeeTrajectoryParameters &parameters, const GlobalPoint &referencePoint)
Definition: PerigeeConversions.cc:63
TrajectoryStateClosestToPoint::perigeeError
const PerigeeTrajectoryError & perigeeError() const
Definition: TrajectoryStateClosestToPoint.h:84
Point3DBase< float, GlobalTag >
TrajectoryStateClosestToPoint::perigeeParameters
const PerigeeTrajectoryParameters & perigeeParameters() const
Definition: TrajectoryStateClosestToPoint.h:73
TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint
TrajectoryStateClosestToPoint()
parameter dimension
Definition: TrajectoryStateClosestToPoint.h:24
funct::true
true
Definition: Factorize.h:173
TrajectoryStateClosestToPoint::pt
double pt() const
Definition: TrajectoryStateClosestToPoint.h:78
TrajectoryStateClosestToPoint::thePerigeeError
PerigeeTrajectoryError thePerigeeError
Definition: TrajectoryStateClosestToPoint.h:132
TrajectoryStateClosestToPoint
Definition: TrajectoryStateClosestToPoint.h:18
TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint
TrajectoryStateClosestToPoint(const PerigeeTrajectoryParameters &perigeeParameters, double pt, const PerigeeTrajectoryError &perigeeError, const GlobalPoint &referencePoint, const MagneticField *field)
Definition: TrajectoryStateClosestToPoint.h:48
TrajectoryStateClosestToPoint::valid
bool valid
Definition: TrajectoryStateClosestToPoint.h:133
TrajectoryStateClosestToPoint::theRefPoint
GlobalPoint theRefPoint
Definition: TrajectoryStateClosestToPoint.h:129
FreeTrajectoryState
Definition: FreeTrajectoryState.h:27
PerigeeTrajectoryParameters::charge
TrackCharge charge() const
Definition: PerigeeTrajectoryParameters.h:44
PerigeeConversions::momentumFromPerigee
GlobalVector momentumFromPerigee(const AlgebraicVector3 &momentum, const TrackCharge &charge, const GlobalPoint &referencePoint, const MagneticField *field)
Definition: PerigeeConversions.cc:79
TrajectoryStateClosestToPoint::theField
const MagneticField * theField
Definition: TrajectoryStateClosestToPoint.h:125
TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint
TrajectoryStateClosestToPoint(const PerigeeTrajectoryParameters &perigeeParameters, double pt, const GlobalPoint &referencePoint, const MagneticField *field)
Definition: TrajectoryStateClosestToPoint.h:31
TrajectoryStateClosestToPoint::isValid
bool isValid() const
Definition: TrajectoryStateClosestToPoint.h:111
PerigeeTrajectoryError.h
TrajectoryStateClosestToPoint::referencePoint
const GlobalPoint & referencePoint() const
Definition: TrajectoryStateClosestToPoint.h:67
TrajectoryStateClosestToPoint::FTS
FreeTrajectoryState FTS
Definition: TrajectoryStateClosestToPoint.h:20
TrajectoryStateClosestToPoint::theState
const FreeTrajectoryState & theState() const
Definition: TrajectoryStateClosestToPoint.h:96
TrajectoryStateClosestToPoint::TSOS
TrajectoryStateOnSurface TSOS
Definition: TrajectoryStateClosestToPoint.h:19
TrajectoryStateClosestToPoint::momentum
GlobalVector momentum() const
Definition: TrajectoryStateClosestToPoint.h:92
MagneticField
Definition: MagneticField.h:19
TrajectoryStateClosestToPoint::charge
TrackCharge charge() const
Definition: TrajectoryStateClosestToPoint.h:94
TrajectoryStateClosestToPoint::theFTSavailable
bool theFTSavailable
Definition: TrajectoryStateClosestToPoint.h:134