7 TF1 f(
"pol2",
"[0]+[1]*x+[2]*x*x");
10 f.SetParameter(2,0.3);
34 paramhandle.Set(calpar);
37 dm.
Set(¶mhandle,
"calibration_parameters.root");
40 void Read(
const char* input) {
41 using namespace Diana;
45 dm.
Get(
"calibration_parameters",¶mhandle,input);
48 if(!paramhandle.IsValid()) {
49 cout<<paramhandle.GetError()<<endl;
void Read(const char *input)
global handle for calibration parameters
object containing calibration data (function, coefficients, source and residuals) and run numbers of ...
std::vector< QCalibrationResiduals > fResiduals
single calibration residual: energy[keV], residual [keV], error on residual [keV]
Object to manage I/O (DB, file, or memory) of diana global quantities.
void SetOwner(const std::string &owner)
set the module that is accessing this object
QError Set(GlobalHandle< Q > *gh, const std::string &outSource, bool printError=true) const
Set a QObject using a GlobalHandle.
QError Get(const std::string &owner, GlobalHandle< Q > *gh, const std::string &inSource, bool printError=true) const
Get an object using a global handle.
the Diana namespace is needed because sometimes we use Qt libraries, that use same class names of our...