23#include <FairParamList.h>
45 TArrayF* p =
new TArrayF(5);
47 for (
int n = 0; n <
fSpline->GetNp(); n++)
51 fSpline->GetKnot(n, a[0], a[1]);
52 fSpline->GetCoeff(n, b[0], b[1], b[2], b[3], b[4]);
75 TArrayF* p =
new TArrayF(5);
81 if (list->fill(name, p))
83 fSpline->SetPoint(n, p->GetAt(0), p->GetAt(1));
84 fSpline->SetPointCoeff(n, p->GetAt(2), p->GetAt(3), p->GetAt(4));
103 for (
int n = 0; n <
fSpline->GetNp(); n++)
107 fSpline->GetKnot(n, a[0], a[1]);
108 fSpline->GetCoeff(n, b[0], b[1], b[2], b[3], b[4]);
109 LOG(info) <<
"CutPoint" << n <<
": " << a[0] <<
" ; " << a[1];
110 LOG(info) <<
"CutPoint" << n <<
": " << b[0] <<
" ; " << b[1] <<
" ; " << b[2];
115 R3BLOG(warn,
"Spline parameters not found");
#define R3BLOG(severity, x)
ClassImp(R3B::Neuland::Cal2HitPar)
TSpline3 * getParams(FairParamList *list)
Method to retrieve all parameters using FairRuntimeDB.
virtual void putParams(FairParamList *list)
Method to store all parameters using FairRuntimeDB.
R3BTsplinePar(const TString &name="Spline")
Default constructor.
TString GetNameObj()
Accessor functions.
void print()
Method to print values of parameters.