00001
00002
00003
00004
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 #ifndef ST_SVT_WAFER_COORDINATE_HH
00041 #define ST_SVT_WAFER_COORDINATE_HH
00042 #include <Stiostream.h>
00043
00044 class StSvtWaferCoordinate
00045 {
00046 public:
00047 StSvtWaferCoordinate();
00048 StSvtWaferCoordinate(const int, const int, const int, const int, const double, const double);
00049
00050 virtual ~StSvtWaferCoordinate();
00051
00052
00053
00054 int operator==(const StSvtWaferCoordinate&) const;
00055 int operator!=(const StSvtWaferCoordinate&) const;
00056
00057
00058 const int barrel() const;
00059 const int layer() const;
00060 const int ladder() const;
00061 const int wafer() const;
00062 const int hybrid() const;
00063 const double anode() const;
00064 const double timebucket() const;
00065
00066 void setLayer(int);
00067 void setLadder(int);
00068 void setWafer(int);
00069 void setHybrid(int);
00070 void setAnode(double);
00071 void setTimeBucket(double);
00072
00073 protected:
00074 int mLayer;
00075 int mLadder;
00076 int mWafer;
00077 int mHybrid;
00078 double mAnode;
00079 double mTimeBucket;
00080 };
00081
00082 const inline int StSvtWaferCoordinate::barrel()
00083 const {return(((mLayer-1)/2)+1);}
00084 const inline int StSvtWaferCoordinate::layer() const {return(mLayer);}
00085 const inline int StSvtWaferCoordinate::ladder() const {return(mLadder);}
00086 const inline int StSvtWaferCoordinate::wafer() const {return(mWafer);}
00087 const inline int StSvtWaferCoordinate::hybrid() const {return(mHybrid);}
00088 const inline double StSvtWaferCoordinate::anode() const {return(mAnode);}
00089 const inline double StSvtWaferCoordinate::timebucket() const {return(mTimeBucket);}
00090 inline void StSvtWaferCoordinate::setLayer(int l) {mLayer = l;}
00091 inline void StSvtWaferCoordinate::setLadder(int d) {mLadder = d;}
00092 inline void StSvtWaferCoordinate::setWafer(int w) {mWafer = w;}
00093 inline void StSvtWaferCoordinate::setHybrid(int h) {mHybrid = h;}
00094 inline void StSvtWaferCoordinate::setAnode(double a) {mAnode = a;}
00095 inline void StSvtWaferCoordinate::setTimeBucket(double t) {mTimeBucket = t;}
00096
00097 ostream& operator<<(ostream&, const StSvtWaferCoordinate&);
00098
00099 #endif