BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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)
21{}
22
24
26{
27 if (fGeoSensNodes) {
28 delete fGeoSensNodes;
29 }
30 if (fGeoPassNodes) {
31 delete fGeoPassNodes;
32 }
33}
34
35void FairGeoPassivePar::putParams(FairParamList* l)
36{
37 if (!l) {
38 return;
39 }
40 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
41 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
42}
43
45{
46 if (!l) {
47 return kFALSE;
48 }
49 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) {
50 return kFALSE;
51 }
52 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) {
53 return kFALSE;
54 }
55
56 return kTRUE;
57}
bool Bool_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
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 *)