PandaRoot
PndSdsGeo.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 
13 #ifndef PNDSDSGEO_H
14 #define PNDSDSGEO_H
15 
16 #include "FairGeoSet.h"
17 
18 class PndSdsGeo : public FairGeoSet {
19  public:
20  PndSdsGeo();
22  const char *getModuleName(Int_t m);
23  const char *getEleName(Int_t m);
24  const char *getKeepinName(Int_t i, Int_t j);
25  inline Int_t getModNumInMod(const TString &name) const;
26 
27  protected:
28  char fModName[20]; // name of module
29  char fEleName[20]; // substring for elements in module
30  char fKeepinName[20];
31 
32  ClassDef(PndSdsGeo, 1); // Class for PndSds
33 };
34 
35 // TODO: we don't need this?
36 
37 inline Int_t PndSdsGeo::getModNumInMod(const TString &name) const
38 {
40  return (Int_t)(name[3] - '0') - 1;
41 }
42 
43 #endif /* !PNDSDSGEO_H */
const char * getKeepinName(Int_t i, Int_t j)
__m128 m
Definition: P4_F32vec4.h:38
char fEleName[20]
Definition: PndSdsGeo.h:29
char fKeepinName[20]
Definition: PndSdsGeo.h:30
char fModName[20]
Definition: PndSdsGeo.h:28
unsigned int i
Definition: P4_F32vec4.h:33
ClassDef(PndSdsGeo, 1)
const char * getEleName(Int_t m)
const char * getModuleName(Int_t m)
~PndSdsGeo()
Definition: PndSdsGeo.h:21
Int_t getModNumInMod(const TString &name) const
Definition: PndSdsGeo.h:37