Skip to content

Commit 8b6bb6d

Browse files
authored
Update TableHelper.h
1 parent a1df895 commit 8b6bb6d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Common/Core/TableHelper.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
#ifndef COMMON_CORE_TABLEHELPER_H_
1919
#define COMMON_CORE_TABLEHELPER_H_
2020

21-
#include <string>
22-
2321
#include "Framework/Configurable.h"
2422
#include "Framework/InitContext.h"
2523
#include "Framework/RunningWorkflowInfo.h"
2624

25+
#include <string>
26+
2727
/// Function to print the table required in the full workflow
2828
/// @param initContext initContext of the init function
2929
void printTablesInWorkflow(o2::framework::InitContext& initContext);
@@ -76,14 +76,16 @@ bool getTaskOptionValue(o2::framework::InitContext& initContext, const std::stri
7676
}
7777
if (device.name == taskName) { // Found the mother task
7878
int optionCounter = 0;
79-
for (auto const& option : device.options) {
79+
for (const o2::framework::ConfigParamSpec& option : device.options) {
8080
if (verbose) {
81-
LOG(info) << " Option " << optionCounter++ << " " << option.name << " = '" << option.defaultValue.asString() << "'";
81+
LOG(info) << " Option " << optionCounter++ << " " << option.name << " of type " << static_cast<int>(option.type) << " = '" << option.defaultValue.asString() << "'";
8282
}
8383
if (option.name == optName) {
8484
value = option.defaultValue.get<ValueType>();
8585
if (verbose) {
86-
LOG(info) << " Found option '" << optName << "' with value '" << value << "'";
86+
if constexpr (!std::is_same_v<ValueType, o2::framework::LabeledArray<float>>) {
87+
LOG(info) << " Found option '" << optName << "' with value '" << value << "'";
88+
}
8789
found = true;
8890
} else {
8991
return true;

0 commit comments

Comments
 (0)