5 #ifndef ST_TPC_COORDINATE_H
6 #define ST_TPC_COORDINATE_H
8 #include "StThreeVector.hh"
12 StTpcCoordinate(
const Double_t x,
const Double_t y,
const Double_t z,
const Int_t sect, Int_t row) :
13 mPosition(x,y,z), mFromSector(sect), mFromRow(row) {}
15 mPosition(position), mFromSector(sect), mFromRow(row) {}
17 Int_t operator==(
const StTpcCoordinate& p)
const {
return p.mPosition == mPosition;}
18 Int_t operator!=(
const StTpcCoordinate& p)
const {
return !(*
this == p);}
22 Int_t fromSector()
const {
return mFromSector; }
23 Int_t fromRow()
const {
return mFromRow; }
24 Int_t sector()
const {
return mFromSector; }
25 Int_t row()
const {
return mFromRow; }
28 virtual void setSector(Int_t sector) { mFromSector = sector; }
29 virtual void setRow(Int_t row) { mFromRow = row; }