BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
CbmStsSetup.h
Go to the documentation of this file.
1/** @file CbmStsSetup.h
2 ** @author Volker Friese <v.friese@gsi.de>
3 ** @date 27.05.2013
4 **/
5
6#ifndef CBMSTSSETUP_H
7#define CBMSTSSETUP_H 1
8
9#include "CbmStsElement.h"
10
11class TGeoManager;
12
13/** @class CbmStsSetup
14 ** @brief Class representing the top level of the STS setup
15 ** @author V.Friese <v.friese@gsi.de>
16 ** @version 1.0
17 **
18 ** The CbmStsSetup is a singleton class and represents the
19 ** interface to the CBM geometry and its elements.
20 **/
21
23{
24
25 public:
27
28 virtual ~CbmStsSetup() {};
29
30 static const char* GetLevelName(Int_t level)
31 {
32 if (level < 0 || level >= kStsNofLevels)
33 return "";
34 return (fgkLevelName[level]).Data();
35 }
36
38
39 static CbmStsSetup* Instance();
40
41 private:
43
45
47};
48
49#endif /* CBMSTSSETUP_H */
@ kStsNofLevels
Number of STS levels.
bool Bool_t
int Int_t
#define ClassDef(name, id)
CbmStsElement()
Default constructor.
Class representing the top level of the STS setup.
Definition CbmStsSetup.h:23
static CbmStsSetup * fgInstance
Definition CbmStsSetup.h:42
static const char * GetLevelName(Int_t level)
Definition CbmStsSetup.h:30
Bool_t Init(TGeoManager *geo)
static const TString fgkLevelName[kStsNofLevels]
Definition CbmStsSetup.h:16
static CbmStsSetup * Instance()
virtual ~CbmStsSetup()
Definition CbmStsSetup.h:28