From 1a7f98231399afe748fb39b709a6ee533893e44a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Jacazio?= Date: Wed, 22 Jan 2025 10:02:18 +0100 Subject: [PATCH] Fix megalinter --- Common/TableProducer/PID/pidBayes.cxx | 6 ++++++ Common/Tools/PID/checkPidPacking.cxx | 2 ++ Common/Tools/aodDataModelGraph.cxx | 13 +++++++++++-- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Common/TableProducer/PID/pidBayes.cxx b/Common/TableProducer/PID/pidBayes.cxx index e7158d08828..abedb281668 100644 --- a/Common/TableProducer/PID/pidBayes.cxx +++ b/Common/TableProducer/PID/pidBayes.cxx @@ -16,6 +16,12 @@ /// Only the tables for the mass hypotheses requested are filled, the others are sent empty. /// +#include +#include +#include +#include +#include + // O2 includes #include "Framework/AnalysisTask.h" #include "Framework/HistogramRegistry.h" diff --git a/Common/Tools/PID/checkPidPacking.cxx b/Common/Tools/PID/checkPidPacking.cxx index c5905f730aa..613e66215d3 100644 --- a/Common/Tools/PID/checkPidPacking.cxx +++ b/Common/Tools/PID/checkPidPacking.cxx @@ -16,6 +16,8 @@ /// \since 03/05/2024 /// +#include + #include "Common/DataModel/PIDResponseTOF.h" #include "Common/DataModel/PIDResponseTPC.h" #include "TH1F.h" diff --git a/Common/Tools/aodDataModelGraph.cxx b/Common/Tools/aodDataModelGraph.cxx index dc022156867..ab3fead1429 100644 --- a/Common/Tools/aodDataModelGraph.cxx +++ b/Common/Tools/aodDataModelGraph.cxx @@ -8,6 +8,10 @@ // In applying this license CERN does not waive the privileges and immunities // granted to it by virtue of its status as an Intergovernmental Organization // or submit itself to any jurisdiction. + +#include +#include +#include #include #include "Framework/AnalysisDataModel.h" #include "PWGHF/DataModel/CandidateReconstructionTables.h" @@ -88,8 +92,13 @@ template Style getStyleFor() { auto label = MetadataTrait::metadata::tableLabel(); - auto entry = std::find_if(tableStyles.begin(), tableStyles.end(), [&](auto&& x) { if (std::string(label).find(x.first) != std::string::npos) { return true; -}return false; }); + auto entry = std::find_if(tableStyles.begin(), tableStyles.end(), + [&](auto&& x) { + if (std::string(label).find(x.first) != std::string::npos) { + return true; + } + return false; + }); if (entry != tableStyles.end()) { auto value = *entry; return styles[value.second];