GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
TXXXCalibPar Class Reference

#include <TXXXCalibPar.h>

+ Inheritance diagram for TXXXCalibPar:

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="")
 
TGo4ParameterStatusCreateStatus ()
 
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__]
 
TGo4FitterfxLinesFinder
 
TGo4FitterfxCalibrator
 
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)
 

Detailed Description

Definition at line 29 of file TXXXCalibPar.h.

Constructor & Destructor Documentation

TXXXCalibPar::TXXXCalibPar ( )
TXXXCalibPar::TXXXCalibPar ( const char *  name,
TH1 *  spectrum,
TGraph *  curve 
)
TXXXCalibPar::~TXXXCalibPar ( )
virtual

Definition at line 95 of file TXXXCalibPar.cxx.

References fxCalibrator, and fxLinesFinder.

Member Function Documentation

Double_t TXXXCalibPar::Energy ( Int_t  channel)

calculate energy from channel number using the current polynom

Definition at line 279 of file TXXXCalibPar.cxx.

References __POLORDER__, and 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 110 of file TXXXCalibPar.cxx.

void TXXXCalibPar::ReadDatabase ( )

Read calibration lines from database (ascii file)

Definition at line 234 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 102 of file TXXXCalibPar.cxx.

References __DATANAME__, fxCalibSpectrum, fxLinesFinder, and TGo4Fitter::SetH1().

Referenced by TXXXUnpackProc::CreateRawHistograms().

Bool_t TXXXCalibPar::UpdateFrom ( TGo4Parameter rhs)
virtual

Member Data Documentation

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().


The documentation for this class was generated from the following files: