Go to the documentation of this file.00001 #ifndef ALIGN_EVENT
00002 #define ALIGN_EVENT
00003
00005
00006
00007
00008
00010
00011
00012 #include "TObject.h"
00013 #include "TClonesArray.h"
00014 #include "TString.h"
00015
00016
00017
00018 class AliDaqEventHeader {
00019
00020 private:
00021 Int_t fRunNum;
00022 Int_t fEvtNum;
00023 Int_t fTimeStamp;
00024
00025 public:
00026 AliDaqEventHeader() : fRunNum(0), fEvtNum(0), fTimeStamp(0) { }
00027 virtual ~AliDaqEventHeader() { }
00028 Int_t GetRunNum() const { return fRunNum; }
00029 Int_t GetEvtNum() const { return fEvtNum; }
00030 Int_t GetTimeStamp() const { return fTimeStamp; }
00031 void SetRunEvt(int run, int event) {fRunNum=run; fEvtNum=event;}
00032 void DumpIt();
00033
00034 ClassDef(AliDaqEventHeader,1)
00035 };
00036
00037
00038
00039 class AliDaqPosition2D : public TObject {
00040
00041 private:
00042 Float_t fX;
00043 Float_t fY;
00044 Float_t fX_error;
00045 Float_t fY_error;
00046 TString fID;
00047 Int_t fTimeStamp;
00048
00049 public:
00050 AliDaqPosition2D() : fX(0), fY(0), fX_error(0), fY_error(0),
00051 fID(""), fTimeStamp(0) { }
00052 virtual ~AliDaqPosition2D() { }
00053 Float_t GetX() const { return fX; }
00054 Float_t GetY() const { return fY; }
00055 Float_t GetXerror() const { return fX_error; }
00056 Float_t GetYerror() const { return fY_error; }
00057 TString GetID() { return fID; }
00058 Int_t GetTimeStamp() const { return fTimeStamp; }
00059 void DumpIt(TString Name);
00060
00061 ClassDef(AliDaqPosition2D,1)
00062 };
00063
00064
00065
00066 class AliDaqPositionCOPS : public TObject {
00067
00068 private:
00069 Float_t fDCOPS_up;
00070 Float_t fDCOPS_down;
00071 Float_t fDCOPS_left;
00072 Float_t fDCOPS_right;
00073 Float_t fDCOPS_up_error;
00074 Float_t fDCOPS_down_error;
00075 Float_t fDCOPS_left_error;
00076 Float_t fDCOPS_right_error;
00077 TString fID;
00078 Int_t fTimeStamp;
00079
00080 public:
00081 AliDaqPositionCOPS() : fDCOPS_up(0), fDCOPS_down(0),
00082 fDCOPS_left(0), fDCOPS_right(0),
00083 fDCOPS_up_error(0), fDCOPS_down_error(0),
00084 fDCOPS_left_error(0), fDCOPS_right_error(0),
00085 fID(""), fTimeStamp(0) { }
00086 virtual ~AliDaqPositionCOPS() { }
00087 Float_t GetUp() const { return fDCOPS_up; }
00088 Float_t GetDown() const { return fDCOPS_down; }
00089 Float_t GetLeft() const { return fDCOPS_left; }
00090 Float_t GetRight() const { return fDCOPS_right; }
00091 Float_t GetUpError() const { return fDCOPS_up_error; }
00092 Float_t GetDownError() const { return fDCOPS_down_error; }
00093 Float_t GetLeftError() const { return fDCOPS_left_error; }
00094 Float_t GetRightError() const { return fDCOPS_right_error; }
00095 TString GetID() { return fID; }
00096 Int_t GetTimeStamp() const { return fTimeStamp; }
00097 void DumpIt(TString Name);
00098
00099 ClassDef(AliDaqPositionCOPS,1)
00100 };
00101
00102
00103
00104 class AliDaqTilt : public TObject {
00105
00106 private:
00107 Float_t fTilt;
00108 Float_t fTilt_error;
00109 TString fID;
00110 Int_t fTimeStamp;
00111
00112 public:
00113 AliDaqTilt() : fTilt(0), fTilt_error(0), fID(""), fTimeStamp(0) { }
00114 virtual ~AliDaqTilt() { }
00115 Float_t GetTilt() const { return fTilt; }
00116 Float_t GetTiltError() const { return fTilt_error; }
00117 TString GetID() { return fID; }
00118 Int_t GetTimeStamp() const { return fTimeStamp; }
00119 void DumpIt(TString Name);
00120
00121 ClassDef(AliDaqTilt,1)
00122 };
00123
00124
00125 class AliDaqDistance : public TObject {
00126
00127 private:
00128 Float_t fDistance;
00129 Float_t fDistance_error;
00130 TString fID;
00131 Int_t fTimeStamp;
00132
00133 public:
00134 AliDaqDistance() : fDistance(0), fDistance_error(0),
00135 fID(""), fTimeStamp(0) { }
00136 virtual ~AliDaqDistance() { }
00137 Float_t GetDistance() const { return fDistance; }
00138 Float_t GetDistanceError() const { return fDistance_error; }
00139 TString GetID() { return fID; }
00140 Int_t GetTimeStamp() const { return fTimeStamp; }
00141 void DumpIt(TString Name);
00142
00143 ClassDef(AliDaqDistance,1)
00144 };
00145
00146
00147
00148 class AliDaqTemperature : public TObject {
00149
00150 private:
00151 Float_t fTemperature;
00152 Float_t fTemperature_error;
00153 TString fID;
00154 Int_t fTimeStamp;
00155
00156 public:
00157 AliDaqTemperature() : fTemperature(0), fTemperature_error(0),
00158 fID(""), fTimeStamp(0) { }
00159 virtual ~AliDaqTemperature() { }
00160 Float_t GetTemperature() const { return fTemperature; }
00161 Float_t GetTemperatureError() const { return fTemperature_error; }
00162 TString GetID() { return fID; }
00163 Int_t GetTimeStamp() const { return fTimeStamp; }
00164 void DumpIt(TString Name);
00165
00166 ClassDef(AliDaqTemperature,1)
00167 };
00168
00169
00170 class CocoaDaqRootEvent : public TObject {
00171
00172 private:
00173 AliDaqEventHeader *Header;
00174 TClonesArray *Array_PositionCOPS;
00175 TClonesArray *Array_Position2D;
00176 TClonesArray *Array_Tilt;
00177 TClonesArray *Array_Dist;
00178 TClonesArray *Array_Temp;
00179 int numPosCOPS;
00180 int numPos2D;
00181 int numTilt;
00182 int numDist;
00183 int numTemp;
00184
00185 public:
00186 AliDaqEventHeader * GetHeader() const { return Header;}
00187 TClonesArray * GetArray_Position2D() const { return Array_Position2D;}
00188 TClonesArray * GetArray_PositionCOPS() const { return Array_PositionCOPS;}
00189 TClonesArray * GetArray_Tilt() const { return Array_Tilt;}
00190 TClonesArray * GetArray_Dist() const { return Array_Dist;}
00191 TClonesArray * GetArray_Temp() const { return Array_Temp;}
00192 int GetNumPos2D() const { return numPos2D;}
00193 int GetNumPosCOPS() const { return numPosCOPS;}
00194 int GetNumTilt() const { return numTilt;}
00195 int GetNumDist() const { return numDist;}
00196 int GetNumTemp() const { return numTemp;}
00197
00198 public:
00199 CocoaDaqRootEvent();
00200 virtual ~CocoaDaqRootEvent() { };
00201 void SetHeader(int run, int evt) {Header->SetRunEvt(run,evt); }
00202 void DumpIt();
00203
00204 ClassDef(CocoaDaqRootEvent,1)
00205
00206 };
00207
00208
00209 #endif