FairRoot
 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 
13 
14 // ----- Default constructor -------------------------------------------
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 }
const char * getModuleName(Int_t)
ClassImp(FairEventBuilder)
Int_t maxSectors
Definition: FairGeoSet.h:55
char modName[20]
char eleName[20]
Int_t maxModules
Definition: FairGeoSet.h:57
const char * getEleName(Int_t)