Skip to content

Commit 4c79485

Browse files
authored
check run 2 bit in MC + revert previous selections for run 2 reco (#5790)
1 parent c2f806a commit 4c79485

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGLF/Tasks/Nuspex/antidLambdaEbye.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ struct antidLambdaEbye {
834834
auto mcTrack = mcLab.template mcParticle_as<aod::McParticles>();
835835
if (std::abs(mcTrack.pdgCode()) != partPdg[iP])
836836
continue;
837-
if ((mcTrack.flags() & 0x8) || (mcTrack.flags() & 0x2) || (mcTrack.flags() & 0x1))
837+
if (((mcTrack.flags() & 0x8) && doprocessMcRun2) || (mcTrack.flags() & 0x2) || (mcTrack.flags() & 0x1))
838838
continue;
839839
if (!mcTrack.isPhysicalPrimary())
840840
continue;
@@ -866,7 +866,7 @@ struct antidLambdaEbye {
866866
continue;
867867
if (!posMother.isPhysicalPrimary() && !posMother.has_mothers())
868868
continue;
869-
if ((posMother.flags() & 0x8) || (posMother.flags() & 0x2) || (posMother.flags() & 0x1))
869+
if (((posMother.flags() & 0x8) && doprocessMcRun2) || (posMother.flags() & 0x2) || (posMother.flags() & 0x1))
870870
continue;
871871
if (posMother.pdgCode() > 0) {
872872
histos.fill(HIST("recL"), centrality, candidateV0.pt, std::abs(candidateV0.eta));
@@ -927,7 +927,7 @@ struct antidLambdaEbye {
927927
if (std::abs(genEta) > etaMax) {
928928
continue;
929929
}
930-
if ((mcPart.flags() & 0x8) || (mcPart.flags() & 0x2) || (mcPart.flags() & 0x1))
930+
if (((mcPart.flags() & 0x8) && doprocessMcRun2) || (mcPart.flags() & 0x2) || (mcPart.flags() & 0x1))
931931
continue;
932932
auto pdgCode = mcPart.pdgCode();
933933
if (std::abs(pdgCode) == 3122) {
@@ -1042,7 +1042,7 @@ struct antidLambdaEbye {
10421042
continue;
10431043

10441044
auto centrality = collision.centRun2V0M();
1045-
if (!collision.alias_bit(kINT7) && (!kINT7Intervals || (kINT7Intervals && ((centrality >= 10 && centrality < 30) || centrality > 50))))
1045+
if (!(collision.sel7() && collision.alias_bit(kINT7)) && (!kINT7Intervals || (kINT7Intervals && ((centrality >= 10 && centrality < 30) || centrality > 50))))
10461046
continue;
10471047

10481048
auto centralityCl0 = collision.centRun2CL0();

0 commit comments

Comments
 (0)