Skip to content

Commit

Permalink
[PWGHF] Add pt and inv.mass cuts also in mixed event (AliceO2Group#8991)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbiao-phy authored and Sabrina Hernandez committed Dec 20, 2024
1 parent 34fb0ad commit 4945b73
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions PWGHF/HFC/Tasks/taskCharmHadronsFemtoDream.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,14 @@ struct HfTaskCharmHadronsFemtoDream {
invMass = p2.m(std::array{o2::constants::physics::MassPiPlus, o2::constants::physics::MassKPlus, o2::constants::physics::MassProton});
}

if (invMass < charmHadMinInvMass || invMass > charmHadMaxInvMass) {
continue;
}

if (p2.pt() < charmHadMinPt || p2.pt() > charmHadMaxPt) {
continue;
}

int charmHadMc = 0;
int originType = 0;
if constexpr (isMc) {
Expand Down

0 comments on commit 4945b73

Please sign in to comment.