#ifndef CBMTOFCELL_H #define CBMTOFCELL_H 1 #include "TNamed.h" class CbmTofCell : public TNamed { public: /** Default constructor **/ CbmTofCell(); /** Standard constructor *@param detId Unique detector identifier *@param x0 cell centre x coordinate in global c.s [cm] *@param y0 cell centre y coordinate in global c.s [cm] *@param z0 cell centre z coordinate in global c.s [cm] *@param sizex cell size in x [cm] *@param sizey cell size in y [cm] **/ CbmTofCell(Int_t detId, Double_t x, Double_t y, Double_t z, Double_t sizex, Double_t sizey); /** Destructor **/ virtual ~CbmTofCell(); /** Accessors **/ Int_t GetDetectorId() const { return fDetectorId; } Double_t GetX() const { return fX; } Double_t GetY() const { return fY; } Double_t GetZ() const { return fZ; } Double_t GetSizex() const { return fSizex; } Double_t GetSizey() const { return fSizey; } /* void GetPosition(const Int_t Col, const Int_t Row, const Int_t VolumeId, const Int_t Sector, TVector3 &posHit, TVector3 &posHitErr); */ void Print(); private: /** ------------- Data members --------------------------**/ Int_t fDetectorId; // Unique detector ID Double_t fX; // center of module in global c.s. [cm] Double_t fY; // center of module in global c.s. [cm] Double_t fZ; // center of module in global c.s. [cm] Double_t fSizex; // module size in x [cm] Double_t fSizey; // module size in y [cm] /** --------------- private functions ----------------------**/ /* void GetModuleInformation(Int_t VolumeID, Double_t *local_point, Int_t &Col, Int_t &Row, Int_t &Sector); void TransformToLocalSector(Double_t *local_point, const Int_t §or, Double_t &posX, Double_t &posY); void TransformToLocalCorner(Double_t *local_point, Double_t &posX, Double_t &posY); Int_t GetSector(Double_t *local_point); void ProjectPositionToNextAnodeWire(Double_t *local_point); */ ClassDef(CbmTofCell,1); }; #endif