MpdFsaGeoPar.cxx 1019 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using namespace std;
  2. #include "MpdFsaGeoPar.h"
  3. #include "FairParamList.h"
  4. #include <iostream>
  5. #include <iomanip>
  6. #include "TObjArray.h"
  7. ClassImp(MpdFsaGeoPar)
  8. MpdFsaGeoPar::MpdFsaGeoPar(const char* name,const char* title,const char* context)
  9. : FairParGenericSet(name,title,context) {
  10. fGeoSensNodes = new TObjArray();
  11. fGeoPassNodes = new TObjArray();
  12. }
  13. MpdFsaGeoPar::~MpdFsaGeoPar(void) {
  14. }
  15. void MpdFsaGeoPar::clear(void) {
  16. if(fGeoSensNodes) delete fGeoSensNodes;
  17. if(fGeoPassNodes) delete fGeoPassNodes;
  18. }
  19. void MpdFsaGeoPar::putParams(FairParamList* l) {
  20. if (!l) return;
  21. l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
  22. l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
  23. }
  24. Bool_t MpdFsaGeoPar::getParams(FairParamList* l) {
  25. if (!l) return kFALSE;
  26. if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
  27. if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
  28. return kTRUE;
  29. }