CMS 3D CMS Logo

TrivialError.h
Go to the documentation of this file.
1 #ifndef Geom_TrivialError_H
2 #define Geom_TrivialError_H
3 
4 /* struct to disambiguate constructors
5  *
6  */
7 
8 struct InvalidError {};
9 struct ZeroError {};
10 // diagonal error with all value equal
11 struct TrivialError {
12  double m_value;
13  TrivialError(double v) : m_value(v) {}
14  double value() const { return m_value; }
15  operator double() const { return value(); }
16 };
17 
18 #endif
TrivialError(double v)
Definition: TrivialError.h:13
double value() const
Definition: TrivialError.h:14
double m_value
Definition: TrivialError.h:12