123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //*-- AUTHOR : Ilse Koenig
- //*-- Created : 10/11/2003
- /////////////////////////////////////////////////////////////
- // CbmGeoTof
- //
- // Class for geometry of STT
- //
- /////////////////////////////////////////////////////////////
- #include "CbmGeoStt.h"
- #include "FairGeoNode.h"
- ClassImp(CbmGeoStt)
- CbmGeoStt::CbmGeoStt()
- {
- // Constructor
- fName="stt";
- maxSectors=0;
- maxModules=20; // stt1
- }
- const char* CbmGeoStt::getModuleName(Int_t m)
- {
- // Returns the module name of stt number m
- // sprintf(modName,"stt%i",m+1);
- if ( m < 9 ) sprintf(modName,"stt0%i",m+1);
- else sprintf(modName,"stt%i",m+1);
-
- return modName;
- }
- const char* CbmGeoStt::getEleName(Int_t m)
- {
- // Returns the element name of sts number m
- // sprintf(eleName,"s%i",m+1);
- if ( m < 9 ) sprintf(eleName,"stt0%i",m+1);
- else sprintf(eleName,"stt%i",m+1);
- return eleName;
- }
|