#include <TXXXCalibPar.h>
Public Member Functions | |
TXXXCalibPar () | |
TXXXCalibPar (const char *name, TH1 *spectrum, TGraph *curve) | |
virtual | ~TXXXCalibPar () |
Int_t | PrintParameter (Text_t *n, Int_t) |
Bool_t | UpdateFrom (TGo4Parameter *) |
void | ReadDatabase () |
void | SetCalibSpectrum (TH1 *h1) |
Double_t | Energy (Int_t channel) |
Public Attributes | |
Double_t | fdA [__POLORDER__] |
Bool_t | fbRecalibrate |
Bool_t | fbReadDatabase |
TString | fxDatabase |
Int_t | fiLinesChannel [__LINESNUMBER__] |
Float_t | ffLinesEnergy [__LINESNUMBER__] |
TString | fxLinesNames [__LINESNUMBER__] |
TGo4Fitter * | fxLinesFinder |
TGo4Fitter * | fxCalibrator |
TGraph * | fxCalibCurve |
TString | fxGraphName |
Reference to graph containing the calibration points. | |
TH1 * | fxCalibSpectrum |
TString | fxSpectrumName |
Reference to histogram containing the calibration spectrum. |
Definition at line 29 of file TXXXCalibPar.h.
TXXXCalibPar::TXXXCalibPar | ( | ) |
Definition at line 27 of file TXXXCalibPar.cxx.
References fdA, ffLinesEnergy, fiLinesChannel, fxDatabase, and fxLinesNames.
TXXXCalibPar::TXXXCalibPar | ( | const char * | name, | |
TH1 * | spectrum, | |||
TGraph * | curve | |||
) |
Definition at line 45 of file TXXXCalibPar.cxx.
References __DATANAME__, __GRAPHNAME__, __POLORDER__, TGo4Fitter::AddGraph(), TGo4Fitter::AddH1(), TGo4Fitter::AddPolynomX(), TGo4FitModel::ClearAssignmentTo(), TGo4Log::Error(), fdA, TGo4Fitter::ff_least_squares, ffLinesEnergy, fiLinesChannel, TGo4Fitter::FindModel(), fxCalibCurve, fxCalibrator, fxCalibSpectrum, fxDatabase, fxGraphName, fxLinesFinder, fxSpectrumName, and ReadDatabase().
TXXXCalibPar::~TXXXCalibPar | ( | ) | [virtual] |
Definition at line 97 of file TXXXCalibPar.cxx.
References fxCalibrator, and fxLinesFinder.
Double_t TXXXCalibPar::Energy | ( | Int_t | channel | ) |
Definition at line 273 of file TXXXCalibPar.cxx.
References fdA.
Int_t TXXXCalibPar::PrintParameter | ( | Text_t * | buffer, | |
Int_t | buflen | |||
) | [virtual] |
Basic method to printout information on stdout; to be overridden by specific subclass
Reimplemented from TGo4Parameter.
Definition at line 105 of file TXXXCalibPar.cxx.
void TXXXCalibPar::ReadDatabase | ( | ) |
Definition at line 228 of file TXXXCalibPar.cxx.
References __DATANAME__, __TEXTMAX__, TGo4Fitter::AddGauss1(), TGo4Log::Error(), ffLinesEnergy, fiLinesChannel, fxDatabase, fxLinesFinder, and fxLinesNames.
Referenced by TXXXCalibPar(), and UpdateFrom().
void TXXXCalibPar::SetCalibSpectrum | ( | TH1 * | h1 | ) | [inline] |
Definition at line 41 of file TXXXCalibPar.h.
References fxCalibSpectrum.
Referenced by TXXXUnpackProc::CreateRawHsitograms().
Bool_t TXXXCalibPar::UpdateFrom | ( | TGo4Parameter * | rhs | ) | [virtual] |
Update contents of parameter class with external object. to be implemented in subclass
Reimplemented from TGo4Parameter.
Definition at line 110 of file TXXXCalibPar.cxx.
References __DATANAME__, __GRAPHNAME__, TGo4FitterAbstract::DoActions(), TGo4Log::Error(), fbReadDatabase, fbRecalibrate, fdA, ffLinesEnergy, fiLinesChannel, TGo4Fitter::FindModel(), fxCalibCurve, fxCalibrator, fxGraphName, fxLinesFinder, fxLinesNames, TGo4Analysis::GetObject(), TGo4FitParsList::GetParValue(), TGo4Analysis::Instance(), TGo4FitModel::IsAssignTo(), TGo4Fitter::PrintLines(), ReadDatabase(), and TGo4FitSlotList::SetObject().
Bool_t TXXXCalibPar::fbReadDatabase |
Set to kTRUE to re-read energies from external ascii file
Definition at line 51 of file TXXXCalibPar.h.
Referenced by UpdateFrom().
Bool_t TXXXCalibPar::fbRecalibrate |
Set to kTRUE to make calibration fit in update from
Definition at line 49 of file TXXXCalibPar.h.
Referenced by UpdateFrom().
Double_t TXXXCalibPar::fdA[__POLORDER__] |
Calibration polynom coeff
Definition at line 47 of file TXXXCalibPar.h.
Referenced by Energy(), TXXXCalibPar(), and UpdateFrom().
Float_t TXXXCalibPar::ffLinesEnergy[__LINESNUMBER__] |
Database energies of calibration lines
Definition at line 57 of file TXXXCalibPar.h.
Referenced by ReadDatabase(), TXXXCalibPar(), and UpdateFrom().
Int_t TXXXCalibPar::fiLinesChannel[__LINESNUMBER__] |
Centroid channel numbers for fitted lines
Definition at line 55 of file TXXXCalibPar.h.
Referenced by ReadDatabase(), TXXXCalibPar(), and UpdateFrom().
TGraph* TXXXCalibPar::fxCalibCurve |
Reference to graph containing the calibration points
Definition at line 68 of file TXXXCalibPar.h.
Referenced by TXXXCalibPar(), and UpdateFrom().
Fitter for calibration of channel/energies with polynom
Definition at line 65 of file TXXXCalibPar.h.
Referenced by TXXXCalibPar(), UpdateFrom(), and ~TXXXCalibPar().
Reference to histogram containing the calibration spectrum
Definition at line 73 of file TXXXCalibPar.h.
Referenced by SetCalibSpectrum(), and TXXXCalibPar().
TString TXXXCalibPar::fxDatabase |
Filename for ascii file with linesname - energy
Definition at line 53 of file TXXXCalibPar.h.
Referenced by ReadDatabase(), and TXXXCalibPar().
TString TXXXCalibPar::fxGraphName |
Reference to graph containing the calibration points.
Name of the graph to contain the calibration points
Definition at line 70 of file TXXXCalibPar.h.
Referenced by TXXXCalibPar(), and UpdateFrom().
Fitter to search lines
Definition at line 62 of file TXXXCalibPar.h.
Referenced by ReadDatabase(), TXXXCalibPar(), UpdateFrom(), and ~TXXXCalibPar().
TString TXXXCalibPar::fxLinesNames[__LINESNUMBER__] |
Database names of calibration lines.
Definition at line 59 of file TXXXCalibPar.h.
Referenced by ReadDatabase(), TXXXCalibPar(), and UpdateFrom().
TString TXXXCalibPar::fxSpectrumName |
Reference to histogram containing the calibration spectrum.
Name of the calibration spectrum histogram
Definition at line 76 of file TXXXCalibPar.h.
Referenced by TXXXCalibPar().