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
No related merge requests found
...@@ -40,8 +40,6 @@ namespace cbm::algo ...@@ -40,8 +40,6 @@ namespace cbm::algo
** @brief Parameters required for the STS unpacking (specific to one component) ** @brief Parameters required for the STS unpacking (specific to one component)
**/ **/
struct UnpackMuchPar { 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 std::vector<UnpackMuchElinkPar> fElinkParams = {}; ///< Parameters for each eLink
}; };
......
...@@ -264,14 +264,10 @@ InitStatus CbmTaskUnpack::Init() ...@@ -264,14 +264,10 @@ InitStatus CbmTaskUnpack::Init()
LOG(info) << "--- Configured equipment " << equip << " with " << numElinks << " elinks"; LOG(info) << "--- Configured equipment " << equip << " with " << numElinks << " elinks";
} //# equipments } //# 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 // Create one algorithm per component and configure it with parameters
auto equipIdsMuch = fMuchConfig.GetEquipmentIds(); auto equipIdsMuch = fMuchConfig.GetEquipmentIds();
for (auto& equip : equipIdsMuch) { for (auto& equip : equipIdsMuch) {
std::unique_ptr<UnpackMuchPar> par(new UnpackMuchPar()); std::unique_ptr<UnpackMuchPar> par(new UnpackMuchPar());
par->fNumChansPerAsic = numChansPerAsicMuch;
const size_t numElinks = fMuchConfig.GetNumElinks(equip); const size_t numElinks = fMuchConfig.GetNumElinks(equip);
for (size_t elink = 0; elink < numElinks; elink++) { for (size_t elink = 0; elink < numElinks; elink++) {
UnpackMuchElinkPar elinkPar; 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