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