FairRoot/PandaRoot
PndSdsGeo.cxx
Go to the documentation of this file.
1 //*-- AUTHOR : Ilse Koenig
2 //*-- Created : 10/11/2003
3 
5 // CbmGeoTof
6 //
7 // Class for geometry of PndSds
8 //
10 
11 #include "PndSdsGeo.h"
12 #include "FairGeoNode.h"
13 
15 
17 {
18  // Constructor
19  fName="sds";
20  maxSectors=99;
21  maxModules=99;
22  //maxKeepinVolumes=99;
23 }
24 
25 const char* PndSdsGeo::getModuleName(Int_t m)
26 {
27  if ( m < 0 ) {
28  std::cout <<"-E- CbmGeoSts::getModuleName:: Module number "
29  << m << " not known!" << std::endl;
30  return "";
31  }
32  if ( m < 9 ) sprintf(fModName,"sdsstation0%i",m+1);
33  else sprintf(fModName,"sdsstation%i",m+1);
34  return fModName;
35 }
36 
37 const char* PndSdsGeo::getEleName(Int_t m)
38 {
39  // Returns the element name of PndSds number m
40  if (m < 9)
41  sprintf(fEleName,"sds0%i",m+1);
42  else sprintf(fEleName,"sds%i",m+1);
43 
44  return fEleName;
45 }
46 
47 const char* PndSdsGeo::getKeepinName(Int_t i, Int_t ) // j //[R.K.03/2017] unused variable(s)
48 {
49  sprintf(fKeepinName,"SDSKeepin0%i",i+1);
50  return fKeepinName;
51 }
Int_t i
Definition: run_full.C:25
__m128 m
Definition: P4_F32vec4.h:28
char fEleName[20]
Definition: PndSdsGeo.h:17
char fKeepinName[20]
Definition: PndSdsGeo.h:18
char fModName[20]
Definition: PndSdsGeo.h:16
const char * getModuleName(Int_t m)
Definition: PndSdsGeo.cxx:25
ClassImp(PndAnaContFact)
const char * getEleName(Int_t m)
Definition: PndSdsGeo.cxx:37
const char * getKeepinName(Int_t i, Int_t j)
Definition: PndSdsGeo.cxx:47