Skip to content
Snippets Groups Projects
Commit 63f55e07 authored by Dominik Smith's avatar Dominik Smith Committed by Volker Friese
Browse files

UnpackMuch: Removed fNumAsicsPerModule and fNumChansPerAsic parameters as they...

UnpackMuch: Removed fNumAsicsPerModule and fNumChansPerAsic parameters as they don't appear to be needed.
parent 3872d687
No related branches found
No related tags found
1 merge request!1134UnpackMuch: Removed fNumAsicsPerModule and fNumChansPerAsic parameters.
Pipeline #21970 passed
......@@ -40,8 +40,6 @@ namespace cbm::algo
** @brief Parameters required for the STS unpacking (specific to one component)
**/
struct UnpackMuchPar {
uint32_t fNumChansPerAsic = 0; ///< Number of channels per ASIC
uint32_t fNumAsicsPerModule = 0; ///< Number of ASICS per module
std::vector<UnpackMuchElinkPar> fElinkParams = {}; ///< Parameters for each eLink
};
......
......@@ -264,14 +264,10 @@ InitStatus CbmTaskUnpack::Init()
LOG(info) << "--- Configured equipment " << equip << " with " << numElinks << " elinks";
} //# equipments
// --- Common parameters for all components for MUCH
uint32_t numChansPerAsicMuch = 128; // R/O channels per ASIC for MUCH
// Create one algorithm per component and configure it with parameters
auto equipIdsMuch = fMuchConfig.GetEquipmentIds();
for (auto& equip : equipIdsMuch) {
std::unique_ptr<UnpackMuchPar> par(new UnpackMuchPar());
par->fNumChansPerAsic = numChansPerAsicMuch;
const size_t numElinks = fMuchConfig.GetNumElinks(equip);
for (size_t elink = 0; elink < numElinks; elink++) {
UnpackMuchElinkPar elinkPar;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment