@@ -97,8 +97,8 @@ struct V0SelectionValues {
9797struct TrackTrackVariant {
9898 TrackSelectionValues sel1;
9999 TrackSelectionValues sel2;
100- bool sameSpecies;
101- int bit;
100+ bool sameSpecies = false ;
101+ int bit = 0 ;
102102};
103103
104104// sel1/sel2 (not trackSel/v0Sel) for the same reason TrackTrackVariant above uses sel1/sel2: so
@@ -108,7 +108,7 @@ struct TrackTrackVariant {
108108struct TrackV0Variant {
109109 TrackSelectionValues sel1;
110110 V0SelectionValues sel2;
111- int bit;
111+ int bit = 0 ;
112112};
113113
114114// SigmaPlusPcm's selection is V0SelectionValues plus one extra field (mlScoreMin), so it needs
@@ -131,7 +131,7 @@ struct KinkPcmSelectionValues {
131131struct TrackKinkPcmVariant {
132132 TrackSelectionValues sel1;
133133 KinkPcmSelectionValues sel2;
134- int bit;
134+ int bit = 0 ;
135135};
136136
137137// Same-type pair where BOTH legs use the V0SelectionValues shape: covers v0-v0 (lambda-lambda,
@@ -141,8 +141,8 @@ struct TrackKinkPcmVariant {
141141struct V0V0Variant {
142142 V0SelectionValues sel1;
143143 V0SelectionValues sel2;
144- bool sameSpecies;
145- int bit;
144+ bool sameSpecies = false ;
145+ int bit = 0 ;
146146};
147147
148148// Phi -> K+K-, Rho0 -> pi+pi-: both daughters are the same species, so MAKE_RESONANCE_0_PARTITON
@@ -206,31 +206,31 @@ struct TwoPhotonResonanceSelectionValues {
206206struct TrackTwoTrackResonanceVariant {
207207 TrackSelectionValues sel1;
208208 TwoTrackResonanceSelectionValues sel2;
209- int bit;
209+ int bit = 0 ;
210210};
211211
212212struct TrackKstar0Variant {
213213 TrackSelectionValues sel1;
214214 Kstar0SelectionValues sel2;
215- int bit;
215+ int bit = 0 ;
216216};
217217
218218struct TrackTwoPhotonResonanceVariant {
219219 TrackSelectionValues sel1;
220220 TwoPhotonResonanceSelectionValues sel2;
221- int bit;
221+ int bit = 0 ;
222222};
223223
224224struct V0TwoTrackResonanceVariant {
225225 V0SelectionValues sel1;
226226 TwoTrackResonanceSelectionValues sel2;
227- int bit;
227+ int bit = 0 ;
228228};
229229
230230struct V0Kstar0Variant {
231231 V0SelectionValues sel1;
232232 Kstar0SelectionValues sel2;
233- int bit;
233+ int bit = 0 ;
234234};
235235
236236// Triplet variants, mirroring the "123 same, 12 same, or all different" pattern
@@ -244,9 +244,9 @@ struct TrackTrackTrackVariant {
244244 TrackSelectionValues sel1;
245245 TrackSelectionValues sel2;
246246 TrackSelectionValues sel3;
247- bool same123;
248- bool same12;
249- int bit;
247+ bool same123 = false ;
248+ bool same12 = false ;
249+ int bit = 0 ;
250250};
251251
252252// Cross-type (track-track-v0, track-track-cascade): roles 1&2 share the track table, role 3 is a
@@ -256,8 +256,8 @@ struct TrackTrackV0Variant {
256256 TrackSelectionValues sel1;
257257 TrackSelectionValues sel2;
258258 V0SelectionValues sel3;
259- bool same12;
260- int bit;
259+ bool same12 = false ;
260+ int bit = 0 ;
261261};
262262
263263inline TrackSelectionValues readTrackSelection (o2::framework::DeviceSpec const & device, std::string const & prefix)
@@ -717,7 +717,7 @@ template <typename Variant, typename Range, typename PassesFn>
717717inline void tagTripletVariants (CollisionTagBitset& tag, std::vector<Variant> const & variants, Range const & range, PassesFn&& passes)
718718{
719719 for (auto const & v : variants) {
720- bool ok;
720+ bool ok = false ;
721721 if (v.same123 ) {
722722 ok = hasAtLeast (range, v.sel1 , passes, 3 );
723723 } else if (v.same12 ) {
@@ -827,7 +827,7 @@ constexpr const char* FemtoTripletTrackTrackCascade = "femto-triplet-track-track
827827struct TaggedRole {
828828 std::string deviceName;
829829 std::string role;
830- int bit;
830+ int bit = 0 ;
831831};
832832
833833// The single canonical bit-assignment walk: scans the workflow's device list in order and, for
0 commit comments