GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
|
#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 Member Functions inherited from TGo4Parameter | |
TGo4Parameter () | |
TGo4Parameter (const char *name, const char *title="This is a Go4 Parameter Object") | |
virtual | ~TGo4Parameter () |
virtual void | Print (Option_t *dummy="") const |
Bool_t | UpdateFromUrl (const char *rest_url_opt) |
virtual Bool_t | CustomUpdateFrom () const |
virtual void | Clear (Option_t *opt="") |
void | GetMemberValues (TObjArray *fItems) |
Bool_t | SetMemberValues (TObjArray *fItems) |
virtual void | SavePrimitive (std::ostream &fs, Option_t *opt="") |
TGo4ParameterStatus * | CreateStatus () |
Bool_t | SetStatus (TGo4ParameterStatus *status) |
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. More... | |
TH1 * | fxCalibSpectrum |
TString | fxSpectrumName |
Reference to histogram containing the calibration spectrum. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from TGo4Parameter | |
void | GetMemberValues (TObjArray *fItems, TClass *cl, char *ptr, unsigned long int cloffset) |
Bool_t | SetMemberValues (TObjArray *items, Int_t &itemsindx, TClass *cl, char *ptr, unsigned long int cloffset) |
Int_t | FindArrayLength (TObjArray *items, Int_t &itemsindx, TDataMember *member) |
Definition at line 29 of file TXXXCalibPar.h.
TXXXCalibPar::TXXXCalibPar | ( | ) |
Definition at line 27 of file TXXXCalibPar.cxx.
References __LINESNUMBER__, __POLORDER__, 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__, __LINESNUMBER__, __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().
|
virtual |
Definition at line 97 of file TXXXCalibPar.cxx.
References fxCalibrator, and fxLinesFinder.
Double_t TXXXCalibPar::Energy | ( | Int_t | channel | ) |
calculate energy from channel number using the current polynom
Definition at line 281 of file TXXXCalibPar.cxx.
References __POLORDER__, and fdA.
|
virtual |
Basic method to printout information on stdout; to be overridden by specific subclass
Reimplemented from TGo4Parameter.
Definition at line 112 of file TXXXCalibPar.cxx.
void TXXXCalibPar::ReadDatabase | ( | ) |
Read calibration lines from database (ascii file)
Definition at line 236 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 | ) |
Reset reference to calibration spectrum in fitter
Definition at line 104 of file TXXXCalibPar.cxx.
References __DATANAME__, fxCalibSpectrum, fxLinesFinder, and TGo4Fitter::SetH1().
Referenced by TXXXUnpackProc::CreateRawHistograms().
|
virtual |
Update contents of parameter class with external object. to be implemented in subclass
Reimplemented from TGo4Parameter.
Definition at line 117 of file TXXXCalibPar.cxx.
References __DATANAME__, __GRAPHNAME__, __LINESNUMBER__, __POLORDER__, 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 52 of file TXXXCalibPar.h.
Referenced by UpdateFrom().
Bool_t TXXXCalibPar::fbRecalibrate |
Set to kTRUE to make calibration fit in update from
Definition at line 50 of file TXXXCalibPar.h.
Referenced by UpdateFrom().
Double_t TXXXCalibPar::fdA[__POLORDER__] |
Calibration polynom coeff
Definition at line 48 of file TXXXCalibPar.h.
Referenced by Energy(), TXXXCalibPar(), and UpdateFrom().
Float_t TXXXCalibPar::ffLinesEnergy[__LINESNUMBER__] |
Database energies of calibration lines
Definition at line 58 of file TXXXCalibPar.h.
Referenced by ReadDatabase(), TXXXCalibPar(), and UpdateFrom().
Int_t TXXXCalibPar::fiLinesChannel[__LINESNUMBER__] |
Centroid channel numbers for fitted lines
Definition at line 56 of file TXXXCalibPar.h.
Referenced by ReadDatabase(), TXXXCalibPar(), and UpdateFrom().
TGraph* TXXXCalibPar::fxCalibCurve |
Reference to graph containing the calibration points
Definition at line 69 of file TXXXCalibPar.h.
Referenced by TXXXCalibPar(), and UpdateFrom().
TGo4Fitter* TXXXCalibPar::fxCalibrator |
Fitter for calibration of channel/energies with polynom
Definition at line 66 of file TXXXCalibPar.h.
Referenced by TXXXCalibPar(), UpdateFrom(), and ~TXXXCalibPar().
TH1* TXXXCalibPar::fxCalibSpectrum |
Reference to histogram containing the calibration spectrum
Definition at line 74 of file TXXXCalibPar.h.
Referenced by SetCalibSpectrum(), and TXXXCalibPar().
TString TXXXCalibPar::fxDatabase |
Filename for ascii file with linesname - energy
Definition at line 54 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 71 of file TXXXCalibPar.h.
Referenced by TXXXCalibPar(), and UpdateFrom().
TGo4Fitter* TXXXCalibPar::fxLinesFinder |
Fitter to search lines
Definition at line 63 of file TXXXCalibPar.h.
Referenced by ReadDatabase(), SetCalibSpectrum(), TXXXCalibPar(), UpdateFrom(), and ~TXXXCalibPar().
TString TXXXCalibPar::fxLinesNames[__LINESNUMBER__] |
Database names of calibration lines.
Definition at line 60 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 77 of file TXXXCalibPar.h.
Referenced by TXXXCalibPar().