Skip to content

Commit c426e96

Browse files
committed
Remove again legacy channels and fix HFC code.
1 parent 4c2e654 commit c426e96

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

PWGHF/Core/DecayChannelsLegacy.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ enum DecayType {
5050
};
5151
} // namespace hf_cand_dstar
5252

53-
namespace hf_cand_sigmac
54-
{
55-
enum DecayType {
56-
Sc0ToPKPiPi = 0,
57-
ScplusplusToPKPiPi,
58-
ScStar0ToPKPiPi,
59-
ScStarPlusPlusToPKPiPi
60-
};
61-
} // namespace hf_cand_sigmac
62-
6353
namespace hf_cand_b0
6454
{
6555
enum DecayType {

PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,8 @@ struct HfCorrelatorLcScHadrons {
829829
// (TESTBIT(std::abs(candidate.flagMcMatchRec()), aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi) && chargeCand == 0) ||
830830
// (TESTBIT(std::abs(candidate.flagMcMatchRec()), aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi) && std::abs(chargeCand) == 2);
831831
isSignal =
832-
(std::abs(candidate.flagMcMatchRec()) == (1 << aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi) && chargeCand == ChargeZero) ||
833-
(std::abs(candidate.flagMcMatchRec()) == (1 << aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi) && std::abs(chargeCand) == ChargeScPlusPlus);
832+
(std::abs(candidate.flagMcMatchRec()) == o2::hf_decay::hf_cand_sigmac::DecayChannelMain::Sc0ToPKPiPi && chargeCand == ChargeZero) ||
833+
(std::abs(candidate.flagMcMatchRec()) == o2::hf_decay::hf_cand_sigmac::DecayChannelMain::ScplusplusToPKPiPi && std::abs(chargeCand) == ChargeScPlusPlus);
834834

835835
auto trackPos1 = candidateLc.template prong0_as<aod::TracksWMc>();
836836
auto trackPos2 = candidateLc.template prong2_as<aod::TracksWMc>();
@@ -1057,8 +1057,8 @@ struct HfCorrelatorLcScHadrons {
10571057
}
10581058
if constexpr (IsMcRec) {
10591059
isSignal =
1060-
(TESTBIT(std::abs(candidate.flagMcMatchRec()), aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi) && chargeCand == ChargeZero) ||
1061-
(TESTBIT(std::abs(candidate.flagMcMatchRec()), aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi) && std::abs(chargeCand) == ChargeScPlusPlus);
1060+
((std::abs(candidate.flagMcMatchRec()) == o2::hf_decay::hf_cand_sigmac::DecayChannelMain::Sc0ToPKPiPi) && chargeCand == ChargeZero) ||
1061+
((std::abs(candidate.flagMcMatchRec()) == o2::hf_decay::hf_cand_sigmac::DecayChannelMain::ScplusplusToPKPiPi) && std::abs(chargeCand) == ChargeScPlusPlus);
10621062
signSoftPion = candidate.template prong1_as<aod::TracksWMc>().sign();
10631063
} else {
10641064
signSoftPion = candidate.template prong1_as<aod::Tracks>().sign();

PWGHF/HFC/Utils/utilsCorrelations.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,22 +162,22 @@ bool matchCandAndMass(McParticleType const& particle, double& massCand)
162162

163163
// Map decay type to mass
164164
switch (matchGenFlag) {
165-
case BIT(aod::hf_cand_sigmac::DecayType::Sc0ToPKPiPi): {
165+
case o2::hf_decay::hf_cand_sigmac::DecayChannelMain::Sc0ToPKPiPi: {
166166
massCand = o2::constants::physics::MassSigmaC0;
167167
return true;
168168
}
169169

170-
case BIT(aod::hf_cand_sigmac::DecayType::ScStar0ToPKPiPi): {
170+
case o2::hf_decay::hf_cand_sigmac::DecayChannelMain::ScStar0ToPKPiPi: {
171171
massCand = o2::constants::physics::MassSigmaCStar0;
172172
return true;
173173
}
174174

175-
case BIT(aod::hf_cand_sigmac::DecayType::ScplusplusToPKPiPi): {
175+
case o2::hf_decay::hf_cand_sigmac::DecayChannelMain::ScplusplusToPKPiPi: {
176176
massCand = o2::constants::physics::MassSigmaCPlusPlus;
177177
return true;
178178
}
179179

180-
case BIT(aod::hf_cand_sigmac::DecayType::ScStarPlusPlusToPKPiPi): {
180+
case o2::hf_decay::hf_cand_sigmac::DecayChannelMain::ScStarPlusPlusToPKPiPi: {
181181
massCand = o2::constants::physics::MassSigmaCStarPlusPlus;
182182
return true;
183183
}

0 commit comments

Comments
 (0)