BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
16
using
std::cout;
17
using
std::endl;
18
19
CbmGeoSts::CbmGeoSts
()
20
{
21
// Constructor
22
fName =
"sts"
;
23
maxSectors = 0;
24
maxModules = 200;
25
}
26
27
const
char
*
CbmGeoSts::getModuleName
(
Int_t
m
)
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
43
const
char
*
CbmGeoSts::getEleName
(
Int_t
m
)
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
}
m
__m128 m
Definition
P4_F32vec4.h:27
Int_t
int Int_t
CbmGeoSts::getEleName
const char * getEleName(Int_t)
Definition
CbmGeoSts.cxx:43
CbmGeoSts::CbmGeoSts
CbmGeoSts()
Definition
CbmGeoSts.cxx:19
CbmGeoSts::getModuleName
const char * getModuleName(Int_t)
Definition
CbmGeoSts.cxx:27
CbmGeoSts::eleName
char eleName[200]
Definition
CbmGeoSts.h:10
CbmGeoSts::modName
char modName[200]
Definition
CbmGeoSts.h:9
CbmGeoSts.h
detectors
sts
CbmGeoSts.cxx
Generated on
for BmnRoot by
1.17.0