forked from R3BRootGroup/R3BRoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathR3BGeoPdcPar.cxx
61 lines (49 loc) · 1.95 KB
/
R3BGeoPdcPar.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
56
57
58
59
60
61
/******************************************************************************
* 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. *
******************************************************************************/
#include "R3BGeoPdcPar.h"
#include "FairParamList.h"
#include "TObjArray.h"
#include <iomanip>
#include <iostream>
ClassImp(R3BGeoPdcPar)
R3BGeoPdcPar::R3BGeoPdcPar(const char* name, const char* title, const char* context)
: FairParGenericSet(name, title, context)
{
fGeoSensNodes = new TObjArray();
fGeoPassNodes = new TObjArray();
}
R3BGeoPdcPar::~R3BGeoPdcPar(void) {}
void R3BGeoPdcPar::clear(void)
{
if (fGeoSensNodes)
delete fGeoSensNodes;
if (fGeoPassNodes)
delete fGeoPassNodes;
}
void R3BGeoPdcPar::putParams(FairParamList* l)
{
if (!l)
return;
l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
}
Bool_t R3BGeoPdcPar::getParams(FairParamList* l)
{
if (!l)
return kFALSE;
if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
return kFALSE;
if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
return kFALSE;
return kTRUE;
}