StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
St_starClockOnlC.h
1 #ifndef St_starClockOnlC_h
2 #define St_starClockOnlC_h
3 
4 #include "TChair.h"
5 #include "tables/St_starClockOnl_Table.h"
6 
7 class St_starClockOnlC : public TChair {
8  public:
9  static St_starClockOnlC* instance();
10  starClockOnl_st *Struct(Int_t i = 0);
11  UInt_t getNumRows() {return GetNRows();}
12  UInt_t RunNumber(Int_t i = 0) {return Struct(i)->runNumber;}
13  Double_t CurrentFrequency(Int_t i = 0) {return Struct(i)->frequency;}
14  UInt_t Time(Int_t i = 0) {return Struct(i)->time;}
15  Double_t Frequency(Int_t i = 0) {return CurrentFrequency(i);}
16  // depreciated
17  UInt_t getRunNumber(Int_t i = 0) {return RunNumber(i);}
18  Double_t getCurrentFrequency(Int_t i = 0) {return CurrentFrequency(i);}
19  UInt_t getTime(Int_t i = 0) {return Time(i);}
20  Double_t getFrequency(Int_t i = 0) {return Frequency(i);}
21  Double_t samplingFrequency(Int_t i = 0) {return 1e-6*CurrentFrequency(i);}
22  protected:
23  St_starClockOnlC(St_starClockOnl *table=0) : TChair(table) {}
24  virtual ~St_starClockOnlC() {fgInstance = 0;}
25  private:
26  static St_starClockOnlC* fgInstance;
27  ClassDefChair(St_starClockOnl, starClockOnl_st )
28  ClassDef(St_starClockOnlC,1) //C++ TChair for starClockOnl table class
29 };
30 #endif
Definition: TChair.h:27