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.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 "
NewDetectorGeo.h
"
9
10
#include "
FairGeoNode.h
"
11
12
ClassImp
(
NewDetectorGeo
);
13
14
// ----- Default constructor -------------------------------------------
15
NewDetectorGeo::NewDetectorGeo
()
16
:
FairGeoSet
()
17
{
18
// Constructor
19
// fName has to be the name used in the geometry for all volumes.
20
// If there is a mismatch the geometry cannot be build.
21
fName =
"newdetector"
;
22
strcpy(
modName
,
"NewDetector"
);
23
strcpy(
eleName
,
"NewDetector"
);
24
maxSectors
= 0;
25
maxModules
= 10;
26
}
27
28
// -------------------------------------------------------------------------
29
30
const
char
*
NewDetectorGeo::getModuleName
(Int_t m)
31
{
37
sprintf(
modName
,
"NewDetector%i"
, m + 1);
38
return
modName
;
39
}
40
41
const
char
*
NewDetectorGeo::getEleName
(Int_t m)
42
{
44
sprintf(
eleName
,
"NewDetector%i"
, m + 1);
45
return
eleName
;
46
}
NewDetectorGeo.h
NewDetectorGeo
Definition:
NewDetectorGeo.h:13
FairGeoNode.h
NewDetectorGeo::getModuleName
const char * getModuleName(Int_t)
Definition:
NewDetectorGeo.cxx:30
NewDetectorGeo::NewDetectorGeo
NewDetectorGeo()
Definition:
NewDetectorGeo.cxx:15
ClassImp
ClassImp(FairEventBuilder)
FairGeoSet::maxSectors
Int_t maxSectors
Definition:
FairGeoSet.h:55
NewDetectorGeo::modName
char modName[20]
Definition:
NewDetectorGeo.h:17
NewDetectorGeo::eleName
char eleName[20]
Definition:
NewDetectorGeo.h:18
FairGeoSet::maxModules
Int_t maxModules
Definition:
FairGeoSet.h:57
NewDetectorGeo::getEleName
const char * getEleName(Int_t)
Definition:
NewDetectorGeo.cxx:41
FairGeoSet
Definition:
FairGeoSet.h:30
FairRoot
templates
project_root_containers
NewDetector
NewDetectorGeo.cxx
Generated on Mon Mar 8 2021 12:14:06 for FairRoot by
1.8.5