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
12 // Constructor
13 fName="MWPC";
14 maxSectors=0;
15 maxModules=24;
16}
17
18const 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
29const 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}
__m128 m
Definition P4_F32vec4.h:27
char modName[20]
Definition BmnMwpcGeo.h:9
char eleName[20]
Definition BmnMwpcGeo.h:10
const char * getModuleName(Int_t)
const char * getEleName(Int_t)