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