#include "PndTorinoDetectorDigiPar.h" #include "FairParamList.h" #include using std::cout; using std::endl; ClassImp(PndTorinoDetectorDigiPar) PndTorinoDetectorDigiPar ::PndTorinoDetectorDigiPar(const char* name, const char* title, const char* context) : FairParGenericSet(name,title,context), fNrOfLayers(0), fXSmearing(), fYSmearing() { } PndTorinoDetectorDigiPar::~PndTorinoDetectorDigiPar(void) { } void PndTorinoDetectorDigiPar::clear(void) { status = kFALSE; resetInputVersions(); } void PndTorinoDetectorDigiPar::putParams(FairParamList* l) { if (!l) { return; } l->add("NrOfLayers", fNrOfLayers); l->add("XSmearing", fXSmearing); l->add("YSmearing", fYSmearing); } Bool_t PndTorinoDetectorDigiPar::getParams(FairParamList* l) { if (!l) { return kFALSE; } if ( ! l->fill("NrOfLayers", &fNrOfLayers) ) return kFALSE; fXSmearing.Set(fNrOfLayers); if ( ! l->fill("XSmearing", &fXSmearing) ) return kFALSE; fYSmearing.Set(fNrOfLayers); if ( ! l->fill("YSmearing", &fYSmearing) ) return kFALSE; cout<<"Length of fXSmearing: "<