BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnMwpcGeo.cxx
Go to the documentation of this file.
1
/////////////////////////////////////////////////////////////
2
// BmnMwpcGeo
3
//
4
// Class for geometry of Mwpc
5
//
6
/////////////////////////////////////////////////////////////
7
8
#include "
BmnMwpcGeo.h
"
9
10
#include "FairGeoNode.h"
11
12
BmnMwpcGeo::BmnMwpcGeo
()
13
{
14
// Constructor
15
fName =
"MWPC"
;
16
maxSectors = 0;
17
maxModules = 24;
18
}
19
20
const
char
*
BmnMwpcGeo::getModuleName
(
Int_t
m
)
21
{
22
// Returns the module name of MWPC1 number m
23
// std::cout << "MWPC1 module: " << m << "\n";
24
if
(
m
< 9) {
25
sprintf(
modName
,
"MWPC0%i"
,
m
+ 1);
26
}
else
{
27
sprintf(
modName
,
"MWPC%i"
,
m
+ 1);
28
}
29
return
modName
;
30
}
31
32
const
char
*
BmnMwpcGeo::getEleName
(
Int_t
m
)
33
{
34
// Returns the element name of MWPC1 number m
35
// std::cout << "MWPC1 element: " << m << "\n";
36
if
(
m
< 9) {
37
sprintf(
eleName
,
"MWPC0%i"
,
m
+ 1);
38
}
else
{
39
sprintf(
eleName
,
"MWPC%i"
,
m
+ 1);
40
}
41
return
eleName
;
42
}
m
__m128 m
Definition
P4_F32vec4.h:27
Int_t
int Int_t
BmnMwpcGeo::modName
char modName[20]
Definition
BmnMwpcGeo.h:10
BmnMwpcGeo::eleName
char eleName[20]
Definition
BmnMwpcGeo.h:11
BmnMwpcGeo::BmnMwpcGeo
BmnMwpcGeo()
Definition
BmnMwpcGeo.cxx:12
BmnMwpcGeo::getModuleName
const char * getModuleName(Int_t)
Definition
BmnMwpcGeo.cxx:20
BmnMwpcGeo::getEleName
const char * getEleName(Int_t)
Definition
BmnMwpcGeo.cxx:32
BmnMwpcGeo.h
detectors
mwpc
BmnMwpcGeo.cxx
Generated on
for BmnRoot by
1.17.0