CbmBftcGeo.cxx 1.48 KB
Newer Older
Eoin Clerkin's avatar
Eoin Clerkin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/********************************************************************************
 *    Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH    *
 *                                                                              *
 *              This software is distributed under the terms of the             * 
 *              GNU Lesser General Public Licence (LGPL) version 3,             *  
 *                  copied verbatim in the file "LICENSE"                       *
 ********************************************************************************/
#include "CbmBftcGeo.h"
#include "FairGeoNode.h"

ClassImp(CbmBftcGeo)

// -----   Default constructor   -------------------------------------------
CbmBftcGeo::CbmBftcGeo()
  : FairGeoSet()
{
  // Constructor
  // fName has to be the name used in the geometry for all volumes.
  // If there is a mismatch the geometry cannot be build.
  fName="newdetector";
  maxSectors=0;
  maxModules=10;
}

// -------------------------------------------------------------------------

const char* CbmBftcGeo::getModuleName(Int_t m)
{
  /** Returns the module name of CbmBftc number m
      Setting CbmBftc here means that all modules names in the
      ASCII file should start with CbmBftc otherwise they will
      not be constructed
  */
  sprintf(modName,"CbmBftc%i",m+1);
  return modName;
}

const char* CbmBftcGeo::getEleName(Int_t m)
{
  /** Returns the element name of Det number m */
  sprintf(eleName,"CbmBftc%i",m+1);
  return eleName;
}