FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairGeoParSet.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 // -------------------------------------------------------------------------
9 // ----- FairGeoParSet source file -----
10 // ----- Created 06/06/13 by M. Al/Turany -----
11 // -------------------------------------------------------------------------
12 
13 #include "FairGeoParSet.h"
14 
15 #include "FairParamList.h" // for FairParamList
16 
17 #include <TObjArray.h> // for TObjArray
18 
20 
21 FairGeoParSet::FairGeoParSet(const char* name, const char* title, const char* context)
22  : FairParGenericSet(name, title, context)
23  , fGeoNodes(new TObjArray())
24  , fGeom(0)
25 {}
26 
28 
30 {
31  // delete fGeoNodes;
32  // delete fGeom;
33 }
34 
36 {
37  if (!l) {
38  return;
39  }
40  l->addObject("FairGeoNodes List", fGeoNodes);
41  l->addObject("Detector Geometry", fGeom);
42 }
43 
45 {
46  if (!l) {
47  return kFALSE;
48  }
49  if (!l->fillObject("FairGeoNodes List", fGeoNodes)) {
50  return kFALSE;
51  }
52  if (!l->fillObject("Detector Geometry", fGeom)) {
53  return kFALSE;
54  }
55  return kTRUE;
56 }
void clear(void)
Bool_t getParams(FairParamList *)
void addObject(const Text_t *, TObject *)
ClassImp(FairEventBuilder)
Bool_t fillObject(const Text_t *, TObject *)
FairGeoParSet(const char *name="FairGeoParSet", const char *title="Class for base parameter io", const char *context="BaseDefaultContext")
TObjArray * fGeoNodes
List of FairGeoNodes for sensitive volumes.
Definition: FairGeoParSet.h:75
TGeoManager * fGeom
Full Geometry.
Definition: FairGeoParSet.h:77
void putParams(FairParamList *)