Skip to content

Commit 661bc48

Browse files
authored
Initialize members in Lambdastarproxy struct
Initialized pdgDB and truth members in Lambdastarproxy struct.
1 parent e8e52e6 commit 661bc48

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎PWGLF/Tasks/Resonances/lambdastarproxy.cxx‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <CommonConstants/MathConstants.h>
2525
#include <CommonConstants/PhysicsConstants.h>
2626
#include <Framework/AnalysisDataModel.h>
27+
#include <Framework/AnalysisHelpers.h>
2728
#include <Framework/AnalysisTask.h>
2829
#include <Framework/Configurable.h>
2930
#include <Framework/HistogramRegistry.h>
@@ -54,7 +55,7 @@ using namespace o2::framework::expressions;
5455
using namespace constants::math;
5556

5657
struct Lambdastarproxy {
57-
Service<o2::framework::O2DatabasePDG> pdgDB;
58+
Service<o2::framework::O2DatabasePDG> pdgDB{};
5859

5960
// ---- Ion/nucleus PDG encoding helpers (10LZZZAAAI) ----
6061
// Note: these are *format* constants (not particle PDG species codes)
@@ -210,7 +211,7 @@ struct Lambdastarproxy {
210211
float px = 0.f, py = 0.f, pz = 0.f;
211212
int charge = 0;
212213
int tid = -1;
213-
TruthInfo truth;
214+
TruthInfo truth{};
214215
};
215216
// PID flags describe detector compatibility, not truth-level purity.
216217
struct ProxyCand {
@@ -221,13 +222,13 @@ struct Lambdastarproxy {
221222
bool protonTPCCompatible = false;
222223
int charge = 0;
223224
int tid = -1;
224-
TruthInfo truth;
225+
TruthInfo truth{};
225226
};
226227
struct ProtonCand {
227228
float px = 0.f, py = 0.f, pz = 0.f;
228229
int charge = 0;
229230
int tid = -1;
230-
TruthInfo truth;
231+
TruthInfo truth{};
231232
};
232233

233234
// Helpers for invariant-mass kinematics

0 commit comments

Comments
 (0)