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

TGrCalibration.h

Go to the documentation of this file.
00001 // TGrCalibration.h.
00002 // author  JEP.
00003 // brief   Gamma-ray calibration class, used as interface to MySQL.
00004 // version 1.0.
00005 // date    June 2004.
00006 //
00007 #ifndef TGRCALIBRATION_H
00008 #define TGRCALIBRATION_H
00009 
00010 #include <string>
00011 
00012 #include "TCalibration.h"
00013 
00014 class TMySQLResult;
00015 
00016 using std::string;
00017 
00018 class TGrCalibration {
00019 public:
00020   TGrCalibration(UInt_t = 1);
00021   ~TGrCalibration();
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 & GetLeTdc() const;
00028   const TCalibration & GetCfTdc() const;
00029   TMySQLResult * GetDatabaseInfo(const Char_t * = 0);
00030 
00031 private:
00035   string fDatabase;
00038   TCalibration fAdc;
00041   TCalibration fLeTdc;
00044   TCalibration fCfTdc;
00045 };
00046 
00047 inline void TGrCalibration::SetDatabase(const Char_t *database)
00048 {
00053   fDatabase = database;
00054 }
00055 
00056 inline const TCalibration & TGrCalibration::GetAdc() const
00057 {
00061   return fAdc;
00062 }
00063 
00064 inline const TCalibration & TGrCalibration::GetLeTdc() const
00065 {
00070   return fLeTdc;
00071 }
00072 
00073 inline const TCalibration & TGrCalibration::GetCfTdc() const
00074 {
00079   return fCfTdc;
00080 }
00081 
00082 #endif // TGrCalibration.h

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