1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using namespace std;
- #include "TObjArray.h"
- #include "TpcGeoPar.h"
- #include "FairParamList.h"
- #include <iostream>
- #include <iomanip>
- ClassImp(TpcGeoPar)
- TpcGeoPar::TpcGeoPar(const char* name,const char* title,const char* context)
- : FairParGenericSet(name,title,context)
- {
- fGeoSensNodes = new TObjArray();
- fGeoPassNodes = new TObjArray();
- }
- TpcGeoPar::~TpcGeoPar(void)
- {
- if(fGeoSensNodes) delete fGeoSensNodes;
- if(fGeoPassNodes) delete fGeoPassNodes;
- }
- void TpcGeoPar::clear(void)
- {
- if(fGeoSensNodes)
- delete fGeoSensNodes;
- if(fGeoPassNodes)
- delete fGeoPassNodes;
- fGeoSensNodes = fGeoPassNodes = 0x0; //AZ
- }
- void TpcGeoPar::putParams(FairParamList* l)
- {
- if (!l)
- return;
-
- //l->addBinary("FairGeoNodes Sensitive List", fGeoSensNodes);
- //l->addBinary("FairGeoNodes Passive List", fGeoPassNodes);
- l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
- l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
- }
- Bool_t TpcGeoPar::getParams(FairParamList* l)
- {
- if (!l)
- return kFALSE;
- //if (!l->fillBinary("FairGeoNodes Sensitive List", fGeoSensNodes))
- if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes))
- return kFALSE;
- //if (!l->fillBinary("FairGeoNodes Passive List", fGeoPassNodes))
- if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes))
- return kFALSE;
- return kTRUE;
- }
|