00001 00002 #ifndef RUN_HH 00003 #define RUN_HH 00004 00005 #include "mTypes.h" 00006 00007 ////////////////////////////////////////////////////////////////////////// 00008 // // 00009 // Run for MICROMEGAS READOUT // 00010 // // 00011 ////////////////////////////////////////////////////////////////////////// 00012 00013 ////////////////////////////////////////////////////////////////////////// 00014 /// CLASS RUN // 00015 ////////////////////////////////////////////////////////////////////////// 00016 class Detector; 00017 00018 class Run { 00019 friend std::ostream& operator <<(std::ostream& out, const Run& x); 00020 00021 public: 00022 Run(Detector &aDetector); 00023 ~Run(); 00024 00025 std::ostream& operator <<(std::ostream &out) const; 00026 00027 Detector& getDetector(void) const { return detector; } 00028 00029 inline const time_t getStartTime(void) const { return startTime; } 00030 00031 inline std::string getName(void) const { return name; } 00032 inline void setName(const std::string aName){ name = aName; } 00033 00034 inline std::string getDate(void) const { return date; } 00035 inline void setDate(const std::string aDate){ date = aDate; } 00036 00037 inline std::string getDescription(void) const { return description; } 00038 inline void setDescription(const std::string aDescription){ date = aDescription; } 00039 00040 inline ui64 getId(void) const { return id;} 00041 00042 // protected: 00043 // std::ostream& operator << (std::ostream& out) const; 00044 00045 00046 private: 00047 ui64 id; 00048 time_t startTime; 00049 Detector &detector; 00050 protected: 00051 std::string name; 00052 std::string description; 00053 std::string date; 00054 }; 00055 00056 #endif