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