ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtTpcGeo.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 version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #include "AtTpcGeo.h"
9 
10 #include <FairGeoSet.h>
11 
12 #include <cstdio>
13 
15 
16  // ----- Default constructor -------------------------------------------
18  : FairGeoSet()
19 {
20  // Constructor
21  // fName has to be the name used in the geometry for all volumes.
22  // If there is a mismatch the geometry cannot be build.
23  fName = "newdetector";
24  maxSectors = 0;
25  maxModules = 10;
26 }
27 
28 // -------------------------------------------------------------------------
29 
30 const char *AtTpcGeo::getModuleName(Int_t m)
31 {
37  sprintf(modName, "AtTpc%i", m + 1);
38  return modName;
39 }
40 
41 const char *AtTpcGeo::getEleName(Int_t m)
42 {
44  sprintf(eleName, "AtTpc%i", m + 1);
45  return eleName;
46 }
ClassImp
ClassImp(AtTpcGeo) AtTpcGeo
Definition: AtTpcGeo.cxx:14
AtTpcGeo
Definition: AtTpcGeo.h:20
AtTpcGeo.h
AtTpcGeo::AtTpcGeo
AtTpcGeo()
AtTpcGeo::eleName
char eleName[20]
Definition: AtTpcGeo.h:24
AtTpcGeo::getEleName
const char * getEleName(Int_t)
Definition: AtTpcGeo.cxx:41
AtTpcGeo::getModuleName
const char * getModuleName(Int_t)
Definition: AtTpcGeo.cxx:30
AtTpcGeo::modName
char modName[20]
Definition: AtTpcGeo.h:23