00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #ifndef StTofCollection_hh
00056 #define StTofCollection_hh
00057
00058 #include "StObject.h"
00059 #include "StContainers.h"
00060 #include "StEnumerations.h"
00061 #include "StTofHit.h"
00062 #include "StTofCell.h"
00063 #include "StTofSlat.h"
00064 #include "StTofData.h"
00065 #include "StTofRawData.h"
00066
00067 class StTofCollection : public StObject {
00068 public:
00069 StTofCollection();
00070 ~StTofCollection();
00071
00072 unsigned int numberOfVpdEast() const;
00073 unsigned int numberOfVpdWest() const;
00074 unsigned int vpdEast() const;
00075 unsigned int vpdWest() const;
00076 float tstart() const;
00077 float tdiff() const;
00078 float vzVpd() const;
00079
00080 void setVpdEast(unsigned int);
00081 void setVpdWest(unsigned int);
00082 void setTstart(float);
00083 void setTdiff(float);
00084 void setVzVpd(float);
00085
00086 const StSPtrVecTofCell& tofCells() const;
00087 StSPtrVecTofCell& tofCells();
00088
00089 const StSPtrVecTofSlat& tofSlats() const;
00090 StSPtrVecTofSlat& tofSlats();
00091
00092 const StSPtrVecTofHit& tofHits() const;
00093 StSPtrVecTofHit& tofHits();
00094
00095 const StSPtrVecTofData& tofData() const;
00096 StSPtrVecTofData& tofData();
00097
00098 const StSPtrVecTofRawData& tofRawData() const;
00099 StSPtrVecTofRawData& tofRawData();
00100
00101 void addSlat(const StTofSlat*);
00102 void addCell(const StTofCell*);
00103 void addHit(const StTofHit*);
00104 void addData(const StTofData*);
00105 void addRawData(const StTofRawData*);
00106
00107 bool cellsPresent() const;
00108 bool slatsPresent() const;
00109 bool hitsPresent() const;
00110 bool dataPresent() const;
00111 bool rawdataPresent() const;
00112
00113 private:
00114 UInt_t mVpdEast;
00115 UInt_t mVpdWest;
00116 Float_t mTstart;
00117 Float_t mTdiff;
00118 Float_t mVzVpd;
00119
00120 StSPtrVecTofSlat mTofSlats;
00121 StSPtrVecTofCell mTofCells;
00122 StSPtrVecTofHit mTofHits;
00123 StSPtrVecTofData mTofData;
00124 StSPtrVecTofRawData mTofRawData;
00125
00126 ClassDef(StTofCollection, 6)
00127 };
00128
00129 inline unsigned int StTofCollection::vpdEast() const { return mVpdEast; }
00130
00131 inline unsigned int StTofCollection::vpdWest() const { return mVpdWest; }
00132
00133 inline void StTofCollection::setVpdEast(unsigned int i) { mVpdEast = i; }
00134
00135 inline void StTofCollection::setVpdWest(unsigned int i) { mVpdWest = i; }
00136
00137 inline float StTofCollection::tstart() const { return mTstart; }
00138
00139 inline float StTofCollection::tdiff() const { return mTdiff; }
00140
00141 inline float StTofCollection::vzVpd() const { return mVzVpd; }
00142
00143 inline void StTofCollection::setTstart(float t) { mTstart = t; }
00144
00145 inline void StTofCollection::setTdiff(float t) { mTdiff = t;}
00146
00147 inline void StTofCollection::setVzVpd(float vz) { mVzVpd = vz; }
00148
00149 #endif