FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PixelGeoPar.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 #include "PixelGeoPar.h"
9 
10 #include "FairParamList.h"
11 
12 #include <TObjArray.h>
13 
15 
16 PixelGeoPar ::PixelGeoPar(const char* name, const char* title, const char* context)
17  : FairParGenericSet(name, title, context)
18  , fGeoSensNodes(new TObjArray())
19  , fGeoPassNodes(new TObjArray())
20 {}
21 
23 
25 {
26  delete fGeoSensNodes;
27  delete fGeoPassNodes;
28 }
29 
31 {
32  if (!l) {
33  return;
34  }
35  l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
36  l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
37 }
38 
40 {
41  if (!l) {
42  return kFALSE;
43  }
44  if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) {
45  return kFALSE;
46  }
47  if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) {
48  return kFALSE;
49  }
50  return kTRUE;
51 }
TObjArray * fGeoSensNodes
Definition: PixelGeoPar.h:22
PixelGeoPar(const char *name="PixelGeoPar", const char *title="Pixel Geometry Parameters", const char *context="TestDefaultContext")
Definition: PixelGeoPar.cxx:16
void addObject(const Text_t *, TObject *)
ClassImp(FairEventBuilder)
Bool_t fillObject(const Text_t *, TObject *)
void clear(void)
Definition: PixelGeoPar.cxx:24
TObjArray * fGeoPassNodes
Definition: PixelGeoPar.h:25
void putParams(FairParamList *)
Definition: PixelGeoPar.cxx:30
Bool_t getParams(FairParamList *)
Definition: PixelGeoPar.cxx:39
~PixelGeoPar(void)
Definition: PixelGeoPar.cxx:22