FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
:
20
NewDetectorGeo
();
21
~NewDetectorGeo
() {}
22
const
char
*
getModuleName
(Int_t);
23
const
char
*
getEleName
(Int_t);
24
inline
Int_t
getModNumInMod
(
const
TString&);
25
ClassDef
(
NewDetectorGeo
, 1);
26
};
27
28
inline
Int_t
NewDetectorGeo::getModNumInMod
(
const
TString& name)
29
{
35
return
(Int_t)(name[11] -
'0'
) - 1;
//
36
}
37
38
#endif
NewDetectorGeo
Definition:
NewDetectorGeo.h:13
NewDetectorGeo::~NewDetectorGeo
~NewDetectorGeo()
Definition:
NewDetectorGeo.h:21
NewDetectorGeo::getModuleName
const char * getModuleName(Int_t)
Definition:
NewDetectorGeo.cxx:30
NewDetectorGeo::NewDetectorGeo
NewDetectorGeo()
Definition:
NewDetectorGeo.cxx:15
NewDetectorGeo::modName
char modName[20]
Definition:
NewDetectorGeo.h:17
NewDetectorGeo::eleName
char eleName[20]
Definition:
NewDetectorGeo.h:18
NewDetectorGeo::ClassDef
ClassDef(NewDetectorGeo, 1)
NewDetectorGeo::getEleName
const char * getEleName(Int_t)
Definition:
NewDetectorGeo.cxx:41
FairGeoSet.h
NewDetectorGeo::getModNumInMod
Int_t getModNumInMod(const TString &)
Definition:
NewDetectorGeo.h:28
FairGeoSet
Definition:
FairGeoSet.h:30
FairRoot
templates
NewDetector_root_containers
NewDetectorGeo.h
Generated on Mon Mar 8 2021 12:14:06 for FairRoot by
1.8.5