EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PndGeoPassivePar.cxx
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PndGeoPassivePar.cxx
1 //*-- AUTHOR : Denis Bertini
2 //*-- Created : 21/06/2005
3 #include "PndGeoPassivePar.h"
4 #include "FairParamList.h"
5 #include <iostream>
6 #include <iomanip>
7 #include "TObjArray.h"
8 using namespace std;
10 
11 PndGeoPassivePar::PndGeoPassivePar(const char* name,const char* title,const char* context)
12  : FairParGenericSet(name,title,context), fGeoSensNodes(), fGeoPassNodes() {
13 
14  fGeoSensNodes = new TObjArray();
15  fGeoPassNodes = new TObjArray();
16 }
17 
19 }
20 
22  if(fGeoSensNodes) delete fGeoSensNodes;
23  if(fGeoPassNodes) delete fGeoPassNodes;
24 }
25 
27  if (!l) return;
28  l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
29  l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
30 }
31 
33  if (!l) return kFALSE;
34  if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
35  if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
36 
37  return kTRUE;
38 }