5 #include <FairLogger.h>
6 #include <FairParamList.h>
39 Bool_t loadOk = kTRUE;
41 loadOk &= inList->fill(Form(
"%d-criId",
fAddress), &criId);
42 loadOk &= inList->fill(Form(
"%d-crobId",
fAddress), &crobId);
43 loadOk &= inList->fill(Form(
"%d-crobNr",
fAddress), &crobNr);
44 loadOk &= inList->fill(Form(
"%d-eLinkId",
fAddress), &eLinkId);
45 loadOk &= inList->fill(Form(
"%d-eLinkId",
fAddress), &eLinkId);
47 inList->fill(Form(
"%d-channelAddresses",
fAddress), &channelAddresses);
48 Int_t iAsicChannel(0);
50 channelIt = channelAddresses[iAsicChannel];
56 LOG(error) << GetName()
57 << Form(
"Params could not be correctly loaded for asic %d",
62 LOG(debug4) << GetName() <<
"Params correctly loaded for asic " <<
fAddress
70 Int_t nThCrobOnModule,
72 std::uint64_t compId =
73 criId * ECbmTrdComponentIdDecoding::kCriIdPosition
74 + crobId * ECbmTrdComponentIdDecoding::kCrobIdPosition
75 + nThCrobOnModule * ECbmTrdComponentIdDecoding::kCrobNrPosition + eLinkId;
85 (componentId / (ECbmTrdComponentIdDecoding::kCriIdPosition));
94 std::uint8_t returnId(-1);
95 returnId = ((componentId % ECbmTrdComponentIdDecoding::kCriIdPosition)
96 / ECbmTrdComponentIdDecoding::kCrobIdPosition);
107 std::uint8_t returnId(-1);
108 returnId = (componentId % ECbmTrdComponentIdDecoding::kCrobIdPosition
109 / ECbmTrdComponentIdDecoding::kCrobNrPosition);
121 std::uint8_t eLinkId(-1);
126 LOG(error) << Form(
"CbmTrdParSpadic::GetElinkId(%d) - Incorrect channelId "
127 "(out of range %d > %d",
141 eLinkId = channelId < 15
142 ? (componentId % ECbmTrdComponentIdDecoding::kCrobNrPosition)
143 : (componentId % ECbmTrdComponentIdDecoding::kCrobNrPosition) + 1;
149 switch (moduleType) {
157 default:
return 1;
break;
164 switch (moduleType) {
181 default: nAsicsPerCrob /= -1;
break;
183 return nAsicsPerCrob;