CMS 3D CMS Logo

GlobalParametersWithPath.h
Go to the documentation of this file.
1 #ifndef GlobalParametersWithPath_H
2 #define GlobalParametersWithPath_H
3 
6 
8 public:
9  GlobalParametersWithPath() : gtp_(), s_(0), valid_(false) {}
11  gtp_(gtp), s_(s), valid_(true) {}
13  double s, bool valid) : gtp_(gtp), s_(s), valid_(valid) {}
14 
15  const GlobalTrajectoryParameters& parameters() const {return gtp_;}
16 
17  double pathLength() const {return s_;}
18  double s() const {return pathLength();}
19 
20  bool isValid() const {return valid_;}
21  operator bool() const {return valid_;}
22 
23 private:
25  double s_;
26  bool valid_;
27 };
28 
29 #endif
GlobalTrajectoryParameters gtp_
GlobalParametersWithPath(const GlobalTrajectoryParameters &gtp, double s)
const GlobalTrajectoryParameters & parameters() const
static const uint16_t valid_
Definition: Constants.h:17
GlobalParametersWithPath(const GlobalTrajectoryParameters &gtp, double s, bool valid)
#define dso_internal
Definition: Visibility.h:13