CMS 3D CMS Logo

TrajectoryStateClosestToBeamLine.h
Go to the documentation of this file.
1 #ifndef TrajectoryStateClosestToBeamLine_H
2 #define TrajectoryStateClosestToBeamLine_H
3 
8 
16 public:
18 
20 
22  const GlobalPoint& pointOnBeamLine,
23  const reco::BeamSpot& beamSpot)
24  : theFTS(stateAtPCA), thePointOnBeamLine(pointOnBeamLine), theBeamSpot(beamSpot), valid(true) {}
25 
27 
32  FTS const& trackStateAtPCA() const { return theFTS; }
33 
37  GlobalPoint const& beamLinePCA() const { return thePointOnBeamLine; }
38 
44 
48  reco::BeamSpot const& beamSpot() { return theBeamSpot; }
49 
50  inline bool isValid() const { return valid; }
51 
52 private:
56  bool valid;
57 };
58 #endif
TrajectoryStateClosestToBeamLine(const FTS &stateAtPCA, const GlobalPoint &pointOnBeamLine, const reco::BeamSpot &beamSpot)