|
ndmspc
v1.2.0-0.1.rc3
|
NParameters object. More...
#include <NParameters.h>
Public Member Functions | |
| NParameters () | |
| NParameters (std::vector< std::string > paramNames, const char *name="parameters", const char *title="Parameters") | |
| virtual | ~NParameters () |
| virtual void | Print (Option_t *option="") const override |
| Print the parameters. More... | |
| bool | SetParameter (int bin, Double_t value, Double_t error=0.) |
| Set the value and error of a parameter by bin index. More... | |
| bool | SetParameter (const char *parName, Double_t value, Double_t error=0.) |
| Set the value and error of a parameter by name. More... | |
| Double_t | GetParameter (int bin) const |
| Get the value of a parameter by bin index. More... | |
| Double_t | GetParameter (const char *parName) const |
| Get the value of a parameter by name. More... | |
| Double_t | GetParameterError (int bin) const |
| Get the error of a parameter by bin index. More... | |
| Double_t | GetParameterError (const char *parName) const |
| Get the error of a parameter by name. More... | |
| TH1D * | GetHisto () const |
| Returns the associated histogram. More... | |
| std::vector< std::string > | GetNames () const |
Private Attributes | |
| TH1D * | fHisto {nullptr} |
| Histogram with parameters. | |
| std::vector< std::string > | fNames {} |
| Names of parameters. | |
NParameters object.
Definition at line 13 of file NParameters.h.
| Ndmspc::NParameters::NParameters | ( | ) |
Default constructor
Definition at line 12 of file NParameters.cxx.
| Ndmspc::NParameters::NParameters | ( | std::vector< std::string > | paramNames, |
| const char * | name = "parameters", |
||
| const char * | title = "Parameters" |
||
| ) |
|
virtual |
|
inline |
Returns the associated histogram.
Definition at line 84 of file NParameters.h.
References fHisto.
Referenced by Ndmspc::NBinningPoint::RecalculateStorageCoords(), and Ndmspc::NGnNavigator::Reshape().
| Double_t Ndmspc::NParameters::GetParameter | ( | const char * | parName | ) | const |
Get the value of a parameter by name.
| parName | Name of the parameter. |
Get parameter by name
Definition at line 95 of file NParameters.cxx.
References fHisto.
| Double_t Ndmspc::NParameters::GetParameter | ( | int | bin | ) | const |
Get the value of a parameter by bin index.
| bin | Index of the parameter/bin. |
Get parameter by index
Definition at line 83 of file NParameters.cxx.
References fHisto.
| Double_t Ndmspc::NParameters::GetParameterError | ( | const char * | parName | ) | const |
Get the error of a parameter by name.
| parName | Name of the parameter. |
Get parameter error by name
Definition at line 118 of file NParameters.cxx.
References fHisto.
| Double_t Ndmspc::NParameters::GetParameterError | ( | int | bin | ) | const |
Get the error of a parameter by bin index.
| bin | Index of the parameter/bin. |
Get parameter error by index
Definition at line 107 of file NParameters.cxx.
References fHisto.
|
overridevirtual |
Print the parameters.
| option | Optional string to specify print options. |
Print parameters
Definition at line 47 of file NParameters.cxx.
References fHisto.
| bool Ndmspc::NParameters::SetParameter | ( | const char * | parName, |
| Double_t | value, | ||
| Double_t | error = 0. |
||
| ) |
Set the value and error of a parameter by name.
| parName | Name of the parameter. |
| value | Value to set. |
| error | Optional error value (default is 0). |
Set parameter by name
Definition at line 68 of file NParameters.cxx.
References fHisto.
| bool Ndmspc::NParameters::SetParameter | ( | int | bin, |
| Double_t | value, | ||
| Double_t | error = 0. |
||
| ) |
Set the value and error of a parameter by bin index.
| bin | Index of the parameter/bin. |
| value | Value to set. |
| error | Optional error value (default is 0). |
Set parameter by index
Definition at line 55 of file NParameters.cxx.
References fHisto.
Referenced by Ndmspc::NGnTree::NGnTree().