Skip to content

Commit

Permalink
Fix megalinter
Browse files Browse the repository at this point in the history
  • Loading branch information
njacazio committed Jan 22, 2025
1 parent bfb46d5 commit 1a7f982
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Common/TableProducer/PID/pidBayes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
/// Only the tables for the mass hypotheses requested are filled, the others are sent empty.
///

#include <utility>
#include <algorithm>
#include <vector>
#include <memory>
#include <string>

// O2 includes
#include "Framework/AnalysisTask.h"
#include "Framework/HistogramRegistry.h"
Expand Down
2 changes: 2 additions & 0 deletions Common/Tools/PID/checkPidPacking.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
/// \since 03/05/2024
///

#include <string>

#include "Common/DataModel/PIDResponseTOF.h"
#include "Common/DataModel/PIDResponseTPC.h"
#include "TH1F.h"
Expand Down
13 changes: 11 additions & 2 deletions Common/Tools/aodDataModelGraph.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <utility>
#include <string>
#include <cstdio>
#include <fmt/printf.h>
#include "Framework/AnalysisDataModel.h"
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
Expand Down Expand Up @@ -88,8 +92,13 @@ template <typename T>
Style getStyleFor()
{
auto label = MetadataTrait<T>::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];
Expand Down

0 comments on commit 1a7f982

Please sign in to comment.