FairRoot/PandaRoot
PndLmdGeo.cxx
Go to the documentation of this file.
1 /*
2  * PndLmdGeo.cxx *
3  * Created on: Jun 30, 2010
4  * Author: huagen
5  */
6 
7 #include "PndLmdGeo.h"
8 #include "PndSdsGeo.h"
9 
10 #include <iostream>
11 
13 
14  // constructor
16  fName = "lmd";
17  maxSectors = 99;
18  maxModules = 99;
19 }
20 
22 
23 const char* PndLmdGeo::getModuleName(Int_t m) {
24  // PndSdsGeo::getModuleName(m);
25  if (m < 0) {
26  std::cout << "-E- CbmGeoSts::getModuleName:: Module number " << m
27  << " not known!" << std::endl;
28  return "";
29  }
30  if (m < 9)
31  sprintf(fModName, "lmdTrapStrip0%i", m + 1);
32  else
33  sprintf(fModName, "lmdTrapStrip%i", m + 1);
34  return fModName;
35 }
36 const char* PndLmdGeo::getEleName(Int_t m) {
37  // PndSdsGeo::getEleName(m);
38  // Returns the element name of Lmd number m
39  if (m < 9)
40  sprintf(fEleName, "lmd0%i", m + 1);
41  else
42  sprintf(fEleName, "lmd%i", m + 1);
43 
44  return fEleName;
45 }
__m128 m
Definition: P4_F32vec4.h:28
const char * getEleName(Int_t m)
Definition: PndLmdGeo.cxx:36
char fEleName[20]
Definition: PndSdsGeo.h:17
char fModName[20]
Definition: PndSdsGeo.h:16
const char * getModuleName(Int_t m)
Definition: PndLmdGeo.cxx:23
ClassImp(PndAnaContFact)