CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrajectoryStateClosestToBeamLine.h
Go to the documentation of this file.
1 #ifndef TrajectoryStateClosestToBeamLine_H
2 #define TrajectoryStateClosestToBeamLine_H
3 
8 
16 {
17 public:
18 
20 
22 
24  (const FTS& stateAtPCA, const GlobalPoint & pointOnBeamLine,
25  const reco::BeamSpot & beamSpot);
26 
28 
33  FTS const & trackStateAtPCA() const {
34  if (!isValid()) throw TrajectoryStateException(
35  "TrajectoryStateClosestToBeamLine is invalid.");
36  return theFTS;
37  }
38 
42  GlobalPoint const & beamLinePCA() const {
43  if (!isValid()) throw TrajectoryStateException(
44  "TrajectoryStateClosestToBeamLine is invalid.");
45  return thePointOnBeamLine;
46  }
47 
53 
58  if (!isValid()) throw TrajectoryStateException(
59  "TrajectoryStateClosestToBeamLine is invalid.");
60  return theBeamSpot;
61  }
62 
63  inline bool isValid() const {return valid;}
64 
65 private:
66 
67  bool valid;
71 
72 };
73 #endif