R3BROOT
R3B analysis software
Loading...
Searching...
No Matches
R3BGeoPassivePar.cxx
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (C) 2009 GSI Helmholtzzentrum für Schwerionenforschung GmbH *
3 * Copyright (C) 2009-2026 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
17#include "R3BGeoPassivePar.h"
18
19#include <FairParamList.h>
20
21#include <TObjArray.h>
22#include <iomanip>
23#include <iostream>
24
25R3BGeoPassivePar::R3BGeoPassivePar(const char* name, const char* title, const char* context)
26 : FairParGenericSet(name, title, context)
27{
28
29 fGeoSensNodes = new TObjArray();
30 fGeoPassNodes = new TObjArray();
31}
32
34{
35 if (fGeoSensNodes)
36 delete fGeoSensNodes;
37 if (fGeoPassNodes)
38 delete fGeoPassNodes;
39}
40
41void R3BGeoPassivePar::putParams(FairParamList* l)
42{
43 if (!l)
44 return;
45 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
46 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
47}
48
49Bool_t R3BGeoPassivePar::getParams(FairParamList* l)
50{
51 if (!l)
52 return kFALSE;
53 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
54 return kFALSE;
55 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
56 return kFALSE;
57
58 return kTRUE;
59}
60
ClassImp(R3B::Neuland::Cal2HitPar)
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")