ThObservable.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 HEPfit Collaboration
3  * All rights reserved.
4  *
5  * For the licensing terms see doc/COPYING.
6  */
7 
8 #ifndef THOBSERVABLE_H
9 #define THOBSERVABLE_H
10 
11 #include <StandardModel.h>
12 
22 class ThObservable {
23 public:
24 
30  : SM(SM_i)
31  {
32  min = 0;
33  max = 0;
34  };
35 
40  : SM(orig.SM)
41  {
42  };
43 
47  virtual ~ThObservable()
48  {
49  };
50 
55  virtual double computeThValue() = 0;
56 
61  void setBinMin(double min)
62  {
63  this->min = min;
64  };
65 
70  void setBinMax(double max)
71  {
72  this->max = max;
73  };
74 
79  double getBinMin()
80  {
81  return min;
82  };
83 
88  double getBinMax()
89  {
90  return max;
91  };
92 
98  return SM;
99  };
100 
101 protected:
102  const StandardModel& SM;
103  double min;
104  double max;
105 };
106 
107 #endif /* THOBSERVABLE_H */
double min
The bin minimum.
Definition: ThObservable.h:103
virtual double computeThValue()=0
A member to be overloaded by the respective theory observable. class that calculates the value of the...
ThObservable(const ThObservable &orig)
The copy constructor.
Definition: ThObservable.h:39
A class for a model prediction of an observable.
Definition: ThObservable.h:22
A model class for the Standard Model.
void setBinMin(double min)
A set method to set the minimum value of the bin.
Definition: ThObservable.h:61
double getBinMin()
A get method to get the minimum value of the bin.
Definition: ThObservable.h:79
double getBinMax()
A get method to get the maximum value of the bin.
Definition: ThObservable.h:88
void setBinMax(double max)
A set method to set the maximum value of the bin.
Definition: ThObservable.h:70
const StandardModel & SM
A reference to an object of StandardMode class.
Definition: ThObservable.h:99
ThObservable(const StandardModel &SM_i)
Constructor.
Definition: ThObservable.h:29
virtual ~ThObservable()
The default destructor.
Definition: ThObservable.h:47
const StandardModel & getModel()
A get method to get the model.
Definition: ThObservable.h:97
double max
the bin maximum.
Definition: ThObservable.h:104