#include <TGrCalibration.h>
Collaboration diagram for TGrCalibration:
Used as interface to MySQL, this class contains calibrations for ADCs, leading-edge and constant-fraction TDCs, as these are the modules that output data into the gamma-ray memories.
Definition at line 18 of file TGrCalibration.h.
Public Member Functions | |
TGrCalibration (UInt_t=1) | |
~TGrCalibration () | |
void | Clear (const Char_t *="") |
void | Print (const Char_t *="") const |
void | FindCalibration (const Char_t *=0) |
void | SetDatabase (const Char_t *) |
const TCalibration & | GetAdc () const |
const TCalibration & | GetLeTdc () const |
const TCalibration & | GetCfTdc () const |
TMySQLResult * | GetDatabaseInfo (const Char_t *=0) |
Private Attributes | |
string | fDatabase |
TCalibration | fAdc |
TCalibration | fLeTdc |
TCalibration | fCfTdc |
|
Default constructor. Sets the size of the ADC and TDC calibrations (defaults to 1 but would be 32 for a DSSSD for example).
Definition at line 39 of file TGrCalibration.cxx. |
|
Default destructor. Definition at line 51 of file TGrCalibration.cxx. |
|
Utility method to clear out the calibration.
Definition at line 57 of file TGrCalibration.cxx. References TCalibration::Clear(), fAdc, fCfTdc, and fLeTdc. |
Here is the call graph for this function:
|
Print data held in this class. The option is currently unimplemented. Prints out leading-edge and constant-fraction TDC data, and ADC data.
Definition at line 68 of file TGrCalibration.cxx. References fAdc, fCfTdc, fLeTdc, and TCalibration::Print(). |
Here is the call graph for this function:
|
Set the detector calibration, this depends on the detector name. This is an interface to MySQL, currently using TMySQL ROOT library.
Definition at line 84 of file TGrCalibration.cxx. References TCalibration::AddToChannel(), TCalibration::AddToGain(), TCalibration::AddToHistogramMap(), TCalibration::AddToMap(), TCalibration::AddToOffset(), fAdc, fCfTdc, fLeTdc, TCalibration::GetChannels(), GetDatabaseInfo(), and TCalibration::SetBitMask(). |
Here is the call graph for this function:
|
Set the database from where the calibration data is accessed.
Definition at line 47 of file TGrCalibration.h. References fDatabase. |
|
Get the gamma-ray ADC calibration.
Definition at line 56 of file TGrCalibration.h. |
|
Get the gamma-ray leading-edge TDC calibration.
Definition at line 64 of file TGrCalibration.h. |
|
Get the gamma-ray constant-fraction TDC calibration.
Definition at line 73 of file TGrCalibration.h. |
|
Get the detector calibration from the MySQL database. This depends on the detector name passed in the character string detectorName. A corresponding entry will be looked for in the MySQL database and the TMySQLResult returned. If it fails an error will be printed.
Definition at line 165 of file TGrCalibration.cxx. References fDatabase. |
|
The database to access the calibration data from. This defaults to "mysql://localhost:3306/Online" Definition at line 35 of file TGrCalibration.h. |
|
Gamma-ray ADC calibration. Definition at line 38 of file TGrCalibration.h. |
|
Gamma-ray leading-edge TDC calibration. Definition at line 41 of file TGrCalibration.h. |
|
Gamma-ray constant-fraction TDC calibration. Definition at line 44 of file TGrCalibration.h. |