#include #include "PndMvdStripDigiPar.h" #include "TMath.h" PndMvdStripDigiPar::PndMvdStripDigiPar(const char* name, const char* title, const char* context) : CbmParGenericSet(name,title,context) { clear(); } void PndMvdStripDigiPar::putParams(CbmParamList* list) { if(!list) return; list->add("topfPitch", topPitch); list->add("botfPitch", botPitch); list->add("orient", orient); list->add("skew", skew); list->add("topfAnchor_x", (Double_t)topAnchor.X()); list->add("topfAnchor_y", (Double_t)topAnchor.Y()); list->add("bottomfAnchor_x", (Double_t)botAnchor.X()); list->add("bottomfAnchor_y", (Double_t)botAnchor.Y()); list->add("nrfFefChannels", feChannels); list->add("nrfFefTop", topNrFE); list->add("nrfFefBottom", botNrFE); list->add("chargefThreshold", threshold); list->add("chargefNoise", noise); // list->add("sensName", sensName); // list->add("feName", feName); } Bool_t PndMvdStripDigiPar::getParams(CbmParamList* list) { if (!list) return kFALSE; if (!list->fill("topfPitch", &topPitch)) return kFALSE; if (!list->fill("botfPitch", &botPitch)) return kFALSE; if (!list->fill("orient",&orient)) return kFALSE; if (!list->fill("skew",&skew)) return kFALSE; Double_t x,y; if (!list->fill("topfAnchor_x", &x)) return kFALSE; if (!list->fill("topfAnchor_y", &y)) return kFALSE; topAnchor.Set(x,y); if (!list->fill("botfAnchor_x", &x)) return kFALSE; if (!list->fill("botfAnchor_y", &y)) return kFALSE; botAnchor.Set(x,y); if (!list->fill("nrfFefChannels", &feChannels)) return kFALSE; if (!list->fill("nrfFefTop", &topNrFE)) return kFALSE; if (!list->fill("nrfFefBottom", &botNrFE)) return kFALSE; if (!list->fill("chargefThreshold",&threshold)) return kFALSE; if (!list->fill("chargefNoise",&noise)) return kFALSE; // if (!list->fill("sensName",&sensName)) return kFALSE; // if (!list->fill("feName",&feName)) return kFALSE; return kTRUE; } ClassImp(PndMvdStripDigiPar); void PndMvdStripDigiPar::Print() { std::cout<<"MVD Digitisation Parameters:"<Bottom) = "<