Skip to content

Commit 0ffe9b9

Browse files
committed
PWGHF: initialize derived data candidate members
1 parent 4f7afa0 commit 0ffe9b9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎PWGHF/HFL/TableProducer/derivedDataCreatorElectronWeakBoson.cxx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,10 @@ struct HfDerivedDataCreatorElectronWeakBoson {
326326

327327
// ---- pass 1 : electron candidates (needs the EMCal matching for the skim decision)
328328
struct HfEleCand {
329-
int64_t trackGlobalIndex;
330-
float pSum;
331-
int16_t nTrk;
332-
HfEmcMatch emc;
329+
int64_t trackGlobalIndex = -1;
330+
float pSum = 0.f;
331+
int16_t nTrk = 0;
332+
HfEmcMatch emc{};
333333
};
334334
std::vector<HfEleCand> eleCands;
335335
bool hasMatchedTrack = false; // skim step 1

0 commit comments

Comments
 (0)