forked from R3BRootGroup/R3BRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathR3BGeomTof.cxx
55 lines (50 loc) · 1.86 KB
/
R3BGeomTof.cxx
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
44
45
46
47
48
49
50
51
52
53
54
55
/******************************************************************************
* Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
* Copyright (C) 2019 Members of R3B Collaboration *
* *
* This software is distributed under the terms of the *
* GNU General Public Licence (GPL) version 3, *
* copied verbatim in the file "LICENSE". *
* *
* In applying this license GSI does not waive the privileges and immunities *
* granted to it by virtue of its status as an Intergovernmental Organization *
* or submit itself to any jurisdiction. *
******************************************************************************/
/////////////////////////////////////////////////////////////
// R3BGeomTof
//
// Class for geometry of R3BCAL
//
/////////////////////////////////////////////////////////////
#include "R3BGeomTof.h"
#include "FairGeoNode.h"
#include "FairLogger.h"
#include <iostream>
ClassImp(R3BGeomTof)
R3BGeomTof::R3BGeomTof()
{
// Constructor
fName = "sts";
maxSectors = 0;
maxModules = 99;
}
const char* R3BGeomTof::getModuleName(Int_t m)
{
// Returns the module name of sts number m
if (m < 0)
{
LOG(ERROR) << "R3BGeomTof::getModuleName:: Module number " << m << " not known!";
return "";
}
if (m < 9)
sprintf(modName, "calstation0%i", m + 1);
else
sprintf(modName, "calstation%i", m + 1);
return modName;
}
const char* R3BGeomTof::getEleName(Int_t m)
{
// Returns the element name of sts number m
sprintf(eleName, "cal%i", m + 1);
return eleName;
}