/** CbmMuchSectorDigiPar.cxx *@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 rot. angle are in the station coordinate system. ** Angles are stored and accessed in radians, but must be given in ** degrees in the input file. **/ #include using std::cout; using std::endl; #include "TMath.h" #include "CbmMuchSectorDigiPar.h" // ----- Default constructor ------------------------------------------- CbmMuchSectorDigiPar::CbmMuchSectorDigiPar() { fSectorNr = -1; fType = 0; fX0 = fY0 = fRotation = fLx = fLy = fDx = fDy = 0.; cout << "-W- CbmMuchSectorDigiPar: Do not use this constructor! " << endl; } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ CbmMuchSectorDigiPar::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){ fSectorNr = iSector; fType = iType; fX0 = x0; fY0 = y0; fRotation = rotation; fLx = lx; fLy = ly; fDx = dx; fDy = dy; } // ------------------------------------------------------------------------- CbmMuchSectorDigiPar::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){ fSectorNr = iSector; fType = iType; fX0 = x0; fY0 = y0; fZ0 = z0; fRotation = rotation; fLx = lx; fLy = ly; fD = d; fDx = dx; fDy = dy; } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- CbmMuchSectorDigiPar::~CbmMuchSectorDigiPar() { } // ------------------------------------------------------------------------- ClassImp(CbmMuchSectorDigiPar)