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
19
using namespace
std;
20
21
#include "FairParamList.h"
22
#include "
R3BGeoPassivePar.h
"
23
#include "TObjArray.h"
24
25
ClassImp
(
R3BGeoPassivePar
)
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
35
R3BGeoPassivePar::~R3BGeoPassivePar
(
void
) {}
36
37
void
R3BGeoPassivePar::clear
(
void
)
38
{
39
if
(
fGeoSensNodes
)
40
delete
fGeoSensNodes
;
41
if
(
fGeoPassNodes
)
42
delete
fGeoPassNodes
;
43
}
44
45
void
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
53
Bool_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
ClassImp(R3BGeoPassivePar) R3BGeoPassivePar
Definition
R3BGeoPassivePar.cxx:25
R3BGeoPassivePar.h
R3BGeoPassivePar
Definition
R3BGeoPassivePar.h:21
R3BGeoPassivePar::getParams
Bool_t getParams(FairParamList *)
Definition
R3BGeoPassivePar.cxx:53
R3BGeoPassivePar::putParams
void putParams(FairParamList *)
Definition
R3BGeoPassivePar.cxx:45
R3BGeoPassivePar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition
R3BGeoPassivePar.h:24
R3BGeoPassivePar::~R3BGeoPassivePar
~R3BGeoPassivePar(void)
Definition
R3BGeoPassivePar.cxx:35
R3BGeoPassivePar::clear
void clear(void)
Definition
R3BGeoPassivePar.cxx:37
R3BGeoPassivePar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
R3BGeoPassivePar.h:23
R3BGeoPassivePar::R3BGeoPassivePar
R3BGeoPassivePar(const char *name="R3BGeoPassivePar", const char *title="Passive Geometry Parameters", const char *context="TestDefaultContext")
passive
R3BGeoPassivePar.cxx
Generated by
1.13.2