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 
9 struct InvalidError{};
10 struct ZeroError{};
11 // diagonal error with all value equal
12 struct TrivialError {
13  double m_value;
14  TrivialError(double v) : m_value(v){}
15  double value() const { return m_value;}
16  operator double() const { return value();}
17 };
18 
19 
20 #endif
TrivialError(double v)
Definition: TrivialError.h:14
double m_value
Definition: TrivialError.h:13
double value() const
Definition: TrivialError.h:15