FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTutPropGeo.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2019 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FAIRTUTPROPGEO_H
9 #define FAIRTUTPROPGEO_H
10 
11 #include "FairGeoSet.h" // for FairGeoSet
12 #include "Rtypes.h" // for FairTutPropGeo::Class, ClassDef, FairTutPropGeo::Streamer
13 #include "TString.h" // for TString
14 
15 class FairTutPropGeo : public FairGeoSet
16 {
17 
18  protected:
19  char modName[20]; // name of module
20  char eleName[20]; // substring for elements in module
21  public:
24  const char* getModuleName(Int_t);
25  const char* getEleName(Int_t);
26  inline Int_t getModNumInMod(const TString&);
28 };
29 
30 inline Int_t FairTutPropGeo::getModNumInMod(const TString& name)
31 {
37  return static_cast<Int_t>((name[5] - '0') - 1); //
38 }
39 
40 #endif // FAIRTUTPROPGEO_H
ClassDef(FairTutPropGeo, 1)
Int_t getModNumInMod(const TString &)
char eleName[20]
char modName[20]
const char * getModuleName(Int_t)
const char * getEleName(Int_t)