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
20class CbmGeoMuch : public FairGeoSet {
21protected:
22 char modName[20]; // name of module
23 char eleName[20]; // substring for elements in module
24public:
25 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
33inline 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 */
Int_t getModNumInMod(const TString &)
Definition CbmGeoMuch.h:33
char modName[20]
Definition CbmGeoMuch.h:22
const char * getEleName(Int_t)
const char * getModuleName(Int_t)
char eleName[20]
Definition CbmGeoMuch.h:23