1 #ifndef Ndmspc_NParameters_H
2 #define Ndmspc_NParameters_H
16 NParameters(std::vector<std::string> paramNames,
const char * name =
"parameters",
17 const char * title =
"Parameters");
25 virtual void Print(Option_t * option =
"")
const override;
35 bool SetParameter(
int bin, Double_t value, Double_t error = 0.);
45 bool SetParameter(
const char * parName, Double_t value, Double_t error = 0.);
86 std::vector<std::string> GetNames()
const {
return fNames; }
std::vector< std::string > fNames
Names of parameters.
Double_t GetParameter(int bin) const
Get the value of a parameter by bin index.
Double_t GetParameterError(int bin) const
Get the error of a parameter by bin index.
TH1D * GetHisto() const
Returns the associated histogram.
TH1D * fHisto
Histogram with parameters.
bool SetParameter(int bin, Double_t value, Double_t error=0.)
Set the value and error of a parameter by bin index.
virtual void Print(Option_t *option="") const override
Print the parameters.