CbmRoot
Loading...
Searching...
No Matches
CbmGeoMuch.h
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] */
4
15
#ifndef CBMGEOMUCH_H
16
#define CBMGEOMUCH_H
17
18
#include "FairGeoSet.h"
19
20
class
CbmGeoMuch
:
public
FairGeoSet {
21
protected
:
22
char
modName
[20];
// name of module
23
char
eleName
[20];
// substring for elements in module
24
public
:
25
CbmGeoMuch
();
26
~CbmGeoMuch
() {}
27
const
char
*
getModuleName
(Int_t);
28
const
char
*
getEleName
(Int_t);
29
inline
Int_t
getModNumInMod
(
const
TString&);
30
ClassDef(
CbmGeoMuch
, 0)
// Class for MUID
31
};
32
33
inline
Int_t
CbmGeoMuch::getModNumInMod
(
const
TString& name)
34
{
35
// returns the module index from module name
36
return
(Int_t)(name[4] -
'0'
) - 1;
37
}
38
39
#endif
/* !CBMGEOMUCH_H */
CbmGeoMuch
Definition
CbmGeoMuch.h:20
CbmGeoMuch::~CbmGeoMuch
~CbmGeoMuch()
Definition
CbmGeoMuch.h:26
CbmGeoMuch::getModNumInMod
Int_t getModNumInMod(const TString &)
Definition
CbmGeoMuch.h:33
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.h
Generated on Mon Feb 3 2025 23:04:00 for CbmRoot by
1.12.0