Skip to content

Commit

Permalink
QC-68 workaround to be able to compile (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barthelemy authored Jun 14, 2018
1 parent f452294 commit 9d35606
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Framework/src/TaskDPL.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <TH1F.h>

#include "Framework/DataSampling.h"
#include "Framework/InputRecord.h"
#include "Framework/runDataProcessing.h"
#include "QualityControl/TaskDataProcessorFactory.h"
#include "QualityControl/TaskDataProcessor.h"
Expand Down Expand Up @@ -84,16 +85,16 @@ WorkflowSpec defineDataProcessing(ConfigContext const&)

return (AlgorithmSpec::ProcessCallback) [](ProcessingContext& processingContext) mutable {
LOG(INFO) << "checker invoked";
auto mo = processingContext.inputs().get<MonitorObject>("aaa");

if (mo->getName() == "example") {
auto* g = dynamic_cast<TH1F*>(mo->getObject());
std::string bins = "BINS:";
for (int i = 0; i < g->GetNbinsX(); i++) {
bins += " " + std::to_string((int) g->GetBinContent(i));
}
LOG(INFO) << bins;
}
// auto mo = processingContext.inputs().get<o2::quality_control::core::MonitorObject>("aaa");
//
// if (mo->getName() == "example") {
// auto* g = dynamic_cast<TH1F*>(mo->getObject());
// std::string bins = "BINS:";
// for (int i = 0; i < g->GetNbinsX(); i++) {
// bins += " " + std::to_string((int) g->GetBinContent(i));
// }
// LOG(INFO) << bins;
// }

};
}
Expand Down

0 comments on commit 9d35606

Please sign in to comment.