FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FairRutherfordGeo.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 CBMRUTHERFORDGEO_H
9
#define CBMRUTHERFORDGEO_H
10
11
#include "
FairGeoSet.h
"
// for FairGeoSet
12
13
#include <Rtypes.h>
// for Int_t, etc
14
#include <TString.h>
// for TString
15
16
class
FairRutherfordGeo
:
public
FairGeoSet
17
{
18
19
protected
:
20
char
modName
[20];
// name of module
21
char
eleName
[20];
// substring for elements in module
22
public
:
23
FairRutherfordGeo
();
24
~FairRutherfordGeo
() {}
25
const
char
*
getModuleName
(Int_t);
26
const
char
*
getEleName
(Int_t);
27
inline
Int_t
getModNumInMod
(
const
TString&);
28
ClassDef
(
FairRutherfordGeo
, 1);
29
};
30
31
inline
Int_t
FairRutherfordGeo::getModNumInMod
(
const
TString& name)
32
{
38
return
static_cast<
Int_t
>
((name[10] -
'0'
) - 1);
//
39
}
40
41
#endif
FairRutherfordGeo::getModuleName
const char * getModuleName(Int_t)
Definition:
FairRutherfordGeo.cxx:25
FairRutherfordGeo::eleName
char eleName[20]
Definition:
FairRutherfordGeo.h:21
FairRutherfordGeo::modName
char modName[20]
Definition:
FairRutherfordGeo.h:20
FairRutherfordGeo::getModNumInMod
Int_t getModNumInMod(const TString &)
Definition:
FairRutherfordGeo.h:31
FairRutherfordGeo
Definition:
FairRutherfordGeo.h:16
FairRutherfordGeo::getEleName
const char * getEleName(Int_t)
Definition:
FairRutherfordGeo.cxx:36
FairRutherfordGeo::ClassDef
ClassDef(FairRutherfordGeo, 1)
FairGeoSet.h
FairRutherfordGeo::~FairRutherfordGeo
~FairRutherfordGeo()
Definition:
FairRutherfordGeo.h:24
FairRutherfordGeo::FairRutherfordGeo
FairRutherfordGeo()
Definition:
FairRutherfordGeo.cxx:14
FairGeoSet
Definition:
FairGeoSet.h:30
FairRoot
examples
simulation
rutherford
src
FairRutherfordGeo.h
Generated on Mon Mar 8 2021 12:14:06 for FairRoot by
1.8.5