Skip to content

Commit 6912da5

Browse files
mfagginMattia Fagginalibuild
authored
PWGHF: fix Lc daughter type-cast. (#4549)
* Fix Lc daughter type-cast. * MegaLinter fixes --------- Co-authored-by: Mattia Faggin <mfaggin@cern.ch> Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent 375831a commit 6912da5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PWGHF/TableProducer/candidateCreatorSigmac0plusplus.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
///
1616
/// \author Mattia Faggin <mfaggin@cern.ch>, University and INFN PADOVA
1717

18-
#include "CCDB/BasicCCDBManager.h" // for dca recalculation
18+
#include "CCDB/BasicCCDBManager.h" // for dca recalculation
1919
#include "CommonConstants/PhysicsConstants.h"
2020
#include "DataFormatsParameters/GRPMagField.h" // for dca recalculation
2121
#include "DataFormatsParameters/GRPObject.h" // for dca recalculation
@@ -201,9 +201,9 @@ struct HfCandidateCreatorSigmac0plusplus {
201201
//////////////////////////////////////////////////////////////////////////////////////
202202

203203
/// Exclude the current candidate soft pion if it corresponds already to a candidate Lc prong
204-
int indexProng0 = candLc.template prong0_as<aod::Tracks>().globalIndex();
205-
int indexProng1 = candLc.template prong1_as<aod::Tracks>().globalIndex();
206-
int indexProng2 = candLc.template prong2_as<aod::Tracks>().globalIndex();
204+
int indexProng0 = candLc.template prong0_as<aod::TracksWDcaExtra>().globalIndex();
205+
int indexProng1 = candLc.template prong1_as<aod::TracksWDcaExtra>().globalIndex();
206+
int indexProng2 = candLc.template prong2_as<aod::TracksWDcaExtra>().globalIndex();
207207
int indexSoftPi = trackSoftPi.globalIndex();
208208
if (indexSoftPi == indexProng0 || indexSoftPi == indexProng1 || indexSoftPi == indexProng2) {
209209
continue;

0 commit comments

Comments
 (0)