19 #include "Riostream.h"
29 fbRecalibrate(kFALSE),
30 fbReadDatabase(kFALSE),
47 fbRecalibrate(kFALSE),
48 fbReadDatabase(kFALSE),
52 fxCalibSpectrum(spectrum)
80 TString modname = TString::Format(
"A_%d",i);
127 fdA[ord] = from->
fdA[ord];
146 std::cout <<
"Updated Parameter:" << std::endl;
154 std::cout <<
"Graph "<<
fxGraphName.Data() <<
" not existing in analysis"<< std::endl;
158 std::cout <<
"Updated graph pointer ref to "<<
fxCalibCurve << std::endl;
164 std::cout <<
"Reread database" << std::endl;
170 std::cout <<
"Recalibrating..." << std::endl;
253 if(database.eof() || !database.good())
258 }
while(strstr(nextline,
"#") || strstr(nextline,
"!") );
259 if(database.eof() || !database.good())
break;
260 sscanf(nextline,
"%s %f %d",buf,
286 result+=
fdA[ord]*TMath::Power(channel,ord);
TString fxGraphName
Reference to graph containing the calibration points.
TGo4FitDataGraph * AddGraph(const char *DataName, TGraph *gr, Bool_t Owned=kFALSE, Double_t lrange=0., Double_t rrange=0.)
TGo4FitSlot * SetObject(TObject *obj, Bool_t iOwned=kFALSE)
Bool_t UpdateFrom(TGo4Parameter *)
Double_t fdA[__POLORDER__]
TGo4FitModel * FindModel(const char *ModelName)
TString fxLinesNames[__LINESNUMBER__]
void AddPolynomX(const char *DataName, const char *NamePrefix, Int_t MaxOrder=1, Int_t GroupIndex=0, Double_t lrange=0., Double_t rrange=0.)
void ClearAssignmentTo(const char *DataName)
Double_t Energy(Int_t channel)
TGo4FitModelGauss1 * AddGauss1(const char *DataName, const char *ModelName, Double_t iPosition, Double_t iWidth, Double_t iAmpl=1., Int_t Axis=0)
Int_t fiLinesChannel[__LINESNUMBER__]
void DoActions(Bool_t AllowFitterChange=kFALSE, TObjArray *Actions=0)
void SetCalibSpectrum(TH1 *h1)
TGo4Fitter * fxLinesFinder
Int_t PrintParameter(Text_t *n, Int_t)
TGo4Fitter * fxCalibrator
TNamed * GetObject(const char *name, const char *folder=0)
Bool_t IsAssignTo(const char *DataName) const
TGo4FitDataHistogram * SetH1(const char *DataName, TH1 *histo, Bool_t Owned=kFALSE)
static TGo4Analysis * Instance()
static void Error(const char *text,...)
TString fxSpectrumName
Reference to histogram containing the calibration spectrum.
Double_t GetParValue(const char *ParName)
Float_t ffLinesEnergy[__LINESNUMBER__]
TGo4FitDataHistogram * AddH1(const char *DataName, TH1 *histo, Bool_t Owned=kFALSE, Double_t lrange=0., Double_t rrange=0.)