Skip to content

Commit 93a772f

Browse files
authored
PWGHF: Added processes to select Sc collisions with comments implimented
1 parent 7c1f14f commit 93a772f

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

PWGHF/HFC/Utils/utilsCorrelations.h

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
#include "Common/DataModel/PIDResponseTPC.h"
2929
#include "Common/DataModel/PIDResponseTOF.h"
3030

31-
// HfHelper hfHelper;
32-
3331
namespace o2::analysis::hf_correlations
3432
{
3533
enum Region {
@@ -125,14 +123,15 @@ bool passPIDSelection(Atrack const& track, SpeciesContainer const mPIDspecies,
125123
return true; // Passed all checks
126124
}
127125

126+
//function to select candidate based on PDF and decay channels and their mass
128127
template <bool isScCand, typename McParticle>
129128
bool matchCandAndMass(McParticle const& particle, double& massCand)
130129
{
131130
const auto pdgCand = std::abs(particle.pdgCode());
132131
const auto matchGenFlag = std::abs(particle.flagMcMatchGen());
133132

134133
// Validate PDG code based on candidate type
135-
if constexpr (isScCand) {
134+
if (isScCand) {
136135
if (!(pdgCand == o2::constants::physics::Pdg::kSigmaC0 ||
137136
pdgCand == o2::constants::physics::Pdg::kSigmaCPlusPlus ||
138137
pdgCand == o2::constants::physics::Pdg::kSigmaCStar0 ||
@@ -147,28 +146,34 @@ bool matchCandAndMass(McParticle const& particle, double& massCand)
147146

148147
// Map decay type to mass
149148
switch (matchGenFlag) {
150-
case BIT(aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi):
149+
case BIT(aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi):{
151150
massCand = o2::constants::physics::MassSigmaC0;
152151
return true;
152+
}
153153

154-
case BIT(aod::hf_cand_sigmac::DecayType::ScStar0ToPKPiPi):
154+
case BIT(aod::hf_cand_sigmac::DecayType::ScStar0ToPKPiPi):{
155155
massCand = o2::constants::physics::MassSigmaCStar0;
156156
return true;
157+
}
157158

158-
case BIT(aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi):
159+
case BIT(aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi):{
159160
massCand = o2::constants::physics::MassSigmaCStarPlusPlus;
160161
return true;
162+
}
161163

162-
case BIT(aod::hf_cand_sigmac::DecayType::ScStarPlusPlusToPKPiPi):
164+
case BIT(aod::hf_cand_sigmac::DecayType::ScStarPlusPlusToPKPiPi):{
163165
massCand = o2::constants::physics::MassSigmaCStarPlusPlus;
164166
return true;
167+
}
165168

166-
case hf_decay::hf_cand_3prong::DecayChannelMain::LcToPKPi:
169+
case hf_decay::hf_cand_3prong::DecayChannelMain::LcToPKPi:{
167170
massCand = o2::constants::physics::MassLambdaCPlus;
168171
return true;
172+
}
169173

170-
default:
174+
default:{
171175
return false;
176+
}
172177
}
173178
}
174179

0 commit comments

Comments
 (0)