ATTPCROOT
0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
AtTpc
AtTpcGeoPar.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 "
AtTpcGeoPar.h
"
9
10
#include <FairParGenericSet.h>
11
#include <FairParamList.h>
12
13
#include <TObjArray.h>
14
15
ClassImp
(
AtTpcGeoPar
)
16
17
AtTpcGeoPar ::AtTpcGeoPar
(
const
char
*name,
const
char
*title,
const
char
*context)
18
: FairParGenericSet(name, title, context), fGeoSensNodes(new TObjArray()), fGeoPassNodes(new TObjArray())
19
{
20
}
21
22
AtTpcGeoPar::~AtTpcGeoPar
() =
default
;
23
24
void
AtTpcGeoPar::clear
()
25
{
26
if
(
fGeoSensNodes
) {
27
delete
fGeoSensNodes
;
28
}
29
if
(
fGeoPassNodes
) {
30
delete
fGeoPassNodes
;
31
}
32
}
33
34
void
AtTpcGeoPar::putParams
(FairParamList *l)
35
{
36
if
(!l) {
37
return
;
38
}
39
l->addObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
);
40
l->addObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
);
41
}
42
43
Bool_t
AtTpcGeoPar::getParams
(FairParamList *l)
44
{
45
if
(!l) {
46
return
kFALSE;
47
}
48
if
(!l->fillObject(
"FairGeoNodes Sensitive List"
,
fGeoSensNodes
)) {
49
return
kFALSE;
50
}
51
if
(!l->fillObject(
"FairGeoNodes Passive List"
,
fGeoPassNodes
)) {
52
return
kFALSE;
53
}
54
return
kTRUE;
55
}
AtTpcGeoPar::AtTpcGeoPar
AtTpcGeoPar(const char *name="AtTpcGeoPar", const char *title="AtTpc Geometry Parameters", const char *context="TestDefaultContext")
ClassImp
ClassImp(AtTpcGeoPar) AtTpcGeoPar
Definition:
AtTpcGeoPar.cxx:15
AtTpcGeoPar::getParams
Bool_t getParams(FairParamList *)
Definition:
AtTpcGeoPar.cxx:43
AtTpcGeoPar
Definition:
AtTpcGeoPar.h:21
AtTpcGeoPar::clear
void clear(void)
Definition:
AtTpcGeoPar.cxx:24
AtTpcGeoPar::~AtTpcGeoPar
~AtTpcGeoPar(void)
AtTpcGeoPar::putParams
void putParams(FairParamList *)
Definition:
AtTpcGeoPar.cxx:34
AtTpcGeoPar.h
AtTpcGeoPar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition:
AtTpcGeoPar.h:27
AtTpcGeoPar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition:
AtTpcGeoPar.h:24
Generated on Sat Nov 11 2023 15:30:39 for ATTPCROOT by
1.8.18