BCVariableSet.h
64 BCLog::OutError("BCVariableSet::Add : Variable with safe name " + var.GetSafeName() + " exists already.");
83 virtual bool Add(const std::string& name, double min, double max, const std::string& latexname = "", const std::string& unitstring = "")
91 BCLog::OutError("BCVariableSet::Add : Variable with safe name " + fVars[i].GetSafeName() + "%s exists already.");
virtual std::vector< double > PositionInRange(const std::vector< double > &x) const
return positions in ranges of given values from 0 (at lower limit) to 1 (at upper limit) for each var...
Definition: BCVariableSet.h:260
virtual unsigned Index(const std::string &name) const
Find index of parameter identified by name; return Size() if name not found.
Definition: BCVariableSet.h:157
virtual const T & At(unsigned index) const
Safe access, but slightly less efficient access to parameter.
Definition: BCVariableSet.h:127
virtual void PrintSummary() const
Print summary of variable set to logs.
Definition: BCVariableSet.h:303
virtual bool Add(const std::string &name, double min, double max, const std::string &latexname="", const std::string &unitstring="")
Add a variable.
Definition: BCVariableSet.h:83
unsigned fMaxNameLength
Maximum length (in characters) of variable names.
Definition: BCVariableSet.h:318
virtual bool Add(const T &var)
Add a variable if no variable of same name exists yet.
Definition: BCVariableSet.h:56
virtual void FillH2(bool flag)
Set fill-histograms flag for all 2D histograms for all parameters.
Definition: BCVariableSet.h:219
virtual void FillHistograms(bool flag)
Set fill-histograms flag for 1D and 2D histograms for all parameters.
Definition: BCVariableSet.h:197
virtual void FillHistograms(bool flag_1d, bool flag_2d)
Set fill-histograms flag for 1D and 2D histograms for all parameters.
Definition: BCVariableSet.h:204
virtual bool IsWithinLimits(const std::vector< double > &x) const
Definition: BCVariableSet.h:244
std::string SafeName(const std::string &name)
Convert a name into a safe name for use in ROOT object naming.
Definition: BCAux.cxx:111
virtual void FillH1(bool flag)
Set fill-histograms flag for all 1D histograms for all parameters.
Definition: BCVariableSet.h:210
virtual const T & Get(const std::string &name) const
Safe access, but slightly less efficient access to parameter.
Definition: BCVariableSet.h:141
virtual std::vector< double > GetUniformRandomValues(TRandom *const R) const
Get vector of uniformly distributed random values.
Definition: BCVariableSet.h:293
virtual const T & operator[](unsigned index) const
Raw and fast access.
Definition: BCVariableSet.h:113
virtual void SetNBins(unsigned nbins)
Set number of bins for all parameters.
Definition: BCVariableSet.h:179
virtual void SetPrecision(unsigned n)
Set precision for output of all parameters.
Definition: BCVariableSet.h:188
virtual void ValueFromPositionInRange(std::vector< double > &p) const
Translate from unit interval to values in variable ranges.
Definition: BCVariableSet.h:271
Wrapper to allow access by name into list of BCVariable.
Definition: BCVariableSet.h:35
virtual T & Get(const std::string &name)
Safe access, but slightly less efficient access to parameter.
Definition: BCVariableSet.h:134
virtual std::vector< double > GetRangeCenters() const
Definition: BCVariableSet.h:281
virtual T & At(unsigned index)
Safe access, but slightly less efficient access to parameter.
Definition: BCVariableSet.h:120