Skip to content

Commit afb73c9

Browse files
authored
PWGHF: added table for DeltaY between Lc-hadrons and included Lc sign in the table for mixing-event offline
1 parent e3d594d commit afb73c9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

PWGHF/HFC/TableProducer/correlatorLcHadrons.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ struct HfCorrelatorLcHadrons {
210210
Service<o2::framework::O2DatabasePDG> pdg;
211211
int leadingIndex = 0;
212212
bool correlationStatus = false;
213+
static constexpr size_t nDaughters{3u};
213214
TRandom3* rnd = new TRandom3(0);
214215

215216
// Event Mixing for the Data Mode
@@ -799,12 +800,12 @@ struct HfCorrelatorLcHadrons {
799800

800801
// prompt and non-prompt division
801802
std::vector<int> listDaughters{};
802-
std::array<int, 3> arrDaughLcPDG = {kProton, -kKPlus, kPiPlus};
803-
std::array<int, 3> prongsId;
803+
std::array<int, nDaughters> arrDaughLcPDG = {kProton, -kKPlus, kPiPlus};
804+
std::array<int, nDaughters> prongsId;
804805
listDaughters.clear();
805806
RecoDecay::getDaughters(particle, &listDaughters, arrDaughLcPDG, 2);
806807
int counterDaughters = 0;
807-
if (listDaughters.size() == 3) {
808+
if (listDaughters.size() == nDaughters) {
808809
for (const auto& dauIdx : listDaughters) {
809810
auto daughI = mcParticles.rawIteratorAt(dauIdx - mcParticles.offset());
810811
counterDaughters += 1;

0 commit comments

Comments
 (0)