Skip to content

Commit

Permalink
[PWGHF] Add pt and inv.mass cuts also in mixed event (#8991)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbiao-phy authored Dec 15, 2024
1 parent 6c25c33 commit c44f119
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 c44f119

Please sign in to comment.