Skip to content

Commit 4810f67

Browse files
committed
Fix: fix linter issues
1 parent 5fc22e3 commit 4810f67

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

‎PWGCF/Femto/Core/collisionTagger.h‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ struct V0SelectionValues {
9797
struct 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 {
108108
struct 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 {
131131
struct 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 {
141141
struct 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 {
206206
struct TrackTwoTrackResonanceVariant {
207207
TrackSelectionValues sel1;
208208
TwoTrackResonanceSelectionValues sel2;
209-
int bit;
209+
int bit = 0;
210210
};
211211

212212
struct TrackKstar0Variant {
213213
TrackSelectionValues sel1;
214214
Kstar0SelectionValues sel2;
215-
int bit;
215+
int bit = 0;
216216
};
217217

218218
struct TrackTwoPhotonResonanceVariant {
219219
TrackSelectionValues sel1;
220220
TwoPhotonResonanceSelectionValues sel2;
221-
int bit;
221+
int bit = 0;
222222
};
223223

224224
struct V0TwoTrackResonanceVariant {
225225
V0SelectionValues sel1;
226226
TwoTrackResonanceSelectionValues sel2;
227-
int bit;
227+
int bit = 0;
228228
};
229229

230230
struct 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

263263
inline TrackSelectionValues readTrackSelection(o2::framework::DeviceSpec const& device, std::string const& prefix)
@@ -717,7 +717,7 @@ template <typename Variant, typename Range, typename PassesFn>
717717
inline 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
827827
struct 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

‎PWGCF/Femto/TableProducer/femtoProducerCollisionTagger.cxx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "PWGCF/Femto/Core/dataTypes.h"
2525
#include "PWGCF/Femto/DataModel/FemtoTables.h"
2626

27+
#include <Framework/ASoA.h>
2728
#include <Framework/AnalysisHelpers.h>
2829
#include <Framework/AnalysisTask.h>
2930
#include <Framework/Configurable.h>

0 commit comments

Comments
 (0)