BmnRoot
Loading...
Searching...
No Matches
CbmGeoStsPar.cxx
Go to the documentation of this file.
1//*-- AUTHOR : Denis Bertini
2//*-- Created : 21/06/2005
3
4#include "CbmGeoStsPar.h"
5
6#include "FairParamList.h"
7#include "TObjArray.h"
8
9#include <iomanip>
10#include <iostream>
11
12CbmGeoStsPar::CbmGeoStsPar(const char* name, const char* title, const char* context)
13 : FairParGenericSet(name, title, context)
14 , fGeoSensNodes(NULL)
15 , fGeoPassNodes(NULL)
16{
17
18 fGeoSensNodes = new TObjArray();
19 fGeoPassNodes = new TObjArray();
20}
21
23{
24 if (fGeoSensNodes)
25 delete fGeoSensNodes;
26 if (fGeoPassNodes)
27 delete fGeoPassNodes;
28}
29
31{
32 if (fGeoSensNodes)
33 delete fGeoSensNodes;
34 if (fGeoPassNodes)
35 delete fGeoPassNodes;
36 fGeoSensNodes = NULL;
37 fGeoPassNodes = NULL;
38}
39
40void CbmGeoStsPar::putParams(FairParamList* l)
41{
42 if (!l)
43 return;
44 l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
45 l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
46}
47
48Bool_t CbmGeoStsPar::getParams(FairParamList* l)
49{
50 if (!l)
51 return kFALSE;
52 if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
53 return kFALSE;
54 if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
55 return kFALSE;
56
57 return kTRUE;
58}
TObjArray * fGeoSensNodes
void putParams(FairParamList *)
CbmGeoStsPar(const char *name="CbmGeoStsPar", const char *title="Sts Geometry Parameters", const char *context="TestDefaultContext")
void clear(void)
TObjArray * fGeoPassNodes
Bool_t getParams(FairParamList *)