master
|
a Code for the Combination of Indirect and Direct Constraints on High Energy Physics Models
|
|
Go to the documentation of this file.
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 * tho
A pointer of to the object of the ThObservables class.
double computeTheoryValue()
A method to access the computed theory value of the observable.
double getMin() const
A get method to access the minimum value of the observable.
bool isWriteChain() const
A method to check if the observable is listed for writing chains.
double getAve() const
A get method to access the average value of 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.
double max
The maximum valus of the observable.
bool tMCMC
The flag to include or exclude the observable from the MCMC run.
ThObservable * getTho() const
A get method to access the pointer to the object of the ThObservable class.
void setErrgl(double errgl)
A set method to fix the left Gaussian error 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 obsType
Type of the Observable. 0: Observable, 1: HiggsObservable, 2: BinnedObservable, 3: FunctionObservable...
void setBinMin(double min)
A set method to set the minimum value of the 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...
virtual void setParametricLikelihood(std::string filename)
A set method to set a parametric likelihood reading parameters from a file.
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.
void setErrf(double errf)
A set method to fix the flat error of the observable.
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 min
The minimum value of the observable.
double ave
The average value 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)
double errgr
The upper gaussian error of the observable.
void setThname(std::string thname)
A set method to fix the name of the observable as listed in ThFactory class.
std::string getThname() const
A get method to access the thname of the observable as defined in ThFactory class.
bool isTMCMC() const
A method to check if the observable is listed for MCMC.
double getErrg() const
A get method to access the Gaussian error of the observble.
virtual void setParametricLikelihood(std::string filename, std::vector< ThObservable * > thObsV)
double thValue
The theory value of the first observable.
virtual int getNTheoryValues()
bool writeChain
The flag to write the chain for the observable from the MCMC run.
std::string getFilename() const
A get method to access the filename of the observables experimental likelihood file.
void setName(std::string name)
A set method to fix the name for the observable.
virtual double computeWeight(double th1, double th2)
A method to compute the weight associated with the observable.
void setBinMax(double max)
A set method to set the maximum value of the bin.
std::string getHistoname() const
A get method to access the name for the histogram of the observable.
std::string getObsType() const
A get method to get the Observable type.
double LogSplitGaussian(double x, double ave, double errl, double errr)
void setAve(double ave)
A set method to fix the average value of the observable.
double errg
The gaussian error of the observable.
double errf
The flat error of the observable.
double getErrf() const
A get method to access the flat error of the observable.
std::string thname
The name for the observable as fixed in the ThObservable class.
void setDistr(std::string distr)
A set method to fix the name of the distribution of the observable.
void setErrgr(double errgr)
A set method to fix the right Gaussian error of the observable.
virtual int getNChannels()
virtual ~Observable()
The default destructor.
bool hasInverseCovariance
std::string name
A name for the observable.
std::string label
A label for the observable.
int iterationNo
A counter for the interation that helps with the observable caching.
Observable()
The default constructor.
A class for a model prediction of an observable.
void setHasInverseCovariance(bool hasInverseCovariance)
A set method to state that the Observable is a part of ObservablesWithInverseCovariance.
double errgl
The lower gaussian error of the observable.
void setFilename(std::string filename_i)
std::string filename
The name of the file containing the experimental likelihood for the observable.
double bin_max
The maximum valus of the observable bin.
void setLabel(std::string label)
A set method to fix the label for the observable.
void setObsType(std::string &obsType_s)
A set method to set the Observable type.
std::string distr
The name of the distribution of the the observable.
std::string getName() const
A get method to access the name of the observable.
void setTMCMC(bool tMCMC)
A set method to fix the observable's inclusion in the MCMC listing.
void setMax(double max)
A set method to fix the maximum value for the observable.
double LogGaussian(double x, double ave, double sigma)
double getMax() const
A get method to access the maximum value of the observable.
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
double bin_min
The minimum value of the observable bin.
void setTho(ThObservable *tho_i, double bmin, double bmax)
A set method to fix the pointer to object of type ThObservable.