00001 // @(#)fROOT/STEER:$Name: $:$Id: TFndGenInfo.h,v 1.4 2007/09/05 11:09:42 Diego_Faso Exp $ 00002 // Revision Author: Diego Faso <mailto:faso@to.infn.it>, 2005/06/24 00003 // Original Author: Piergiorgio Cerello, 2001 00004 00005 #ifndef FROOT_TFndGenInfo 00006 #define FROOT_TFndGenInfo 00007 00009 // // 00010 // TFndGenInfo // 00011 // // 00012 // The Global Run Information: the class contains the variables // 00013 // defining the run configuration (number, trigger type, date, // 00014 // and the list of flags describing the presence/absence of // 00015 // individual detectors // 00016 // // 00018 00019 #include "TObject.h" 00020 #include "TDatime.h" 00021 00022 class TFndHdt; 00023 00024 class TFndGenInfo : public TObject { 00025 00026 protected: 00027 00028 Int_t fRNum; // Run Number 00029 TDatime fDatime; // Run Date & Time 00030 Int_t fGTS; // Gts Flag 00031 Int_t fTOF; // Tof Flag 00032 Int_t fISM; // Ism Flag 00033 Int_t fOSM; // Osm Flag 00034 Int_t fLMD; // Lmd Flag 00035 Int_t fSTB; // Stb Flag 00036 00037 public: 00038 00039 TFndGenInfo(); // Default constructor 00040 TFndGenInfo(UInt_t *); // Constructor 00041 ~TFndGenInfo(); // Destructor 00042 00043 void Print(Option_t * = 0) const; // (overload of TObject method) 00044 Int_t RNum() const { return fRNum; } // Return Run Number 00045 Int_t RYear() const { return fDatime.GetYear(); } // Return Run Year 00046 Int_t RMonth() const { return fDatime.GetMonth(); } // Return Run Month 00047 Int_t RDay() const { return fDatime.GetDay(); } // Return Run Day 00048 Int_t RHour() const { return fDatime.GetHour(); } // Return Run Year 00049 Int_t RMinute() const { return fDatime.GetMinute(); } // Return Run Month 00050 Int_t RSecond() const { return fDatime.GetSecond(); } // Return Run Day 00051 Int_t IsThereGts() const { return fGTS; } // Return Gts Flag 00052 Int_t IsThereTof() const { return fTOF; } // Return Tof Flag 00053 Int_t IsThereIsm() const { return fISM; } // Return Ism Flag 00054 Int_t IsThereOsm() const { return fOSM; } // Return Osm Flag 00055 Int_t IsThereLmd() const { return fLMD; } // Return Lmd Flag 00056 Int_t IsThereStb() const { return fSTB; } // Return Stb Flag 00057 TDatime GetDateTime() const { return fDatime; } // Return date in "FND format 00058 00059 ClassDef(TFndGenInfo,1) // The Global Run Information 00060 }; 00061 00062 #endif // FROOT_TFndGenInfo 00063 00064 00065