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 #ifndef ST_SVT_LOCAL_COORDINATE_HH
00038 #define ST_SVT_LOCAL_COORDINATE_HH
00039 #include <Stiostream.h>
00040
00041 #include "StThreeVector.hh"
00042
00043 class StSvtLocalCoordinate {
00044 public:
00045 StSvtLocalCoordinate();
00046 StSvtLocalCoordinate(const double, const double, const double);
00047 StSvtLocalCoordinate(const StThreeVector<double>&);
00048
00049 virtual ~StSvtLocalCoordinate();
00050
00051 int operator==(const StSvtLocalCoordinate&) const;
00052 int operator!=(const StSvtLocalCoordinate&) const;
00053
00054
00055 const StThreeVector<double>& position() const { return(mPosition); }
00056 StThreeVector<double>& position() { return(mPosition); }
00057 const int barrel() const {return((mLayer-1)/2+1);}
00058 const int layer() const {return(mLayer);}
00059 const int ladder() const {return(mLadder);}
00060 const int wafer() const {return(mWafer);}
00061 const int hybrid() const {return(mHybrid);}
00062 void setPosition(const StThreeVector<double>& val) { mPosition = val; }
00063 void setLayer(int l) {mLayer = l;}
00064 void setLadder(int d) {mLadder = d;}
00065 void setWafer(int w) {mWafer = w;}
00066 void setHybrid(int h) {mHybrid = h;}
00067 protected:
00068 StThreeVector<double> mPosition;
00069 int mLayer;
00070 int mLadder;
00071 int mWafer;
00072 int mHybrid;
00073 };
00074 ostream& operator<<(ostream&, const StSvtLocalCoordinate&);
00075 #endif
00076