00001 00002 // ************************************************************************** 00003 // * * 00004 // * ! ! ! A T T E N T I O N ! ! ! * 00005 // * * 00006 // * This file was created automatically by GaudiObjDesc, please do not * 00007 // * delete it or edit it by hand. * 00008 // * * 00009 // * If you want to change this file, first change the corresponding * 00010 // * xml-file and rerun the tools from GaudiObjDesc (or run make if you * 00011 // * are using it from inside a Gaudi-package). * 00012 // * * 00013 // ************************************************************************** 00014 00015 #ifndef TrackFitEvent_OTMeasurement_H 00016 #define TrackFitEvent_OTMeasurement_H 1 00017 00018 // Include files 00019 #include "Event/Measurement.h" 00020 #include "Event/OTTime.h" 00021 #include "OTDet/DeOTDetector.h" 00022 00023 00024 // Forward declarations 00025 00035 class OTMeasurement: public Measurement 00036 { 00037 public: 00038 00040 OTMeasurement(OTTime& otTime, 00041 DeOTDetector& det, 00042 int ambiguity, 00043 double tu = 999.0); 00044 00046 OTMeasurement() : m_ambiguity(0), 00047 m_tu(0.0), 00048 m_time() {} 00049 00051 virtual ~OTMeasurement() {} 00052 00054 OTMeasurement* clone() const; 00055 00057 int ambiguity() const; 00058 00060 void setAmbiguity(int value); 00061 00063 double tu() const; 00064 00066 void setTu(double value); 00067 00069 const OTTime* time() const; 00070 00072 OTTime* time(); 00073 00075 void setTime(OTTime* value); 00076 00077 protected: 00078 00079 private: 00080 00081 int m_ambiguity; 00082 double m_tu; 00083 OTTime* m_time; 00084 00085 }; 00086 00087 // ----------------------------------------------------------------------------- 00088 // end of class 00089 // ----------------------------------------------------------------------------- 00090 00091 // Including forward declarations 00092 00093 inline int OTMeasurement::ambiguity() const 00094 { 00095 return m_ambiguity; 00096 } 00097 00098 inline void OTMeasurement::setAmbiguity(int value) 00099 { 00100 m_ambiguity = value; 00101 } 00102 00103 inline double OTMeasurement::tu() const 00104 { 00105 return m_tu; 00106 } 00107 00108 inline void OTMeasurement::setTu(double value) 00109 { 00110 m_tu = value; 00111 } 00112 00113 inline const OTTime* OTMeasurement::time() const 00114 { 00115 return m_time; 00116 } 00117 00118 inline OTTime* OTMeasurement::time() 00119 { 00120 return m_time; 00121 } 00122 00123 inline void OTMeasurement::setTime(OTTime* value) 00124 { 00125 m_time = value; 00126 } 00127 00128 inline OTMeasurement* OTMeasurement::clone() const 00129 { 00130 00131 OTMeasurement* me = new OTMeasurement(); *me = *this; return me; 00132 00133 } 00134 00135 00136 #endif