R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BGeoPassivePar.cxx
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2019-2025 Members of R3B Collaboration *
4 * *
5 * This software is distributed under the terms of the *
6 * GNU General Public Licence (GPL) version 3, *
7 * copied verbatim in the file "LICENSE". *
8 * *
9 * In applying this license GSI does not waive the privileges and immunities *
10 * granted to it by virtue of its status as an Intergovernmental Organization *
11 * or submit itself to any jurisdiction. *
12 ******************************************************************************/
13
14//*-- AUTHOR : Denis Bertini
15//*-- Created : 21/06/2005
16#include <iomanip>
17#include <iostream>
18
19using namespace std;
20
21#include "FairParamList.h"
22#include "R3BGeoPassivePar.h"
23#include "TObjArray.h"
24
26
27 R3BGeoPassivePar::R3BGeoPassivePar(const char* name, const char* title, const char* context)
28 : FairParGenericSet(name, title, context)
29{
30
31 fGeoSensNodes = new TObjArray();
32 fGeoPassNodes = new TObjArray();
33}
34
36
38{
39 if (fGeoSensNodes)
40 delete fGeoSensNodes;
41 if (fGeoPassNodes)
42 delete fGeoPassNodes;
43}
44
45void R3BGeoPassivePar::putParams(FairParamList* l)
46{
47 if (!l)
48 return;
49 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
50 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
51}
52
53Bool_t R3BGeoPassivePar::getParams(FairParamList* l)
54{
55 if (!l)
56 return kFALSE;
57 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
58 return kFALSE;
59 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
60 return kFALSE;
61
62 return kTRUE;
63}
ClassImp(R3BGeoPassivePar) R3BGeoPassivePar
Bool_t getParams(FairParamList *)
void putParams(FairParamList *)
TObjArray * fGeoPassNodes
TObjArray * fGeoSensNodes
R3BGeoPassivePar(const char *name="R3BGeoPassivePar", const char *title="Passive Geometry Parameters", const char *context="TestDefaultContext")