Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

THiCalibration.h

Go to the documentation of this file.
00001 // THiCalibration.h.
00002 // author  JEP.
00003 // brief Heavy-ion calibration class, used as interface to MySQL.
00004 // version 1.0.
00005 // date    June 2004.
00006 //
00007 #ifndef THICALIBRATION_H
00008 #define THICALIBRATION_H
00009 
00010 #include <string>
00011 
00012 #include "TCalibration.h"
00013 
00014 class TMySQLResult;
00015 
00016 using std::string;
00017 
00018 class THiCalibration {
00019 public:
00020   THiCalibration(UInt_t = 1);
00021   ~THiCalibration();
00022   void Clear(const Char_t * = "");
00023   void Print(const Char_t * = "") const;
00024   void FindCalibration(const Char_t * = 0);
00025   void SetDatabase(const Char_t *);
00026   const TCalibration & GetAdc() const;
00027   const TCalibration & GetTdc() const;
00028   TMySQLResult * GetDatabaseInfo(const Char_t * = 0);
00029 
00030 private:
00034   string fDatabase;
00038   TCalibration fAdc;
00042   TCalibration fTdc;
00043 };
00044 
00045 inline void THiCalibration::SetDatabase(const Char_t *database)
00046 {
00051   fDatabase = database;
00052 }
00053 
00054 inline const TCalibration & THiCalibration::GetAdc() const
00055 {
00059   return fAdc;
00060 }
00061 
00062 inline const TCalibration & THiCalibration::GetTdc() const
00063 {
00067   return fTdc;
00068 }
00069 
00070 #endif // THiCalibration.h

Generated on Mon Jan 8 11:54:31 2007 for DragonRoot by  doxygen 1.3.9.1