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
11class StandardModel;
12
13#include <vector>
14#include <string>
15
26public:
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
123protected:
125 double min;
126 double max;
127 std::vector<std::string> parametersForObservable;
128};
129
130#endif /* THOBSERVABLE_H */
A model class for the Standard Model.
A class for a model prediction of an observable.
Definition: ThObservable.h:25
double max
the bin maximum.
Definition: ThObservable.h:126
void setBinMax(double max)
A set method to set the maximum value of the bin.
Definition: ThObservable.h:73
void setParametersForObservable(std::vector< std::string > parametersForObservable_i)
A set method to get the parameters for the specific observable.
Definition: ThObservable.h:109
const std::vector< std::string > getParametersForObservable()
A get method to get the parameters for the specific observable.
Definition: ThObservable.h:118
double min
The bin minimum.
Definition: ThObservable.h:125
virtual ~ThObservable()
The default destructor.
Definition: ThObservable.h:50
ThObservable(const StandardModel &SM_i)
Constructor.
Definition: ThObservable.h:32
void setBinMin(double min)
A set method to set the minimum value of the bin.
Definition: ThObservable.h:64
const StandardModel & getModel()
A get method to get the model.
Definition: ThObservable.h:100
virtual double computeThValue()=0
A member to be overloaded by the respective theory observable. class that calculates the value of the...
double getBinMin()
A get method to get the minimum value of the bin.
Definition: ThObservable.h:82
ThObservable(const ThObservable &orig)
The copy constructor.
Definition: ThObservable.h:42
std::vector< std::string > parametersForObservable
a vector of parameter namesfor the specific observable
Definition: ThObservable.h:127
double getBinMax()
A get method to get the maximum value of the bin.
Definition: ThObservable.h:91
const StandardModel & SM
A reference to an object of StandardMode class.
Definition: ThObservable.h:121