Skip to content

Commit 4d708db

Browse files
committed
Change of type, photon charge
1 parent 7ce6db0 commit 4d708db

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

DPG/Tasks/AOTTrack/PID/HMPID/hmpidTableProducer.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,11 @@ struct HmpidTableProducer {
415415
if (chamberM3 < 0)
416416
continue;
417417

418-
float hmpidPhotsCharge2[o2::aod::kDimPhotonsCharge];
419-
for (int i = 0; i < o2::aod::kDimPhotonsCharge; i++)
418+
std::array<float, o2::aod::kDimPhotonsCharge> hmpidPhotsCharge2{};
419+
420+
for (int i = 0; i < o2::aod::kDimPhotonsCharge; i++) {
420421
hmpidPhotsCharge2[i] = t.hmpidPhotsCharge()[i];
422+
}
421423

422424
// fill hmpid table
423425
hmpidAnalysis(

DPG/Tasks/AOTTrack/PID/HMPID/tableHMPID.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
#include <Framework/ASoA.h>
1616
#include <Framework/AnalysisDataModel.h>
1717

18+
#include <array>
19+
1820
namespace o2::aod
1921
{
2022

@@ -33,7 +35,7 @@ DECLARE_SOA_COLUMN(NPhotons, nPhotons, float);
3335
DECLARE_SOA_COLUMN(ChargeMip, chargeMip, float);
3436
DECLARE_SOA_COLUMN(ClusterSize, clusterSize, float);
3537
DECLARE_SOA_COLUMN(Chamber, chamber, float);
36-
DECLARE_SOA_COLUMN(PhotonsCharge, photonsCharge, float[kDimPhotonsCharge]);
38+
DECLARE_SOA_COLUMN(PhotonsCharge, photonsCharge, (std::array<float, kDimPhotonsCharge>));
3739
DECLARE_SOA_COLUMN(EtaTrack, etaTrack, float);
3840
DECLARE_SOA_COLUMN(PhiTrack, phiTrack, float);
3941
DECLARE_SOA_COLUMN(Px, px, float);

0 commit comments

Comments
 (0)