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