BmnRoot
Loading...
Searching...
No Matches
CbmGeoSts.cxx
Go to the documentation of this file.
1//*-- AUTHOR : Ilse Koenig
2//*-- Created : 10/11/2003
3
5// CbmGeoSts
6//
7// Class for geometry of STS
8//
10#include "CbmGeoSts.h"
11#include "FairGeoNode.h"
12
13#include <iostream>
14
15using std::cout;
16using std::endl;
17
19 // Constructor
20 fName="sts";
21 maxSectors=0;
22 maxModules=200;
23}
24
25const char* CbmGeoSts::getModuleName(Int_t m) {
26 // Returns the module name of sts number m
27 if ( m < 0 ) {
28 cout <<"-E- CbmGeoSts::getModuleName:: Module number "
29 << m << " not known!" << endl;
30 return "";
31 }
32 //AZ if ( m < 9 ) sprintf(modName,"stsstation0%i",m+1);
33 //AZ else sprintf(modName,"stsstation%i",m+1);
34 if ( m < 9 ) sprintf(modName,"STSStation0%i",m+1);
35 else sprintf(modName,"STSStation%i",m+1);
36 return modName;
37}
38
39const char* CbmGeoSts::getEleName(Int_t m) {
40 // Returns the element name of sts number m
41 //AZ sprintf(eleName,"sts%i",m+1);
42 sprintf(eleName,"STS%i",m+1);
43 return eleName;
44}
__m128 m
Definition P4_F32vec4.h:27
const char * getEleName(Int_t)
Definition CbmGeoSts.cxx:39
const char * getModuleName(Int_t)
Definition CbmGeoSts.cxx:25
char eleName[200]
Definition CbmGeoSts.h:9
char modName[200]
Definition CbmGeoSts.h:8