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