BCVariable.h
54 BCVariable(const std::string& name, double lowerlimit, double upperlimit, const std::string& latexname = "", const std::string& unitstring = "");
93 { if (GetUnitString().empty()) return GetLatexName(); return GetLatexName() + " " + GetUnitString(); }
306 virtual TH3* CreateH3(const std::string& name, const BCVariable& ordinate_y, const BCVariable& ordinate_z) const;
std::string fSafeName
Safe name of the variable for use in ROOT object naming.
Definition: BCVariable.h:323
virtual TH1 * CreateH1(const std::string &name) const
Creates a 1D Histogram for this variable.
Definition: BCVariable.cxx:132
virtual bool IsSafeNamed(const std::string &safename) const
Check if safe name is that of variable.
Definition: BCVariable.h:220
virtual std::string OneLineSummary(bool print_prefix=true, int name_length=-1) const
Definition: BCVariable.cxx:98
virtual const std::string & GetUnitString() const
Definition: BCVariable.h:87
virtual std::string H2Title(const BCVariable &ordinate) const
Definition: BCVariable.cxx:115
unsigned fNbins
The number of equal-size bins used in histograms involving this variable.
Definition: BCVariable.h:347
virtual bool IsWithinLimits(double value) const
Definition: BCVariable.h:250
virtual std::string H3Title(const BCVariable &ordinate_y, const BCVariable &ordinate_z) const
Definition: BCVariable.cxx:123
virtual bool IsNamed(const std::string &name) const
Check if name is that of variable.
Definition: BCVariable.h:214
virtual void FillHistograms(bool flag)
Set the filling of 1D and 2D histograms.
Definition: BCVariable.h:183
virtual void CalculatePrecision(bool force=false)
Calculate the necessary precision for outputting this parameter and replace current precision is smal...
Definition: BCVariable.cxx:70
virtual const std::string & GetLatexName() const
Definition: BCVariable.h:82
virtual void SetUnitString(const std::string &unit_string)
Definition: BCVariable.h:153
virtual void SetLatexName(const std::string &latex_name)
Definition: BCVariable.h:148
virtual void SetLimits(double lowerlimit=0, double upperlimit=1)
Set the limits of the variable values.
Definition: BCVariable.cxx:59
virtual double GetRangeCenter() const
Returns center of variable range.
Definition: BCVariable.h:114
virtual std::string GetLatexNameWithUnits() const
Definition: BCVariable.h:92
virtual double PositionInRange(double x) const
return position in range of given value from 0 (at lower limit) to 1 (at upper limit) ...
Definition: BCVariable.h:228
virtual void SetLowerLimit(double limit)
Set the lower limit of the variable values.
Definition: BCVariable.h:159
virtual void FillHistograms(bool fill_1d, bool fill_2d)
Set the filling of 1D and 2D histograms.
Definition: BCVariable.h:190
virtual void SetPrecision(unsigned precision)
Set the precision of the output of variable.
Definition: BCVariable.h:177
virtual double ValueFromPositionInRange(double p) const
Translate from unit interval to value in variable range.
Definition: BCVariable.h:235
virtual double GetUniformRandomValue(TRandom *const R) const
Get random value uniformly distributed in range.
Definition: BCVariable.cxx:159
virtual void PrintSummary() const
Prints a variable summary on the screen.
Definition: BCVariable.cxx:89
virtual void SetUpperLimit(double limit)
Set the upper limit of the variable values.
Definition: BCVariable.h:165
virtual double GetRangeWidth() const
Returns the range width of the variable values.
Definition: BCVariable.h:109