Skip to content
Open
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@
#include "TRandom3.h"
#include <TPDGCode.h>

#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
Copy link

Copilot AI Feb 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New code uses std::find (run-by-run run number tracking) but this file does not include <algorithm>. Relying on indirect includes is fragile and can break compilation with different standard library implementations; add #include <algorithm>.

Suggested change
#include <vector>
#include <vector>
#include <algorithm>

Copilot uses AI. Check for mistakes.

using namespace o2;
Expand Down Expand Up @@ -685,7 +688,7 @@ struct LongRangeDihadronCor {
ampl = 0.;
if (system == SameEvent)
registry.fill(HIST("FT0Amp"), id, ampl);
ampl = ampl / cstFT0RelGain[iCh];
ampl = ampl / cstFT0RelGain[id];
if (system == SameEvent) {
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);
Expand All @@ -697,7 +700,7 @@ struct LongRangeDihadronCor {
ampl = 0.;
if (system == SameEvent)
registry.fill(HIST("FT0Amp"), id, ampl);
ampl = ampl / cstFT0RelGain[iCh];
ampl = ampl / cstFT0RelGain[id];
if (system == SameEvent) {
registry.fill(HIST("FT0AmpCorrect"), id, ampl);
histAmpCorrectPerRun[lastRunNumber]->Fill(id, ampl);
Expand Down
Loading