CbmRoot
Loading...
Searching...
No Matches
CbmGeoPassivePar.cxx
Go to the documentation of this file.
1/* Copyright (C) 2005-2012 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Denis Bertini [committer], Florian Uhlig, Mohammad Al-Turany */
4
5#include "CbmGeoPassivePar.h"
6
7#include "FairParamList.h"
8
9#include "TObjArray.h"
10
12
13 CbmGeoPassivePar::CbmGeoPassivePar(const char* name, const char* title, const char* context)
14 : FairParGenericSet(name, title, context)
15 , fGeoSensNodes(new TObjArray())
16 , fGeoPassNodes(new TObjArray())
17{
18}
19
21
23{
24 if (fGeoSensNodes) delete fGeoSensNodes;
25 if (fGeoPassNodes) delete fGeoPassNodes;
26}
27
28void CbmGeoPassivePar::putParams(FairParamList* l)
29{
30 if (!l) return;
31 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
32 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
33}
34
35Bool_t CbmGeoPassivePar::getParams(FairParamList* l)
36{
37 if (!l) return kFALSE;
38 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
39 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
40
41 return kTRUE;
42}
ClassImp(CbmGeoPassivePar) CbmGeoPassivePar
Bool_t getParams(FairParamList *)
TObjArray * fGeoPassNodes
CbmGeoPassivePar(const char *name="CbmGeoPassivePar", const char *title="Passive Geometry Parameters", const char *context="TestDefaultContext")
void putParams(FairParamList *)
TObjArray * fGeoSensNodes