Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MegaLinter comments
  • Loading branch information
sigurdnese committed May 2, 2024
commit 185d81d6ec6146ebc9d27e4432ebfeadafa39863
6 changes: 1 addition & 5 deletions PWGDQ/TableProducer/tableMaker_withAssoc.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
// The skimming can optionally produce just the barrel, muon, or both barrel and muon tracks
// The event filtering, centrality, and V0Bits (from v0-selector) can be switched on/off by selecting one
// of the process functions
#include <iostream>
#include "Framework/AnalysisTask.h"
#include "Framework/AnalysisDataModel.h"
#include "Framework/ASoAHelpers.h"
Expand Down Expand Up @@ -56,9 +55,6 @@
#include "DetectorsBase/Propagator.h"
#include "DetectorsBase/GeometryManager.h"

using std::cout;
using std::endl;

using namespace o2;
using namespace o2::framework;
using namespace o2::framework::expressions;
Expand Down Expand Up @@ -393,7 +389,7 @@ struct TableMaker {
fStatsList.setObject(new TList());
fStatsList->SetOwner(kTRUE);
std::vector<TString> eventLabels{"BCs", "Collisions before filtering", "Before cuts", "After cuts"};
TH2I* histEvents = new TH2I("EventStats", "Event statistics", eventLabels.size(), -0.5, eventLabels.size() - 0.5, o2::aod::evsel::kNsel + 1, -0.5, double(o2::aod::evsel::kNsel) + 0.5);
TH2I* histEvents = new TH2I("EventStats", "Event statistics", eventLabels.size(), -0.5, eventLabels.size() - 0.5, o2::aod::evsel::kNsel + 1, -0.5, static_cast<double>(o2::aod::evsel::kNsel) + 0.5);
int ib = 1;
for (auto label = eventLabels.begin(); label != eventLabels.end(); label++, ib++) {
histEvents->GetXaxis()->SetBinLabel(ib, (*label).Data());
Expand Down