Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2025 CERN and copyright holders of ALICE O2.

Check failure on line 1 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Use constant references for table subscriptions in process functions.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand Down Expand Up @@ -50,6 +50,7 @@
Configurable<float> ConfTrk1_PIDThres{"ConfTrk1_PIDThres", 0.75, "Particle 1 - Read from cutCulator"};

Configurable<bool> ConfOptDCACutPtDep{"ConfOptDCACutPtDep", false, "Use pt dependent dca cut"};
Configurable<bool> ConfUseRun2Function{"ConfUseRun2Function", true, "Use Run2 pT dependent DCA selection function"};
Configurable<bool> ConfOptCorrelatedPlots{"ConfOptCorrelatedPlots", false, "Enable additional three dimensional histogramms. High memory consumption. Use for debugging"};
ConfigurableAxis ConfBinmult{"ConfBinmult", {1, 0, 1}, "multiplicity Binning"};
ConfigurableAxis ConfBinmultPercentile{"ConfBinmultPercentile", {10, 0.0f, 100.0f}, "multiplicity percentile Binning"};
Expand Down Expand Up @@ -77,12 +78,12 @@

Partition<FemtoFullParticles> partsOne = (aod::femtodreamparticle::partType == uint8_t(aod::femtodreamparticle::ParticleType::kTrack)) &&
(ncheckbit(aod::femtodreamparticle::cut, ConfTrk1_CutBit)) &&
ifnode(aod::femtodreamparticle::pt * (nexp(aod::femtodreamparticle::eta) + nexp(-1.f * aod::femtodreamparticle::eta)) / 2.f <= ConfTrk1_PIDThres, ncheckbit(aod::femtodreamparticle::pidcut, ConfTrk1_TPCBit) && ((aod::femtodreamparticle::pidcut & ConfTrk1_TPCBit_Reject) == 0u), ncheckbit(aod::femtodreamparticle::pidcut, ConfTrk1_TPCTOFBit)) &&

Check failure on line 81 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
(aod::femtodreamparticle::pt > ConfTrk1_minPt) &&
(aod::femtodreamparticle::pt < ConfTrk1_maxPt) &&
(aod::femtodreamparticle::eta > ConfTrk1_minEta) &&
(aod::femtodreamparticle::eta < ConfTrk1_maxEta) &&
ifnode(ConfOptDCACutPtDep, nabs(aod::femtodreamparticle::tempFitVar) < 0.0105f + (0.035f / npow(aod::femtodreamparticle::pt, 1.1f)),
ifnode(ConfOptDCACutPtDep, ifnode(ConfUseRun2Function, nabs(aod::femtodreamparticle::tempFitVar) < 0.0105f + (0.035f / npow(aod::femtodreamparticle::pt, 1.1f)), nabs(aod::femtodreamparticle::tempFitVar) < 0.004f + (0.013f / aod::femtodreamparticle::pt)),
(aod::femtodreamparticle::tempFitVar > ConfTrk1_TempFitVarMin) &&
(aod::femtodreamparticle::tempFitVar < ConfTrk1_TempFitVarMax));

Expand Down Expand Up @@ -119,7 +120,7 @@
return;
}

for (auto& part : groupPartsOne) {

Check failure on line 123 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
trackHisto.fillQA<isMC, true>(part, static_cast<aod::femtodreamparticle::MomentumType>(ConfTempFitVarMomentum.value), col.multNtr(), col.multV0M(), ConfOptCorrelatedPlots);
}
}
Expand All @@ -127,7 +128,7 @@
/// process function when runnning over data/ Monte Carlo reconstructed only
/// \param col subscribe to FemtoDreamCollision table
/// \param parts subscribe to FemtoDreamParticles table
void processData(o2::aod::FDCollision& col, FemtoFullParticles&)

Check failure on line 131 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Argument FemtoFullParticles& is not const&.

Check failure on line 131 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Argument o2::aod::FDCollision& col is not const&.
{
auto groupPartsOne = partsOne->sliceByCached(aod::femtodreamparticle::fdCollisionId, col.globalIndex(), cache);
FillDebugHistos<false>(col, groupPartsOne);
Expand All @@ -139,7 +140,7 @@
/// \param col subscribe to FemtoDreamCollision table
/// \param parts subscribe to the joined table of FemtoDreamParticles and FemtoDreamMCLabels table
/// \param FemtoDramMCParticles subscribe to the table containing the Monte Carlo Truth information
void processMC(FemtoMCCollision& col, o2::aod::FDMCCollisions&, FemtoFullParticlesMC& /*parts*/, aod::FDMCParticles&, aod::FDExtMCParticles&)

Check failure on line 143 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Argument aod::FDExtMCParticles& is not const&.

Check failure on line 143 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Argument aod::FDMCParticles& is not const&.

Check failure on line 143 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Argument FemtoFullParticlesMC& /*parts*/ is not const&.

Check failure on line 143 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Argument o2::aod::FDMCCollisions& is not const&.

Check failure on line 143 in PWGCF/FemtoDream/Tasks/femtoDreamDebugTrack.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-process]

Argument FemtoMCCollision& col is not const&.
{
auto groupPartsOne = partsOneMC->sliceByCached(aod::femtodreamparticle::fdCollisionId, col.globalIndex(), cache);
FillDebugHistos<true>(col, groupPartsOne);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ struct femtoDreamTripletTaskTrackTrackTrack {
(ncheckbit(aod::femtodreamparticle::cut, ConfCutPart)) &&
(aod::femtodreamparticle::pt < ConfMaxpT) &&
(aod::femtodreamparticle::pt > ConfMinpT) &&
ifnode(ConfDCACutPtDep, (nabs(aod::femtodreamparticle::tempFitVar) <= 0.0105f + (0.035f / npow(aod::femtodreamparticle::pt, 1.1f))),
ifnode(ConfDCACutPtDep, (nabs(aod::femtodreamparticle::tempFitVar) <= 0.004f + (0.013f / aod::femtodreamparticle::pt)),
((aod::femtodreamparticle::tempFitVar >= ConfMinDCAxy) &&
(aod::femtodreamparticle::tempFitVar <= ConfMaxDCAxy)));
;
Expand All @@ -87,7 +87,7 @@ struct femtoDreamTripletTaskTrackTrackTrack {
(ncheckbit(aod::femtodreamparticle::cut, ConfCutPart)) &&
(aod::femtodreamparticle::pt < ConfMaxpT) &&
(aod::femtodreamparticle::pt > ConfMinpT) &&
ifnode(ConfDCACutPtDep, (nabs(aod::femtodreamparticle::tempFitVar) <= 0.0105f + (0.035f / npow(aod::femtodreamparticle::pt, 1.1f))),
ifnode(ConfDCACutPtDep, (nabs(aod::femtodreamparticle::tempFitVar) <= 0.004f + (0.013f / aod::femtodreamparticle::pt)),
((aod::femtodreamparticle::tempFitVar >= ConfMinDCAxy) &&
(aod::femtodreamparticle::tempFitVar <= ConfMaxDCAxy)));
;
Expand Down
Loading