Skip to content

Commit 9d35606

Browse files
authored
QC-68 workaround to be able to compile (#25)
1 parent f452294 commit 9d35606

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

Framework/src/TaskDPL.cxx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <TH1F.h>
2727

2828
#include "Framework/DataSampling.h"
29+
#include "Framework/InputRecord.h"
2930
#include "Framework/runDataProcessing.h"
3031
#include "QualityControl/TaskDataProcessorFactory.h"
3132
#include "QualityControl/TaskDataProcessor.h"
@@ -84,16 +85,16 @@ WorkflowSpec defineDataProcessing(ConfigContext const&)
8485

8586
return (AlgorithmSpec::ProcessCallback) [](ProcessingContext& processingContext) mutable {
8687
LOG(INFO) << "checker invoked";
87-
auto mo = processingContext.inputs().get<MonitorObject>("aaa");
88-
89-
if (mo->getName() == "example") {
90-
auto* g = dynamic_cast<TH1F*>(mo->getObject());
91-
std::string bins = "BINS:";
92-
for (int i = 0; i < g->GetNbinsX(); i++) {
93-
bins += " " + std::to_string((int) g->GetBinContent(i));
94-
}
95-
LOG(INFO) << bins;
96-
}
88+
// auto mo = processingContext.inputs().get<o2::quality_control::core::MonitorObject>("aaa");
89+
//
90+
// if (mo->getName() == "example") {
91+
// auto* g = dynamic_cast<TH1F*>(mo->getObject());
92+
// std::string bins = "BINS:";
93+
// for (int i = 0; i < g->GetNbinsX(); i++) {
94+
// bins += " " + std::to_string((int) g->GetBinContent(i));
95+
// }
96+
// LOG(INFO) << bins;
97+
// }
9798

9899
};
99100
}

0 commit comments

Comments
 (0)