BmnRoot
Loading...
Searching...
No Matches
FairGeoPassivePar.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 (LGPL) version 3, *
6 * copied verbatim in the file "LICENSE" *
7 ********************************************************************************/
8//*-- AUTHOR : Denis Bertini
9//*-- Created : 21/06/2005
10
11#include "FairGeoPassivePar.h"
12
13#include "FairParamList.h" // for FairParamList
14
15#include <TObjArray.h> // for TObjArray
16
17FairGeoPassivePar::FairGeoPassivePar(const char* name, const char* title, const char* context)
18 : FairParGenericSet(name, title, context)
19 , fGeoSensNodes(new TObjArray())
20 , fGeoPassNodes(new TObjArray())
21{}
22
24
26{
27 if(fGeoSensNodes) { delete fGeoSensNodes; }
28 if(fGeoPassNodes) { delete fGeoPassNodes; }
29}
30
31void FairGeoPassivePar::putParams(FairParamList* l)
32{
33 if (!l) {
34 return;
35 }
36 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
37 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
38}
39
40Bool_t FairGeoPassivePar::getParams(FairParamList* l)
41{
42 if (!l) {
43 return kFALSE;
44 }
45 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) {
46 return kFALSE;
47 }
48 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) {
49 return kFALSE;
50 }
51
52 return kTRUE;
53}
TObjArray * fGeoSensNodes
TObjArray * fGeoPassNodes
Bool_t getParams(FairParamList *)
FairGeoPassivePar(const char *name="FairGeoPassivePar", const char *title="Passive Geometry Parameters", const char *context="TestDefaultContext")
void putParams(FairParamList *)