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