Skip to content

Commit 789ce4b

Browse files
committed
solved megalinter errors
1 parent 3a1678d commit 789ce4b

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎PWGLF/Tasks/Resonances/phiphimcinjected.cxx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@
4141
using namespace o2;
4242
using namespace o2::framework;
4343

44-
struct PhiCandidate {
44+
struct PhiCandidateInjected {
4545
ROOT::Math::PxPyPzMVector p4;
46-
int t1Index;
47-
int t2Index;
46+
int t1Index = -1;
47+
int t2Index = -1;
4848

4949
// MC Truth attributes
5050
bool isValidMcPhi = false;
@@ -279,7 +279,7 @@ struct PhiPhiMCInjected {
279279
return;
280280
}
281281

282-
std::vector<PhiCandidate> phiCandidates;
282+
std::vector<PhiCandidateInjected> phiCandidates;
283283

284284
// STEP 1: Reconstruct individual Phi candidates (Kaon track pairs)
285285
for (const auto& t1 : tracks) {
@@ -375,7 +375,7 @@ struct PhiPhiMCInjected {
375375
continue;
376376
}
377377

378-
PhiCandidate phiCand;
378+
PhiCandidateInjected phiCand;
379379

380380
phiCand.p4 = motherRec;
381381
phiCand.t1Index = t1.globalIndex();

‎PWGLF/Tasks/Resonances/phiphimctrigger.cxx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
using namespace o2;
4242
using namespace o2::framework;
4343

44-
struct PhiCandidate {
44+
struct PhiCandidateTrigger {
4545
ROOT::Math::PxPyPzMVector p4;
46-
int t1Index;
47-
int t2Index;
48-
int mcPhiIndex;
46+
int t1Index = -1;
47+
int t2Index = -1;
48+
int mcPhiIndex = -1;
4949

5050
// MC Truth attributes
5151
bool isValidMcPhi = false;
@@ -240,7 +240,7 @@ struct PhiPhiMCTrigger {
240240
return;
241241
}
242242

243-
std::vector<PhiCandidate> phiCandidates;
243+
std::vector<PhiCandidateTrigger> phiCandidates;
244244

245245
// STEP 1: Reconstruct individual Phi candidates (Kaon track pairs)
246246
for (const auto& t1 : tracks) {
@@ -337,7 +337,7 @@ struct PhiPhiMCTrigger {
337337
continue;
338338
}
339339

340-
PhiCandidate phiCand;
340+
PhiCandidateTrigger phiCand;
341341

342342
phiCand.p4 = motherRec;
343343
phiCand.t1Index = t1.globalIndex();

0 commit comments

Comments
 (0)