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
20{
21 // Constructor
22 fName = "much";
23 maxSectors = 0;
24 maxModules = 1; //99;
25}
26
27const 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
45const 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
ClassImp(CbmConverterManager)
char modName[20]
Definition CbmGeoMuch.h:22
const char * getEleName(Int_t)
const char * getModuleName(Int_t)
char eleName[20]
Definition CbmGeoMuch.h:23