FairRoot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FairTestDetectorGeo.cxx
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
#include "
FairTestDetectorGeo.h
"
9
10
#include <cstdio>
// for sprintf
11
12
ClassImp
(
FairTestDetectorGeo
);
13
14
FairTestDetectorGeo::FairTestDetectorGeo
()
15
:
FairGeoSet
()
16
{
17
// Constructor
18
// fName has to be the name used in the geometry for all volumes.
19
// If there is a mismatch the geometry cannot be build.
20
fName =
"torino"
;
21
strcpy(
modName
,
"torino"
);
22
strcpy(
eleName
,
"torino"
);
23
maxSectors
= 0;
24
maxModules
= 10;
25
}
26
27
const
char
*
FairTestDetectorGeo::getModuleName
(Int_t m)
28
{
34
sprintf(
modName
,
"torino%i"
, m + 1);
35
return
modName
;
36
}
37
38
const
char
*
FairTestDetectorGeo::getEleName
(Int_t m)
39
{
41
sprintf(
eleName
,
"torino%i"
, m + 1);
42
return
eleName
;
43
}
FairTestDetectorGeo::eleName
char eleName[20]
Definition:
FairTestDetectorGeo.h:20
FairTestDetectorGeo::FairTestDetectorGeo
FairTestDetectorGeo()
Definition:
FairTestDetectorGeo.cxx:14
ClassImp
ClassImp(FairEventBuilder)
FairGeoSet::maxSectors
Int_t maxSectors
Definition:
FairGeoSet.h:55
FairTestDetectorGeo::getEleName
const char * getEleName(Int_t)
Definition:
FairTestDetectorGeo.cxx:38
FairTestDetectorGeo::getModuleName
const char * getModuleName(Int_t)
Definition:
FairTestDetectorGeo.cxx:27
FairTestDetectorGeo
Definition:
FairTestDetectorGeo.h:16
FairGeoSet::maxModules
Int_t maxModules
Definition:
FairGeoSet.h:57
FairTestDetectorGeo::modName
char modName[20]
Definition:
FairTestDetectorGeo.h:19
FairTestDetectorGeo.h
FairGeoSet
Definition:
FairGeoSet.h:30
FairRoot
examples
advanced
Tutorial3
simulation
FairTestDetectorGeo.cxx
Generated on Mon Mar 8 2021 12:14:05 for FairRoot by
1.8.5