BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
11
class
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
22
class
CbmStsSetup
:
public
CbmStsElement
23
{
24
25
public
:
26
CbmStsSetup
();
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
37
Bool_t
Init
(
TGeoManager
* geo);
38
39
static
CbmStsSetup
*
Instance
();
40
41
private
:
42
static
CbmStsSetup
*
fgInstance
;
43
44
static
const
TString
fgkLevelName
[
kStsNofLevels
];
45
46
ClassDef
(
CbmStsSetup
, 1);
47
};
48
49
#endif
/* CBMSTSSETUP_H */
kStsNofLevels
@ kStsNofLevels
Number of STS levels.
Definition
CbmStsAddress.h:29
CbmStsElement.h
Bool_t
bool Bool_t
Int_t
int Int_t
ClassDef
#define ClassDef(name, id)
CbmStsElement::CbmStsElement
CbmStsElement()
Default constructor.
Definition
CbmStsElement.cxx:13
CbmStsSetup
Class representing the top level of the STS setup.
Definition
CbmStsSetup.h:23
CbmStsSetup::fgInstance
static CbmStsSetup * fgInstance
Definition
CbmStsSetup.h:42
CbmStsSetup::CbmStsSetup
CbmStsSetup()
Definition
CbmStsSetup.cxx:21
CbmStsSetup::GetLevelName
static const char * GetLevelName(Int_t level)
Definition
CbmStsSetup.h:30
CbmStsSetup::Init
Bool_t Init(TGeoManager *geo)
Definition
CbmStsSetup.cxx:27
CbmStsSetup::fgkLevelName
static const TString fgkLevelName[kStsNofLevels]
Definition
CbmStsSetup.h:16
CbmStsSetup::Instance
static CbmStsSetup * Instance()
Definition
CbmStsSetup.cxx:73
CbmStsSetup::~CbmStsSetup
virtual ~CbmStsSetup()
Definition
CbmStsSetup.h:28
TGeoManager
TString
detectors
sts
setup
CbmStsSetup.h
Generated on
for BmnRoot by
1.17.0