/** CbmMuchSectorDigiPar.h *@author M.Ryzhinskiy *@version 1.0 *@since 14.03.07 ** ** Parameter container for the digitization of a sector of a MuCh ** station. ** Supports the following digitisation types: ** 1 = GEMs ** 2 = CPC ** ** Coordinates and rotation angles are given in the station coordinate system. ** Rotation angles are stored and put in the constructor in radians, ** however must be given in degrees in the digitizer input file. **/ #ifndef CBMMUCHSECTORDIGIPAR_H #define CBMMUCHSECTORDIGIPAR_H 1 #include "TObject.h" class CbmMuchSectorDigiPar : public TObject { public: /** Default constructor **/ CbmMuchSectorDigiPar(); /** Standard constructor. For the parameters, see description of ** private data members. Angles must be given in radians. **/ CbmMuchSectorDigiPar(Int_t iSector, Int_t iType, Double_t x0, Double_t y0, Double_t rotation, Double_t lx, Double_t ly, Double_t dx, Double_t dy); CbmMuchSectorDigiPar(Int_t iSector, Int_t iType, Double_t x0, Double_t y0, Double_t z0, Double_t rotation, Double_t lx, Double_t ly, Double_t d, Double_t dx, Double_t dy); /** Destructor **/ virtual ~CbmMuchSectorDigiPar(); /** Accessors. See private data members for description **/ Int_t GetSectorNr() const { return fSectorNr; } Int_t GetType() const { return fType; } // 1 or 2 Double_t GetX0() const { return fX0; } // [cm] Double_t GetY0() const { return fY0; } // [cm] Double_t GetZ0() const { return fZ0; } // [cm] Double_t GetRotation() const { return fRotation; } // [rad] Double_t GetLx() const { return fLx; } // [cm] Double_t GetLy() const { return fLy; } // [cm] Double_t GetD() const { return fD; } Double_t GetDx() const { return fDx; } // [cm] Double_t GetDy() const { return fDy; } // [cm] void SetZ0(Double_t z0) { fZ0 = z0; } // [cm] void SetD (Double_t d) { fD = d; } // [cm] private: /** Sector number in station **/ Int_t fSectorNr; /** Type of sector. ** 1 = GEM; ** 2 = CPC **/ Int_t fType; /** x coordinate of sector centre in the station c.s. [cm] **/ Double_t fX0; /** y coordinate of sector centre in the station c.s. [cm] **/ Double_t fY0; /** Rotation angle around z axis in the station c.s [rad] **/ Double_t fRotation; /** Length of sector along x axis [cm] **/ Double_t fLx; /** Length of sector along y axis [cm] **/ Double_t fLy; /** Pad size along x [cm] **/ Double_t fDx; /** Pad size along y [cm] **/ Double_t fDy; Double_t fZ0; // z position of the sector [cm] Double_t fD; // thickness of the sector [cm] ClassDef(CbmMuchSectorDigiPar,1); }; #endif