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
25
R3BGeoPassivePar::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
33
void
R3BGeoPassivePar::clear
(
void
)
34
{
35
if
(
fGeoSensNodes
)
36
delete
fGeoSensNodes
;
37
if
(
fGeoPassNodes
)
38
delete
fGeoPassNodes
;
39
}
40
41
void
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
49
Bool_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
61
ClassImp
(
R3BGeoPassivePar
)
R3BGeoPassivePar.h
ClassImp
ClassImp(R3B::Neuland::Cal2HitPar)
R3BGeoPassivePar
Definition
R3BGeoPassivePar.h:19
R3BGeoPassivePar::getParams
Bool_t getParams(FairParamList *)
Definition
R3BGeoPassivePar.cxx:49
R3BGeoPassivePar::putParams
void putParams(FairParamList *)
Definition
R3BGeoPassivePar.cxx:41
R3BGeoPassivePar::fGeoPassNodes
TObjArray * fGeoPassNodes
Definition
R3BGeoPassivePar.h:34
R3BGeoPassivePar::clear
void clear(void)
Definition
R3BGeoPassivePar.cxx:33
R3BGeoPassivePar::fGeoSensNodes
TObjArray * fGeoSensNodes
Definition
R3BGeoPassivePar.h:33
R3BGeoPassivePar::R3BGeoPassivePar
R3BGeoPassivePar(const char *name="R3BGeoPassivePar", const char *title="Passive Geometry Parameters", const char *context="TestDefaultContext")
Definition
R3BGeoPassivePar.cxx:25
passive
R3BGeoPassivePar.cxx
Generated by
1.16.1