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) {}
10  GlobalParametersWithPath(const GlobalTrajectoryParameters& gtp, double s) : gtp_(gtp), s_(s), valid_(true) {}
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
GlobalParametersWithPath::s_
double s_
Definition: GlobalParametersWithPath.h:24
Visibility.h
GlobalParametersWithPath::valid_
bool valid_
Definition: GlobalParametersWithPath.h:25
electrons_cff.bool
bool
Definition: electrons_cff.py:393
GlobalTrajectoryParameters.h
funct::false
false
Definition: Factorize.h:29
GlobalParametersWithPath::GlobalParametersWithPath
GlobalParametersWithPath(const GlobalTrajectoryParameters &gtp, double s, bool valid)
Definition: GlobalParametersWithPath.h:11
GlobalParametersWithPath::isValid
bool isValid() const
Definition: GlobalParametersWithPath.h:19
GlobalParametersWithPath::parameters
const GlobalTrajectoryParameters & parameters() const
Definition: GlobalParametersWithPath.h:14
sistrip::valid_
static const uint16_t valid_
Definition: Constants.h:17
alignCSCRings.s
s
Definition: alignCSCRings.py:92
GlobalParametersWithPath
Definition: GlobalParametersWithPath.h:7
GlobalTrajectoryParameters
Definition: GlobalTrajectoryParameters.h:15
GlobalParametersWithPath::GlobalParametersWithPath
GlobalParametersWithPath(const GlobalTrajectoryParameters &gtp, double s)
Definition: GlobalParametersWithPath.h:10
funct::true
true
Definition: Factorize.h:173
GlobalParametersWithPath::gtp_
GlobalTrajectoryParameters gtp_
Definition: GlobalParametersWithPath.h:23
GlobalParametersWithPath::s
double s() const
Definition: GlobalParametersWithPath.h:17
dso_internal
#define dso_internal
Definition: Visibility.h:13
GlobalParametersWithPath::pathLength
double pathLength() const
Definition: GlobalParametersWithPath.h:16
GlobalParametersWithPath::GlobalParametersWithPath
GlobalParametersWithPath()
Definition: GlobalParametersWithPath.h:9
RunInfoPI::valid
Definition: RunInfoPayloadInspectoHelper.h:16