Skip to content

Commit 06d4d22

Browse files
committed
Fixing compilation issues (missing headers and implicit declarations)
1 parent 19685df commit 06d4d22

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎PWGUD/Tasks/sgDeuteronSpectra.cxx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <Framework/runDataProcessing.h>
2727

2828
#include <vector>
29+
#include <TMath.h>
2930

3031
using namespace o2;
3132
using namespace o2::framework;
@@ -95,14 +96,14 @@ struct SGDeuteronSpectra {
9596
void process(UDCollisionFull const& coll, UDTracksFull const& tracks)
9697
{
9798
registry.fill(HIST("collisions/GapSide"), coll.gapSide(), 1.);
98-
float FIT_cut[5] = {FV0_cut, FT0A_cut, FT0C_cut, FDDA_cut, FDDC_cut};
99+
std::vector <float> FIT_cut = {FV0_cut, FT0A_cut, FT0C_cut, FDDA_cut, FDDC_cut};
99100
int truegapSide = sgSelector.trueGap(coll, FIT_cut[0], FIT_cut[1], FIT_cut[2], ZDC_cut);
100101
registry.fill(HIST("collisions/TrueGapSide"), truegapSide, 1.);
101102

102103
std::vector<float> parameters = {PV_cut, dcaZ_cut, dcaXY_cut, tpcChi2_cut, tpcNClsFindable_cut, itsChi2_cut, eta_cut, pt_cut};
103104

104105
for (const auto& t : tracks) {
105-
if (trackselector(t, parameters)) {
106+
if (trackselector(t, parameters) != 0) {
106107
if (truegapSide == 0) {
107108
if (t.sign() > 0) {
108109
registry.fill(HIST("tracks/Deut_Pt_TPC_GapA"), t.pt(), t.tpcNSigmaDe());

0 commit comments

Comments
 (0)