CbmRoot
Loading...
Searching...
No Matches
CbmGeoMuchPar.cxx
Go to the documentation of this file.
1/* Copyright (C) 2006-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Evgeny Kryshen, Denis Bertini [committer], Florian Uhlig, Mohammad Al-Turany, Mikhail Ryzhinskiy */
4
17#include "CbmGeoMuchPar.h"
18
19#include <FairParGenericSet.h> // for FairParGenericSet
20#include <FairParamList.h> // for FairParamList
21
22#include <TObjArray.h> // for TObjArray
23
24CbmGeoMuchPar::CbmGeoMuchPar(const char* name, const char* title, const char* context)
25 : FairParGenericSet(name, title, context)
26 , fGeoSensNodes(new TObjArray())
27 , fGeoPassNodes(new TObjArray())
28 , fStations(new TObjArray())
29{
30}
31
33
35{
36 if (fGeoSensNodes) delete fGeoSensNodes;
37 if (fGeoPassNodes) delete fGeoPassNodes;
38 if (fStations) delete fStations;
39}
40
41void CbmGeoMuchPar::putParams(FairParamList* l)
42{
43 if (!l) return;
44 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
45 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
46 l->addObject("CbmMuchStationOlds list", fStations);
47}
48
49Bool_t CbmGeoMuchPar::getParams(FairParamList* l)
50{
51 if (!l) return kFALSE;
52 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
53 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
54 if (!l->fillObject("CbmMuchStationOlds list", fStations)) return kFALSE;
55 return kTRUE;
56}
57
ClassImp(CbmConverterManager)
TObjArray * fGeoSensNodes
TObjArray * fStations
void clear(void)
CbmGeoMuchPar(const char *name="CbmGeoMuchPar", const char *title="Much Geometry Parameters", const char *context="TestDefaultContext")
TObjArray * fGeoPassNodes
void putParams(FairParamList *)
Bool_t getParams(FairParamList *)