PandaRoot
PndGeoOt.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
14 // PndGeoOt header file
15 //
16 // Class for geometry of OT
17 //
18 // authors: Radoslaw Karabowicz, GSI, 2024
19 //
20 // modified from PndGeoFts by Nafija Ibrišimović in 2023
22 
23 #ifndef PNDGEOOT_H
24 #define PNDGEOOT_H
25 
26 // from FairRoot
27 #include <FairGeoSet.h>
28 
29 class PndGeoOt : public FairGeoSet {
30  protected:
31  std::string modName; // name of module
32  std::string eleName; // substring for elements in module
33  public:
34  PndGeoOt();
35  ~PndGeoOt() {}
36  const char *getModuleName(Int_t);
37  const char *getEleName(Int_t);
38  inline Int_t getModNumInMod(const TString &);
39  ClassDef(PndGeoOt, 0) // Class for Ot
40 };
41 
42 inline Int_t PndGeoOt::getModNumInMod(const TString &name)
43 {
44  // returns the module index from module name
45 
46  return (Int_t)(name[2] - '0') - 1;
47 }
48 
49 #endif /* !PNDGEOOT_H */
Int_t getModNumInMod(const TString &)
Definition: PndGeoOt.h:42
std::string eleName
Definition: PndGeoOt.h:32
std::string modName
Definition: PndGeoOt.h:31
~PndGeoOt()
Definition: PndGeoOt.h:35
const char * getModuleName(Int_t)
const char * getEleName(Int_t)