CMS 3D CMS Logo

PerigeeKinematicState.h
Go to the documentation of this file.
1 #ifndef PerigeeKinematicState_H
2 #define PerigeeKinematicState_H
3 
7 
22 public:
24  vl = false;
25  errorIsAvailable = false;
26  }
27 
32  bool hasError() const {
33  if (!(isValid()))
34  throw VertexException("PerigeeKinematicState::error is requested for the invalid state");
35  return errorIsAvailable;
36  }
37 
38  bool isValid() const { return vl; }
39 
40  const KinematicState& theState() const {
41  if (!isValid())
42  throw VertexException("PerigeeKinematicState::initial state is requested for the invalid state");
43  return inState;
44  }
45 
49  const GlobalPoint referencePoint() const {
50  if (!isValid())
51  throw VertexException("PerigeeKinematicState::point is requested for the invalid state");
52  return point;
53  }
54 
60  if (!(isValid()))
61  throw VertexException("PerigeeKinematicState::requesting perigee error for invalid state");
62  if (!(hasError()))
63  throw VertexException("PerigeeKinematicState::requesting perigee error when none available");
64  return cov;
65  }
66 
71  if (!(isValid()))
72  throw VertexException("PerigeeKinematicState::requesting perigee parameters for invalid state");
73  return par;
74  }
75 
76 private:
78 
79  PerigeeKinematicState(const KinematicState& state, const GlobalPoint& pt);
80  /*
81  AlgebraicMatrix jacobianKinematicToExPerigee(const KinematicState& state,
82  const GlobalPoint& pt)const;
83  AlgebraicMatrix jacobianExPerigeeToKinematic(const ExtendedPerigeeTrajectoryParameters& state,
84  const GlobalPoint& point)const;
85 */
87 
88 private:
94  bool vl;
95 };
96 #endif
AlgebraicMatrix jacobianCurvilinear2Perigee(const FreeTrajectoryState &fts) const
Common base class.
ExtendedPerigeeTrajectoryError cov
CLHEP::HepMatrix AlgebraicMatrix
const ExtendedPerigeeTrajectoryError & perigeeError() const
ExtendedPerigeeTrajectoryParameters par
const GlobalPoint referencePoint() const
const KinematicState & theState() const
const ExtendedPerigeeTrajectoryParameters & perigeeParameters() const