FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
17 using namespace std;
18 
20 
21 FairGeoPassivePar::FairGeoPassivePar(const char* name, const char* title, const char* context)
22  : FairParGenericSet(name, title, context)
23  , fGeoSensNodes(new TObjArray())
24  , fGeoPassNodes(new TObjArray())
25 {}
26 
28 
30 {
31  delete fGeoSensNodes;
32  delete fGeoPassNodes;
33 }
34 
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 }
FairGeoPassivePar(const char *name="FairGeoPassivePar", const char *title="Passive Geometry Parameters", const char *context="TestDefaultContext")
void addObject(const Text_t *, TObject *)
ClassImp(FairEventBuilder)
Bool_t fillObject(const Text_t *, TObject *)
TObjArray * fGeoPassNodes
void putParams(FairParamList *)
Bool_t getParams(FairParamList *)
TObjArray * fGeoSensNodes