A class for analyzing observables pairwise. More...
#include <Observable2D.h>
A class for analyzing observables pairwise.
The class for building a pair of observables and storing their different parameters read from the SomeModel.conf file or specified by the user. The names (thname) of the observables have to correspond to the allowed names of observables listed in the ThFactory class.
Definition at line 24 of file Observable2D.h.
Public Member Functions | |
double | computeTheoryValue2 () |
A method to access the computed theory value of the second observable. More... | |
virtual double | computeWeight () |
A method to compute the weight associated with the observable. More... | |
virtual double | computeWeight (double th1, double th2) |
A method to compute the weight associated with the observable. More... | |
double | getAve2 () const |
A get method to access the average value of the second observable. More... | |
double | getErrf2 () const |
A get method to access the flat error of the second observable. More... | |
double | getErrg2 () const |
A get method to access the Gaussian error of the second observble. More... | |
std::string | getLabel2 () const |
A get method to access the label for the second observable. More... | |
double | getMax2 () const |
A get method to access the maximum value of the second observable. More... | |
double | getMin2 () const |
A get method to access the minimum value of the second observable. More... | |
std::string | getObsType2 () const |
std::string | getThname2 () const |
A get method to access the thname of the second observable as defined in ThFactory class. More... | |
ThObservable * | getTho2 () const |
A get method to access the pointer to the object of the ThObservable class for the second observable. More... | |
bool | isEOF () |
A method to check if the end of file has been reached. More... | |
Observable2D () | |
The default constructor. More... | |
Observable2D (const Observable &o1d) | |
A conversion constructor. Constructs Observable2D with just one observable. More... | |
Observable2D (const Observable2D &orig) | |
The copy constructor. More... | |
Observable2D (const std::string name_i, const std::string thname_i, const std::string thname2_i, const std::string label_i, const std::string label2_i, const bool tMCMC_i, const double min_i, const double max_i, const double min2_i, const double max2_i, ThObservable *tho_i, ThObservable *tho2_i) | |
Constructor. More... | |
int | ParseObservable2D (std::string &type, boost::tokenizer< boost::char_separator< char > > *tok, boost::tokenizer< boost::char_separator< char > >::iterator &beg, std::string &infilename, std::ifstream &ifile, int lineNo, int rank) |
void | setAve2 (double ave2) |
A set method to fix the average value of the second observable. More... | |
void | setErrf2 (double errf2) |
A set method to fix the flat error of the second observable. More... | |
void | setErrg2 (double errg2) |
A set method to fix the gaussian error of the observable. More... | |
void | setLabel2 (std::string label2) |
A set method to fix the label for the second observable. More... | |
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 read. More... | |
void | setMax2 (double max2) |
A set method to fix the maximum value for the second observable. More... | |
void | setMin2 (double min2) |
A set method to fix the minimum value for the second observable. More... | |
void | setObsType2 (std::string &obsType2_i) |
void | setThname2 (std::string thname2) |
A set method to fix the name of the second observable as listed in ThFactory class. More... | |
void | setTho1Tho2 (ThObservable *tho1_i, ThObservable *tho2_i) |
A set method to fix the pointer to object of type ThObservable class for the second observable. More... | |
void | setTho2 (ThObservable *tho2_i) |
A set method to fix the pointer to object of type ThObservable class for the second observable. More... | |
virtual | ~Observable2D () |
The default destructor. More... | |
![]() | |
double | computeTheoryValue () |
A method to access the computed theory value of the observable. More... | |
virtual double | computeWeight (double th) |
A method to compute the weight associated with the observable. More... | |
virtual double | computeWeight (double th, double ave_i, double errg_i, double errf_i) |
A method to compute the weight associated with the observable. More... | |
double | getAve () const |
A get method to access the average value of the observable. More... | |
std::string | getDistr () const |
A get method to access the name of the distribution of the observable. More... | |
double | getErrf () const |
A get method to access the flat error of the observable. More... | |
double | getErrg () const |
A get method to access the Gaussian error of the observble. More... | |
std::string | getFilename () const |
A get method to access the filename of the observables experimental likelihood file. More... | |
std::string | getHistoname () const |
A get method to access the name for the histogram of the observable. More... | |
std::string | getLabel () const |
A get method to access the label for the observable. More... | |
double | getMax () const |
A get method to access the maximum value of the observable. More... | |
double | getMin () const |
A get method to access the minimum value of the observable. More... | |
std::string | getName () const |
A get method to access the name of the observable. More... | |
virtual int | getNChannels () |
virtual int | getNTheoryValues () |
std::string | getObsType () const |
A get method to get the Observable type. More... | |
virtual void | getTheoryValues (std::vector< double > &theoryValues_i) |
std::string | getThname () const |
A get method to access the thname of the observable as defined in ThFactory class. More... | |
ThObservable * | getTho () const |
A get method to access the pointer to the object of the ThObservable class. More... | |
virtual bool | isNew () |
bool | isTMCMC () const |
A method to check if the observable is listed for MCMC. More... | |
bool | isWriteChain () const |
A method to check if the observable is listed for writing chains. More... | |
double | LogGaussian (double x, double ave, double sigma) |
double | LogSplitGaussian (double x, double ave, double errl, double errr) |
Observable () | |
The default constructor. More... | |
Observable (const Observable &orig) | |
The copy constructor. More... | |
Observable (const std::string name_i, const std::string thname_i, const std::string label_i, const bool tMCMC_i, const double min_i, const double max_i, ThObservable *tho_i) | |
Constructor. More... | |
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. More... | |
void | setAve (double ave) |
A set method to fix the average value of the observable. More... | |
void | setDistr (std::string distr) |
A set method to fix the name of the distribution of the observable. More... | |
void | setErrf (double errf) |
A set method to fix the flat error of the observable. More... | |
void | setErrg (double errg) |
A set method to fix the gaussian error of the observable. More... | |
void | setErrgl (double errgl) |
A set method to fix the left Gaussian error of the observable. More... | |
void | setErrgr (double errgr) |
A set method to fix the right Gaussian error of the observable. More... | |
void | setFilename (std::string filename_i) |
void | setHasInverseCovariance (bool hasInverseCovariance) |
A set method to state that the Observable is a part of ObservablesWithInverseCovariance. More... | |
void | setHistoname (std::string histoname_i) |
A set method to set the name of the histogram containing the likelihood. More... | |
void | setLabel (std::string label) |
A set method to fix the label for the observable. More... | |
void | setMax (double max) |
A set method to fix the maximum value for the observable. More... | |
void | setMin (double min) |
A set method to fix the minimum value for the observable. More... | |
void | setName (std::string name) |
A set method to fix the name for the observable. More... | |
void | setObsType (std::string &obsType_s) |
A set method to set the Observable type. More... | |
virtual void | setParametricLikelihood (std::string filename) |
A set method to set a parametric likelihood reading parameters from a file. More... | |
virtual void | setParametricLikelihood (std::string filename, std::vector< ThObservable * > thObsV) |
void | setThname (std::string thname) |
A set method to fix the name of the observable as listed in ThFactory class. More... | |
void | setTho (ThObservable *tho_i) |
A set method to fix the pointer to object of type ThObservable. More... | |
void | setTho (ThObservable *tho_i, double bmin, double bmax) |
A set method to fix the pointer to object of type ThObservable. More... | |
void | setTMCMC (bool tMCMC) |
A set method to fix the observable's inclusion in the MCMC listing. More... | |
virtual | ~Observable () |
The default destructor. More... | |
Private Attributes | |
double | ave2 |
The average value of the second observable. More... | |
std::vector< double > | bin_max |
The maximum value of the bin. More... | |
std::vector< double > | bin_min |
The minimum value of the bin. More... | |
double | errf2 |
the flat error of the second observable. More... | |
double | errg2 |
The Gaussian error of the second observable. More... | |
double | errgl2 |
The left Gaussian error of the second observable. More... | |
double | errgr2 |
The right Gaussian error of the second observable. More... | |
std::string | filepath |
The path to the file being parsed. More... | |
TH2D * | inhisto2d |
2D Histogram containing the experimental likelihood for the observable. More... | |
bool | IsEOF |
A bolean that is true if the end of file is reached. More... | |
int | iterationNo2 |
Counts the iteration to help with caching. More... | |
std::string | label2 |
A label for the second observable. More... | |
double | max2 |
The maximum valus of the second observable. More... | |
double | min2 |
The minimum value of the second observable. More... | |
std::string | obsType2 |
Type of the second Observable. 0: Observable, 1: HiggsObservable, 2: BinnedObservable, 3: FunctionObservable. More... | |
std::string | thname2 |
The name for the second observable as fixed in the ThObservable() class. More... | |
ThObservable * | tho2 |
A pointer to an object of the ThObservable class. More... | |
double | thValue2 |
The theory value of the second observable. More... | |
Additional Inherited Members | |
![]() | |
double | ave |
The average value of the observable. More... | |
double | bin_max |
The maximum valus of the observable bin. More... | |
double | bin_min |
The minimum value of the observable bin. More... | |
std::string | distr |
The name of the distribution of the the observable. More... | |
double | errf |
The flat error of the observable. More... | |
double | errg |
The gaussian error of the observable. More... | |
double | errgl |
The lower gaussian error of the observable. More... | |
double | errgr |
The upper gaussian error of the observable. More... | |
std::string | filename |
The name of the file containing the experimental likelihood for the observable. More... | |
bool | hasInverseCovariance |
std::string | histoname |
The name of the histogram for the observable. More... | |
TH1D * | inhisto |
1D Histogram containing the experimental likelihood for the observable More... | |
int | iterationNo |
A counter for the interation that helps with the observable caching. More... | |
std::string | label |
A label for the observable. More... | |
double | max |
The maximum valus of the observable. More... | |
double | min |
The minimum value of the observable. More... | |
std::string | name |
A name for the observable. More... | |
std::string | obsType |
Type of the Observable. 0: Observable, 1: HiggsObservable, 2: BinnedObservable, 3: FunctionObservable. More... | |
std::string | thname |
The name for the observable as fixed in the ThObservable class. More... | |
ThObservable * | tho |
A pointer of to the object of the ThObservables class. More... | |
double | thValue |
The theory value of the first observable. More... | |
bool | tMCMC |
The flag to include or exclude the observable from the MCMC run. More... | |
bool | writeChain |
The flag to write the chain for the observable from the MCMC run. More... | |
Observable2D::Observable2D | ( | const std::string | name_i, |
const std::string | thname_i, | ||
const std::string | thname2_i, | ||
const std::string | label_i, | ||
const std::string | label2_i, | ||
const bool | tMCMC_i, | ||
const double | min_i, | ||
const double | max_i, | ||
const double | min2_i, | ||
const double | max2_i, | ||
ThObservable * | tho_i, | ||
ThObservable * | tho2_i | ||
) |
Constructor.
[in] | name_i | a given name for the observable pair |
[in] | thname_i | the thname for the first observable fixed in ThFactory |
[in] | thname2_i | the thname for the second observable fixed in ThFactory |
[in] | label_i | the label assigned to the first observable |
[in] | label2_i | the label assigned to the second observable |
[in] | tMCMC_i | boolean flag to indicate inclusion in MCMC |
[in] | min_i | minimum value for the first observable |
[in] | max_i | maximum value for the first observable |
[in] | min2_i | minimum value for the second observable |
[in] | max2_i | maximum value for the second observable |
[in] | tho_i | a pointer to an object of type ThObservable for the first observable |
[in] | tho2_i | a pointer to an object of type ThObservable for the second observable |
Definition at line 15 of file Observable2D.cpp.
Observable2D::Observable2D | ( | ) |
The default constructor.
Definition at line 58 of file Observable2D.cpp.
Observable2D::Observable2D | ( | const Observable & | o1d | ) |
A conversion constructor. Constructs Observable2D with just one observable.
Definition at line 42 of file Observable2D.cpp.
Observable2D::Observable2D | ( | const Observable2D & | orig | ) |
The copy constructor.
Definition at line 74 of file Observable2D.cpp.
|
virtual |
double Observable2D::computeTheoryValue2 | ( | ) |
A method to access the computed theory value of the second observable.
Definition at line 107 of file Observable2D.cpp.
|
inlinevirtual |
A method to compute the weight associated with the observable.
Reimplemented from Observable.
Definition at line 212 of file Observable2D.h.
|
virtual |
A method to compute the weight associated with the observable.
[in] | th1 | the theoretical value of the first observable |
[in] | th2 | the theoretical value of the second observable |
Reimplemented from Observable.
Definition at line 139 of file Observable2D.cpp.
|
inline |
A get method to access the average value of the second observable.
Definition at line 231 of file Observable2D.h.
|
inline |
A get method to access the flat error of the second observable.
Definition at line 249 of file Observable2D.h.
|
inline |
A get method to access the Gaussian error of the second observble.
Definition at line 267 of file Observable2D.h.
|
inline |
A get method to access the label for the second observable.
Definition at line 101 of file Observable2D.h.
|
inline |
A get method to access the maximum value of the second observable.
Definition at line 119 of file Observable2D.h.
|
inline |
A get method to access the minimum value of the second observable.
Definition at line 137 of file Observable2D.h.
|
inline |
Definition at line 222 of file Observable2D.h.
|
inline |
A get method to access the thname of the second observable as defined in ThFactory class.
Definition at line 155 of file Observable2D.h.
|
inline |
A get method to access the pointer to the object of the ThObservable class for the second observable.
Definition at line 174 of file Observable2D.h.
|
inline |
A method to check if the end of file has been reached.
Definition at line 285 of file Observable2D.h.
int Observable2D::ParseObservable2D | ( | std::string & | type, |
boost::tokenizer< boost::char_separator< char > > * | tok, | ||
boost::tokenizer< boost::char_separator< char > >::iterator & | beg, | ||
std::string & | infilename, | ||
std::ifstream & | ifile, | ||
int | lineNo, | ||
int | rank | ||
) |
Definition at line 160 of file Observable2D.cpp.
|
inline |
A set method to fix the average value of the second observable.
[in] | ave2 | the average value of the observable |
Definition at line 240 of file Observable2D.h.
|
inline |
A set method to fix the flat error of the second observable.
[in] | errf2 | the flat error of the observable |
Definition at line 258 of file Observable2D.h.
|
inline |
A set method to fix the gaussian error of the observable.
[in] | errg2 | the Gaussian error of the observable |
Definition at line 276 of file Observable2D.h.
|
inline |
A set method to fix the label for the second observable.
[in] | label2 | the label for the second observable |
Definition at line 110 of file Observable2D.h.
|
virtual |
A set method to set the likelihood from which the experimental likelihood of the observable will be read.
filename | the name of the file |
histoname | the name of the histogram |
Reimplemented from Observable.
Definition at line 118 of file Observable2D.cpp.
|
inline |
A set method to fix the maximum value for the second observable.
[in] | max2 | the maximum value for the second observable |
Definition at line 128 of file Observable2D.h.
|
inline |
A set method to fix the minimum value for the second observable.
[in] | min2 | the minimum value for the second observable |
Definition at line 146 of file Observable2D.h.
|
inline |
Definition at line 217 of file Observable2D.h.
|
inline |
A set method to fix the name of the second observable as listed in ThFactory class.
[in] | thname2 | the name of the second observable as listed in ThFactory class |
Definition at line 164 of file Observable2D.h.
|
inline |
A set method to fix the pointer to object of type ThObservable class for the second observable.
[in] | tho2 | pointer to the object of type ThObservable() for the second observable |
Definition at line 196 of file Observable2D.h.
|
inline |
A set method to fix the pointer to object of type ThObservable class for the second observable.
[in] | tho2 | pointer to the object of type ThObservable() for the second observable |
Definition at line 184 of file Observable2D.h.
|
private |
The average value of the second observable.
Definition at line 295 of file Observable2D.h.
|
private |
The maximum value of the bin.
Definition at line 304 of file Observable2D.h.
|
private |
The minimum value of the bin.
Definition at line 303 of file Observable2D.h.
|
private |
the flat error of the second observable.
Definition at line 297 of file Observable2D.h.
|
private |
The Gaussian error of the second observable.
Definition at line 296 of file Observable2D.h.
|
private |
The left Gaussian error of the second observable.
Definition at line 298 of file Observable2D.h.
|
private |
The right Gaussian error of the second observable.
Definition at line 299 of file Observable2D.h.
|
private |
The path to the file being parsed.
Definition at line 305 of file Observable2D.h.
|
private |
2D Histogram containing the experimental likelihood for the observable.
Definition at line 302 of file Observable2D.h.
|
private |
A bolean that is true if the end of file is reached.
Definition at line 308 of file Observable2D.h.
|
private |
Counts the iteration to help with caching.
Definition at line 306 of file Observable2D.h.
|
private |
A label for the second observable.
Definition at line 292 of file Observable2D.h.
|
private |
The maximum valus of the second observable.
Definition at line 294 of file Observable2D.h.
|
private |
The minimum value of the second observable.
Definition at line 293 of file Observable2D.h.
|
private |
Type of the second Observable. 0: Observable, 1: HiggsObservable, 2: BinnedObservable, 3: FunctionObservable.
Definition at line 300 of file Observable2D.h.
|
private |
The name for the second observable as fixed in the ThObservable() class.
Definition at line 291 of file Observable2D.h.
|
private |
A pointer to an object of the ThObservable class.
Definition at line 301 of file Observable2D.h.
|
private |
The theory value of the second observable.
Definition at line 307 of file Observable2D.h.