#include <THiCalibration.h>
Collaboration diagram for THiCalibration:
Used as interface to MySQL, this class contains calibrations for ADCs and TDCs, as these are the modules that output data into the heavy-ion memories.
Definition at line 18 of file THiCalibration.h.
Public Member Functions | |
THiCalibration (UInt_t=1) | |
~THiCalibration () | |
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 & | GetTdc () const |
TMySQLResult * | GetDatabaseInfo (const Char_t *=0) |
Private Attributes | |
string | fDatabase |
TCalibration | fAdc |
TCalibration | fTdc |
|
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 35 of file THiCalibration.cxx. |
|
Default destructor. Definition at line 47 of file THiCalibration.cxx. |
|
Utility method to clear out the calibration.
Definition at line 53 of file THiCalibration.cxx. References TCalibration::Clear(), fAdc, and fTdc. |
Here is the call graph for this function:
|
Print data held in this class. Prints out TDC and ADC data.
Definition at line 63 of file THiCalibration.cxx. References fAdc, fTdc, 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 75 of file THiCalibration.cxx. References TCalibration::AddToChannel(), TCalibration::AddToGain(), TCalibration::AddToHistogramMap(), TCalibration::AddToMap(), TCalibration::AddToOffset(), fAdc, fTdc, 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 45 of file THiCalibration.h. References fDatabase. |
|
Get the heavy-ion ADC calibration.
Definition at line 54 of file THiCalibration.h. |
|
Get the heavy-ion TDC calibration.
Definition at line 62 of file THiCalibration.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 142 of file THiCalibration.cxx. References fDatabase. |
|
The database to access the calibration data from. This defaults to "mysql://localhost:3306/Online" Definition at line 34 of file THiCalibration.h. |
|
Heavy-ion ADC calibration. This is set by calling SetCalibration(). Definition at line 38 of file THiCalibration.h. |
|
Heavy-ion TDC calibration. This is set by calling SetCalibration(). Definition at line 42 of file THiCalibration.h. |