CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GlobalParametersWithPath.h
Go to the documentation of this file.
1 #ifndef GlobalParametersWithPath_H
2 #define GlobalParametersWithPath_H
3 
5 
7 public:
10  gtp_(gtp), s_(s), valid_(true) {}
12  double s, bool valid) : 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
GlobalParametersWithPath(const GlobalTrajectoryParameters &gtp, double s, bool valid)