Skip to content

Commit

Permalink
Add pt and inv.mass cuts also in mixed event
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbiao-phy authored Dec 14, 2024
1 parent ec478c6 commit 50a201e
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 50a201e

Please sign in to comment.