CbmRoot
Loading...
Searching...
No Matches
CbmGeoMuch.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2006-2009 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Anna Senger, Denis Bertini [committer], Volker Friese */
4
15
#include "
CbmGeoMuch.h
"
16
17
#include "FairGeoNode.h"
18
19
CbmGeoMuch::CbmGeoMuch
()
20
{
21
// Constructor
22
fName =
"much"
;
23
maxSectors = 0;
24
maxModules = 1;
//99;
25
}
26
27
const
char
*
CbmGeoMuch::getModuleName
(Int_t m)
28
{
29
// Returns the module name of much number m
30
// if ( m < 0 ) {
31
// cout <<"-E- CbmGeoMuch::getModuleName:: Module number "
32
// << m << " not known!" << endl;
33
// return "";
34
// }
35
// if ( m < 9 ) sprintf(modName,"muchstation0%i",m+1);
36
// else sprintf(modName,"muchstation%i",m+1);
37
38
snprintf(
eleName
, 19,
"much%i"
, m + 1);
39
// cout << "DEBUG: modName(" << m << ")="<< modName << endl;
40
// CbmGeoMuchPar* fGeoPar = (CbmGeoMuchPar*) db->getContainer("CbmGeoMuchPar");
41
42
return
modName
;
43
}
44
45
const
char
*
CbmGeoMuch::getEleName
(Int_t m)
46
{
47
// Returns the element name of sts number m
48
snprintf(
eleName
, 19,
"much%i"
, m + 1);
49
return
eleName
;
50
}
51
52
ClassImp
(
CbmGeoMuch
)
ClassImp
ClassImp(CbmConverterManager)
CbmGeoMuch.h
CbmGeoMuch
Definition
CbmGeoMuch.h:20
CbmGeoMuch::modName
char modName[20]
Definition
CbmGeoMuch.h:22
CbmGeoMuch::getEleName
const char * getEleName(Int_t)
Definition
CbmGeoMuch.cxx:45
CbmGeoMuch::CbmGeoMuch
CbmGeoMuch()
Definition
CbmGeoMuch.cxx:19
CbmGeoMuch::getModuleName
const char * getModuleName(Int_t)
Definition
CbmGeoMuch.cxx:27
CbmGeoMuch::eleName
char eleName[20]
Definition
CbmGeoMuch.h:23
sim
detectors
much
CbmGeoMuch.cxx
Generated on Sun Dec 22 2024 23:04:18 for CbmRoot by
1.12.0