MpdZdcGeoPar.cxx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*************************************************************************************
  2. *
  3. * Class MpdZdcGeoPar
  4. *
  5. * Adopted for MPD by: Elena Litvinenko
  6. * e-mail: litvin@nf.jinr.ru
  7. * Version: 8-Apr-2008
  8. *
  9. ************************************************************************************/
  10. using namespace std;
  11. #include "MpdZdcGeoPar.h"
  12. #include "FairParamList.h"
  13. #include <iostream>
  14. #include <iomanip>
  15. ClassImp(MpdZdcGeoPar)
  16. MpdZdcGeoPar::MpdZdcGeoPar(const char* name,const char* title,const char* context)
  17. : FairParGenericSet(name,title,context) {
  18. fGeoSensNodes = new TObjArray();
  19. fGeoPassNodes = new TObjArray();
  20. }
  21. MpdZdcGeoPar::~MpdZdcGeoPar(void) {
  22. }
  23. // probably the next funtions can be deleted
  24. void MpdZdcGeoPar::clear(void) {
  25. if(fGeoSensNodes) delete fGeoSensNodes;
  26. if(fGeoPassNodes) delete fGeoPassNodes;
  27. }
  28. void MpdZdcGeoPar::putParams(FairParamList* l) {
  29. if (!l) return;
  30. l->addObject("FairGeoNodes Sensitive List", fGeoSensNodes);
  31. l->addObject("FairGeoNodes Passive List", fGeoPassNodes);
  32. }
  33. Bool_t MpdZdcGeoPar::getParams(FairParamList* l) {
  34. if (!l) return kFALSE;
  35. if (!l->fillObject("FairGeoNodes Sensitive List", fGeoSensNodes)) return kFALSE;
  36. if (!l->fillObject("FairGeoNodes Passive List", fGeoPassNodes)) return kFALSE;
  37. return kTRUE;
  38. }