BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
13{
14 // Constructor
15 fName = "MWPC";
16 maxSectors = 0;
17 maxModules = 24;
18}
19
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
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}
__m128 m
Definition P4_F32vec4.h:27
int Int_t
char modName[20]
Definition BmnMwpcGeo.h:10
char eleName[20]
Definition BmnMwpcGeo.h:11
const char * getModuleName(Int_t)
const char * getEleName(Int_t)