#include #include "PndHypStripDigiPar.h" #include "TMath.h" PndHypStripDigiPar::PndHypStripDigiPar(const char* name, const char* title, const char* context) : FairParGenericSet(name,title,context) { clear(); } void PndHypStripDigiPar::putParams(FairParamList* list) { if(!list) return; list->add("top_pitch", topPitch); list->add("bot_pitch", botPitch); list->add("orient", orient); list->add("skew", skew); list->add("top_anchor_x", (Double_t)topAnchor.X()); list->add("top_anchor_y", (Double_t)topAnchor.Y()); list->add("bottom_anchor_x", (Double_t)botAnchor.X()); list->add("bottom_anchor_y", (Double_t)botAnchor.Y()); list->add("nr_fe_channels", feChannels); list->add("nr_fe_top", topNrFE); list->add("nr_fe_bottom", botNrFE); list->add("charge_threshold", threshold); list->add("charge_noise", noise); list->add("sens_Type", fSensType); list->add("fe_Type", fFeType); // list->add("sensName", sensName); // list->add("feName", feName); } Bool_t PndHypStripDigiPar::getParams(FairParamList* list) { if (!list) return kFALSE; if (!list->fill("top_pitch", &topPitch)) return kFALSE; if (!list->fill("bot_pitch", &botPitch)) return kFALSE; if (!list->fill("orient",&orient)) return kFALSE; if (!list->fill("skew",&skew)) return kFALSE; Double_t x,y; if (!list->fill("top_anchor_x", &x)) return kFALSE; if (!list->fill("top_anchor_y", &y)) return kFALSE; topAnchor.Set(x,y); if (!list->fill("bot_anchor_x", &x)) return kFALSE; if (!list->fill("bot_anchor_y", &y)) return kFALSE; botAnchor.Set(x,y); if (!list->fill("nr_fe_channels", &feChannels)) return kFALSE; if (!list->fill("nr_fe_top", &topNrFE)) return kFALSE; if (!list->fill("nr_fe_bottom", &botNrFE)) return kFALSE; if (!list->fill("charge_threshold",&threshold)) return kFALSE; if (!list->fill("charge_noise",&noise)) return kFALSE; Text_t stName[80]; if (!list->fill("sens_Type",stName,80)) return kFALSE; fSensType = stName; Text_t feName[80]; if (!list->fill("fe_Type",feName,80)) return kFALSE; fFeType = feName; // if (!list->fill("sensName",&sensName)) return kFALSE; // if (!list->fill("feName",&feName)) return kFALSE; return kTRUE; } ClassImp(PndHypStripDigiPar); void PndHypStripDigiPar::print() { std::cout<<"MVD Digitisation Parameters:"<Bottom) = "<