Skip to content
Snippets Groups Projects
Commit 983c9df9 authored by Felix Weiglhofer's avatar Felix Weiglhofer Committed by Volker Friese
Browse files

algo::Unpack: Change return type of Init to void as it can never fail.

parent db75d3f1
No related branches found
No related tags found
1 merge request!1201cbmreco: Integrate algo::Unpack
......@@ -130,7 +130,7 @@ namespace cbm::algo
// ----------------------------------------------------------------------------
// ----- Initialisation ---------------------------------------------------
bool Unpack::Init(std::vector<fles::SubsystemIdentifier> subIds)
void Unpack::Init(std::vector<fles::SubsystemIdentifier> subIds)
{
fSubIds = subIds;
......@@ -284,8 +284,6 @@ namespace cbm::algo
L_(info) << "--- Configured " << fAlgoTrd2d.size() << " unpacker algorithms for TRD2D.";
L_(info) << "--- Configured " << fAlgoBmon.size() << " unpacker algorithms for T0.";
L_(info) << "==================================================";
return true;
}
// ----------------------------------------------------------------------------
......
......@@ -105,7 +105,7 @@ namespace cbm::algo
* @param subIds: vector of subsystem identifiers to unpack, default: all
* @see Init()
**/
bool Init(std::vector<fles::SubsystemIdentifier> subIds = {
void Init(std::vector<fles::SubsystemIdentifier> subIds = {
fles::SubsystemIdentifier::STS,
fles::SubsystemIdentifier::MUCH,
fles::SubsystemIdentifier::RPC,
......
......@@ -7,14 +7,13 @@ using namespace cbm::algo;
void UnpackChain::Init()
{
bool ok = fUnpack.Init(std::vector<fles::SubsystemIdentifier> {
fUnpack.Init(std::vector<fles::SubsystemIdentifier> {
fles::SubsystemIdentifier::STS,
// fles::SubsystemIdentifier::MUCH,
fles::SubsystemIdentifier::RPC, fles::SubsystemIdentifier::T0,
// fles::SubsystemIdentifier::TRD,
// fles::SubsystemIdentifier::TRD2D,
});
if (!ok) throw std::runtime_error("Unpack::Init failed");
}
Unpack::resultType UnpackChain::Run(const fles::Timeslice& timeslice)
......
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