16 #include <boost/tokenizer.hpp>
41 const std::string thname_i,
42 const std::string label_i,
67 boost::tokenizer<boost::char_separator<char> >::iterator &
ParseObservable(std::string& type,
68 boost::tokenizer<boost::char_separator<char> >* tok,
69 boost::tokenizer<boost::char_separator<char> >::iterator & beg,
70 std::string& filepath,
71 std::string& infilename,
97 virtual double computeWeight(
double th,
double ave_i,
double errg_i,
double errf_i);
428 virtual bool isNew() {
return false; };
void setTho(ThObservable *tho_i, double bmin, double bmax)
A set method to fix the pointer to object of type ThObservable.
double bin_min
The minimum value of the observable bin.
void setErrf(double errf)
A set method to fix the flat error of the observable.
std::string getObsType() const
A get method to get the Observable type.
void setErrg(double errg)
A set method to fix the gaussian error of the observable.
std::string getLabel() const
A get method to access the label for the observable.
double getMin() const
A get method to access the minimum value of the observable.
std::string obsType
Type of the Observable. 0: Observable, 1: HiggsObservable, 2: BinnedObservable, 3: FunctionObservable...
double min
The minimum value of the observable.
virtual void setParametricLikelihood(std::string filename)
A set method to set a parametric likelihood reading parameters from a file.
double max
The maximum valus of the observable.
void setTho(ThObservable *tho_i)
A set method to fix the pointer to object of type ThObservable.
virtual double computeWeight()
A method to compute the weight associated with the observable.
std::string histoname
The name of the histogram for the observable.
void setMin(double min)
A set method to fix the minimum value for the observable.
std::string getDistr() const
A get method to access the name of the distribution of the observable.
bool tMCMC
The flag to include or exclude the observable from the MCMC run.
std::string getHistoname() const
A get method to access the name for the histogram of the observable.
double getAve() const
A get method to access the average value of the observable.
A class for a model prediction of an observable.
double ave
The average value of the observable.
boost::tokenizer< boost::char_separator< char > >::iterator & ParseObservable(std::string &type, boost::tokenizer< boost::char_separator< char > > *tok, boost::tokenizer< boost::char_separator< char > >::iterator &beg, std::string &filepath, std::string &infilename, int rank)
The parser for Observables.
bool isTMCMC() const
A method to check if the observable is listed for MCMC.
void setThname(std::string thname)
A set method to fix the name of the observable as listed in ThFactory class.
void setBinMin(double min)
A set method to set the minimum value of the bin.
std::string getThname() const
A get method to access the thname of the observable as defined in ThFactory class.
double errg
The gaussian error of the observable.
friend std::ostream & operator<<(std::ostream &output, const Observable &o)
Befriending of the std::ostream operator << to generate an output stream for printing the observables...
virtual void getTheoryValues(std::vector< double > &theoryValues_i)
virtual void setParametricLikelihood(std::string filename, std::vector< ThObservable * > thObsV)
void setAve(double ave)
A set method to fix the average value of the observable.
virtual ~Observable()
The default destructor.
std::string getName() const
A get method to access the name of the observable.
virtual int getNTheoryValues()
virtual double computeWeight(double th1, double th2)
A method to compute the weight associated with the observable.
virtual int getNChannels()
double thValue
The theory value of the first observable.
double errf
the flat error of the observable.
void setBinMax(double max)
A set method to set the maximum value of the bin.
void setName(std::string name)
A set method to fix the name for the observable.
std::string getFilename() const
A get method to access the filename of the observables experimental likelihood file.
std::string label
A label for the observable.
double LogSplitGaussian(double x, double ave, double errl, double errr)
int iterationNo
A counter for the interation that helps with the observable caching.
std::string thname
The name for the oservable as fixed in the ThObservable class.
void setFilename(std::string filename_i)
void setDistr(std::string distr)
A set method to fix the name of the distribution of the observable.
double LogGaussian(double x, double ave, double sigma)
double getErrf() const
A get method to access the flat error of the observable.
Observable()
The default constructor.
ThObservable * getTho() const
A get method to access the pointer to the object of the ThObservable class.
void setMax(double max)
A set method to fix the maximum value for the observable.
void setTMCMC(bool tMCMC)
A set method to fix the observable's inclusion in the MCMC listing.
std::string name
A name for the observable.
std::string filename
The name of the file containing the experimental likelihood for the observable.
double getMax() const
A get method to access the maximum value of the observable.
ThObservable * tho
A pointer of to the object of the ThObservables class.
void setLabel(std::string label)
A set method to fix the label for the observable.
double computeTheoryValue()
A method to access the computed theory value of the observable.
double getErrg() const
A get method to access the Gaussian error of the observble.
void setHistoname(std::string histoname_i)
A set method to set the name of the histogram containing the likelihood.
TH1D * inhisto
1D Histogram containing the experimental likelihood for the observable
std::string distr
The name of the distribution of the the observable.
void setObsType(std::string &obsType_s)
A set method to set the Observable type.
double bin_max
The maximum valus of the observable bin.
virtual void setLikelihoodFromHisto(std::string filename, std::string histoname)
A set method to set the likelihood from which the experimental likelihood of the observable will be r...