Skip to content

Commit

Permalink
avoid c-style cast, add needed include
Browse files Browse the repository at this point in the history
  • Loading branch information
lubynets committed Jan 16, 2025
1 parent 1aa9105 commit 07d6f8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PWGHF/TableProducer/treeCreatorLcToPKPi.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ struct HfTreeCreatorLcToPKPi {
auto trackNeg = candidate.template prong1_as<soa::Join<TracksWPid, o2::aod::McTrackLabels>>(); // negative daughter (positive for the antiparticles)
auto trackPos2 = candidate.template prong2_as<soa::Join<TracksWPid, o2::aod::McTrackLabels>>(); // positive daughter (negative for the antiparticles)
auto fillTable = [&](int CandFlag) {
double pseudoRndm = trackPos1.pt() * 1000. - (int64_t)(trackPos1.pt() * 1000);
double pseudoRndm = trackPos1.pt() * 1000. - static_cast<int64_t>(trackPos1.pt() * 1000);
const int FunctionSelection = CandFlag == 0 ? candidate.isSelLcToPKPi() : candidate.isSelLcToPiKP();
const int sigbgstatus = DetermineSignalBgStatus(candidate, CandFlag);
bool isMcCandidateSignal = (sigbgstatus == 1) || (sigbgstatus == 2);
Expand Down Expand Up @@ -836,7 +836,7 @@ struct HfTreeCreatorLcToPKPi {
auto trackNeg = candidate.template prong1_as<TracksWPid>(); // negative daughter (positive for the antiparticles)
auto trackPos2 = candidate.template prong2_as<TracksWPid>(); // positive daughter (negative for the antiparticles)
auto fillTable = [&](int CandFlag) {
double pseudoRndm = trackPos1.pt() * 1000. - (int64_t)(trackPos1.pt() * 1000);
double pseudoRndm = trackPos1.pt() * 1000. - static_cast<int64_t>(trackPos1.pt() * 1000);
const int FunctionSelection = CandFlag == 0 ? candidate.isSelLcToPKPi() : candidate.isSelLcToPiKP();
if (FunctionSelection >= selectionFlagLc && (candidate.pt() > downSampleBkgPtMax || (pseudoRndm < downSampleBkgFactor && candidate.pt() < downSampleBkgPtMax))) {
float FunctionInvMass, FunctionInvMassKPi;
Expand Down
2 changes: 2 additions & 0 deletions Tools/KFparticle/KFUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#define HomogeneousField
#endif

#include <utility>

#include <TDatabasePDG.h> // FIXME

#include "KFParticle.h"
Expand Down

0 comments on commit 07d6f8d

Please sign in to comment.