FairRoot/PandaRoot
PndGeoStt.cxx
Go to the documentation of this file.
1 //*-- AUTHOR : Ilse Koenig
2 //*-- Created : 10/11/2003
3 
5 // CbmGeoTof
6 //
7 // Class for geometry of STT
8 //
10 
11 #include "PndGeoStt.h"
12 #include "FairGeoNode.h"
13 
15 
17 {
18  // Constructor
19  fName="stt";
20  maxSectors=0;
21  maxModules=20; // stt1
22 }
23 
24 const char* PndGeoStt::getModuleName(Int_t m)
25 {
26  // Returns the module name of stt number m
27  // sprintf(modName,"stt%i",m+1);
28  if ( m < 9 ) sprintf(modName,"stt0%i",m+1);
29  else sprintf(modName,"stt%i",m+1);
30 
31  return modName;
32 }
33 
34 const char* PndGeoStt::getEleName(Int_t m)
35 {
36  // Returns the element name of sts number m
37  // sprintf(eleName,"s%i",m+1);
38  if ( m < 9 ) sprintf(eleName,"stt0%i",m+1);
39  else sprintf(eleName,"stt%i",m+1);
40  return eleName;
41 }
__m128 m
Definition: P4_F32vec4.h:28
const char * getModuleName(Int_t)
Definition: PndGeoStt.cxx:24
ClassImp(PndGeoStt) PndGeoStt
Definition: PndGeoStt.cxx:14
char modName[20]
Definition: PndGeoStt.h:9
char eleName[20]
Definition: PndGeoStt.h:10
const char * getEleName(Int_t)
Definition: PndGeoStt.cxx:34