FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairTutorialDet1GeoPar.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  ********************************************************************************/
9 
10 #include "FairParamList.h" // for FairParamList
11 
12 #include <TObjArray.h> // for TObjArray
13 
15 
16 FairTutorialDet1GeoPar ::FairTutorialDet1GeoPar(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 }
FairTutorialDet1GeoPar(const char *name="FairTutorialDet1GeoPar", const char *title="FairTutorialDet1 Geometry Parameters", const char *context="TestDefaultContext")
Bool_t getParams(FairParamList *)
void addObject(const Text_t *, TObject *)
ClassImp(FairEventBuilder)
Bool_t fillObject(const Text_t *, TObject *)
void putParams(FairParamList *)