a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models Logo
ThObservable.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 HEPfit Collaboration
3  *
4  *
5  * For the licensing terms see doc/COPYING.
6  */
7 
8 #ifndef THOBSERVABLE_H
9 #define THOBSERVABLE_H
10 
11 class StandardModel;
12 
13 #include <vector>
14 #include <string>
15 
25 class ThObservable {
26 public:
27 
33  : SM(SM_i)
34  {
35  min = 0;
36  max = 0;
37  };
38 
43  : SM(orig.SM)
44  {
45  };
46 
50  virtual ~ThObservable()
51  {
52  };
53 
58  virtual double computeThValue() = 0;
59 
64  void setBinMin(double min)
65  {
66  this->min = min;
67  };
68 
73  void setBinMax(double max)
74  {
75  this->max = max;
76  };
77 
82  double getBinMin()
83  {
84  return min;
85  };
86 
91  double getBinMax()
92  {
93  return max;
94  };
95 
101  {
102  return SM;
103  };
104 
109  void setParametersForObservable(std::vector<std::string> parametersForObservable_i)
110  {
111  this->parametersForObservable = parametersForObservable_i;
112  }
113 
118  const std::vector<std::string> getParametersForObservable()
119  {
121  };
122 
123 protected:
124  const StandardModel& SM;
125  double min;
126  double max;
127  std::vector<std::string> parametersForObservable;
128 };
129 
130 #endif /* THOBSERVABLE_H */
ThObservable::computeThValue
virtual double computeThValue()=0
A member to be overloaded by the respective theory observable. class that calculates the value of the...
ThObservable::ThObservable
ThObservable(const ThObservable &orig)
The copy constructor.
Definition: ThObservable.h:42
ThObservable::setParametersForObservable
void setParametersForObservable(std::vector< std::string > parametersForObservable_i)
A set method to get the parameters for the specific observable.
Definition: ThObservable.h:109
ThObservable::getBinMax
double getBinMax()
A get method to get the maximum value of the bin.
Definition: ThObservable.h:91
ThObservable::setBinMin
void setBinMin(double min)
A set method to set the minimum value of the bin.
Definition: ThObservable.h:64
ThObservable::getModel
const StandardModel & getModel()
A get method to get the model.
Definition: ThObservable.h:100
StandardModel
A model class for the Standard Model.
Definition: StandardModel.h:474
ThObservable::ThObservable
ThObservable(const StandardModel &SM_i)
Constructor.
Definition: ThObservable.h:32
ThObservable::setBinMax
void setBinMax(double max)
A set method to set the maximum value of the bin.
Definition: ThObservable.h:73
ThObservable::min
double min
The bin minimum.
Definition: ThObservable.h:125
ThObservable::parametersForObservable
std::vector< std::string > parametersForObservable
a vector of parameter namesfor the specific observable
Definition: ThObservable.h:127
ThObservable::SM
const StandardModel & SM
A reference to an object of StandardMode class.
Definition: ThObservable.h:121
ThObservable::getParametersForObservable
const std::vector< std::string > getParametersForObservable()
A get method to get the parameters for the specific observable.
Definition: ThObservable.h:118
ThObservable
A class for a model prediction of an observable.
Definition: ThObservable.h:25
ThObservable::getBinMin
double getBinMin()
A get method to get the minimum value of the bin.
Definition: ThObservable.h:82
ThObservable::~ThObservable
virtual ~ThObservable()
The default destructor.
Definition: ThObservable.h:50
ThObservable::max
double max
the bin maximum.
Definition: ThObservable.h:126