FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NewDetectorGeo.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 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 NEWDETECTORGEO_H
9 #define NEWDETECTORGEO_H
10 
11 #include "FairGeoSet.h"
12 
13 class NewDetectorGeo : public FairGeoSet
14 {
15 
16  protected:
17  char modName[20]; // name of module
18  char eleName[20]; // substring for elements in module
19  public:
22  const char* getModuleName(Int_t);
23  const char* getEleName(Int_t);
24  inline Int_t getModNumInMod(const TString&);
26 };
27 
28 inline Int_t NewDetectorGeo::getModNumInMod(const TString& name)
29 {
35  return (Int_t)(name[11] - '0') - 1; //
36 }
37 
38 #endif
const char * getModuleName(Int_t)
char modName[20]
char eleName[20]
ClassDef(NewDetectorGeo, 1)
const char * getEleName(Int_t)
Int_t getModNumInMod(const TString &)