/** CbmMuchModule.cxx *@author M.Ryzhinskiy *@version 1.0 *@since 11.02.08 ** ** This class holds the transport geometry parameters ** of one side of MuCh module. **/ #include "CbmMuchModule.h" #include "CbmMuchSector.h" #include "CbmMuchPad.h" #include "CbmMuchGeoScheme.h" #include "TMath.h" #include "TPolyLine.h" #include "TPave.h" #include #include #include #include using std::cout; using std::endl; using std::vector; // ----- Default constructor ------------------------------------------- CbmMuchModule::CbmMuchModule() : TPave(), fDetectorId(0), fDetectorType(-1), fCutRadius(0), fSize(TVector3()), fPosition(TVector3()), fSectors(TObjArray()), fPoints(NULL), fHits(NULL), fClusters(NULL) { } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ CbmMuchModule::CbmMuchModule(Int_t detId, TVector3 position, TVector3 size, Double_t cutRadius) : TPave(position[0] - size[0] / 2, position[1] - size[1] / 2, position[0] + size[0] / 2, position[1] + size[1] / 2, 1), fDetectorId(detId), fDetectorType(-1), fCutRadius(cutRadius), fSize(size), fPosition(position), fSectors(TObjArray()), fPoints(NULL), fHits(NULL), fClusters(NULL) { } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ CbmMuchModule::CbmMuchModule(Int_t iStation, Int_t iLayer, Bool_t iSide, Int_t iModule, TVector3 position, TVector3 size, Double_t cutRadius) : TPave(position[0] - size[0] / 2, position[1] - size[1] / 2, position[0] + size[0] / 2, position[1] + size[1] / 2, 1), fDetectorId(CbmMuchGeoScheme::GetDetectorId(iStation, iLayer, iSide, iModule)), fDetectorType(-1), fCutRadius(cutRadius), fSize(size), fPosition(position), fSectors(TObjArray()), fPoints(NULL), fHits(NULL), fClusters(NULL) { } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- CbmMuchModule::~CbmMuchModule() { } // ------------------------------------------------------------------------- ClassImp(CbmMuchModule)