29 if (!l)
return kFALSE;
31 LOG(error) << GetName() <<
"::getParams : Couldn't find \"NrOfModules\"";
35 if (!l->fill(
"MaxSectors", &maxSectors)) {
36 LOG(error) << GetName() <<
"::getParams : Couldn't find \"MaxSectors\"";
40 if (!l->fill(
"ModuleIdArray", &moduleId)) {
41 LOG(error) << GetName() <<
"::getParams : Couldn't find \"MaxSectors\"";
46 Int_t nrValues = 10 + (maxSectors * 4);
47 TArrayD values(nrValues);
48 TArrayD sectorSizeX(maxSectors);
49 TArrayD sectorSizeY(maxSectors);
50 TArrayD padSizeX(maxSectors);
51 TArrayD padSizeY(maxSectors);
59 Double_t awPitch(-1.);
66 if (!l->fill(Form(
"%d", moduleId[i]), &values)) {
67 LOG(error) << GetName() <<
"::getParams : Missing parameter definiton for module " << moduleId[i];
71 orientation = values[k++];
73 awPitch = values[k++];
82 for (Int_t j = 0; j < maxSectors; j++) {
83 sectorSizeX.AddAt(values[k++], j);
84 sectorSizeY.AddAt(values[k++], j);
85 padSizeX.AddAt(values[k++], j);
86 padSizeY.AddAt(values[k++], j);
89 sectorSizeY, padSizeX, padSizeY);
90 fModuleMap[moduleId[i]]->SetModuleId(moduleId[i]);
94 if (fair::Logger::Logging(fair::Severity::debug))
fModuleMap[moduleId[i]]->Print();
122 LOG(info) << GetName() <<
"::putParams(FairParamList*)";
124 Int_t maxSectors(0), idx(0);
126 for (std::map<Int_t, CbmTrdParMod*>::iterator imod =
fModuleMap.begin(); imod !=
fModuleMap.end(); imod++) {
127 moduleIdArray[idx++] = imod->first;
129 if (sectors > maxSectors) maxSectors = sectors;
133 l->add(
"MaxSectors", maxSectors);
134 l->add(
"ModuleIdArray", moduleIdArray);
137 Int_t nrValues = 10 + (maxSectors * 4);
138 TArrayD values(nrValues);
151 values.AddAt(mod->
GetX(), k++);
152 values.AddAt(mod->
GetY(), k++);
153 values.AddAt(mod->
GetZ(), k++);
157 for (Int_t j = 0; j < maxSectors; j++) {
165 text += moduleIdArray[i];
166 l->add(text.Data(), values);