-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathELIGeoLuMonPar.cxx
64 lines (51 loc) · 2.02 KB
/
ELIGeoLuMonPar.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
62
63
64
/******************************************************************************
* 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. *
******************************************************************************/
//*-- AUTHOR : Denis Bertini
//*-- Created : 21/06/2005
#include "ELIGeoLuMonPar.h"
#include "FairParamList.h"
#include "TObjArray.h"
#include <iomanip>
#include <iostream>
ClassImp(ELIGeoLuMonPar)
ELIGeoLuMonPar::ELIGeoLuMonPar(const char* name, const char* title, const char* context)
: FairParGenericSet(name, title, context)
{
fGeoSensNodes = new TObjArray();
fGeoPassNodes = new TObjArray();
}
ELIGeoLuMonPar::~ELIGeoLuMonPar(void) {}
void ELIGeoLuMonPar::clear(void)
{
if (fGeoSensNodes)
delete fGeoSensNodes;
if (fGeoPassNodes)
delete fGeoPassNodes;
}
void ELIGeoLuMonPar::putParams(FairParamList* l)
{
if (!l)
return;
l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
}
Bool_t ELIGeoLuMonPar::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;
}