|
ndmspc v1.2.0-0.1.rc5
|
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. | |
| bool | SetParameter (int bin, Double_t value, Double_t error=0.) |
| Set the value and error of a parameter by bin index. | |
| bool | SetParameter (const char *parName, Double_t value, Double_t error=0.) |
| Set the value and error of a parameter by name. | |
| Double_t | GetParameter (int bin) const |
| Get the value of a parameter by bin index. | |
| Double_t | GetParameter (const char *parName) const |
| Get the value of a parameter by name. | |
| Double_t | GetParameterError (int bin) const |
| Get the error of a parameter by bin index. | |
| Double_t | GetParameterError (const char *parName) const |
| Get the error of a parameter by name. | |
| TH1D * | GetHisto () const |
| Returns the associated histogram. | |
| 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 | ( | ) |
| 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::NGnNavigator::Reshape().
|
inline |
Definition at line 86 of file NParameters.h.
| 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().
|
private |
Histogram with parameters.
Definition at line 89 of file NParameters.h.
Referenced by GetHisto(), GetParameter(), GetParameter(), GetParameterError(), GetParameterError(), NParameters(), NParameters(), Print(), SetParameter(), SetParameter(), and ~NParameters().
|
private |
Names of parameters.
Definition at line 90 of file NParameters.h.
Referenced by NParameters(), and NParameters().