CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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) {}
10  GlobalParametersWithPath(const GlobalTrajectoryParameters& gtp, double s) : gtp_(gtp), s_(s), valid_(true) {}
11  GlobalParametersWithPath(const GlobalTrajectoryParameters& gtp, double s, bool valid)
12  : gtp_(gtp), s_(s), valid_(valid) {}
13 
14  const GlobalTrajectoryParameters& parameters() const { return gtp_; }
15 
16  double pathLength() const { return s_; }
17  double s() const { return pathLength(); }
18 
19  bool isValid() const { return valid_; }
20  operator bool() const { return valid_; }
21 
22 private:
24  double s_;
25  bool valid_;
26 };
27 
28 #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