FairRoot
 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 
13 
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 
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 }
ClassImp(FairEventBuilder)
Int_t maxSectors
Definition: FairGeoSet.h:55
const char * getEleName(Int_t)
const char * getModuleName(Int_t)
Int_t maxModules
Definition: FairGeoSet.h:57