Skip to content

Commit 97c3568

Browse files
author
Prottay Das
committed
updated2
1 parent 0704315 commit 97c3568

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

PWGCF/TableProducer/filter2Prong.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -851,18 +851,18 @@ struct Filter2Prong {
851851
continue;
852852
}
853853

854-
ROOT::Math::PtEtaPhiMVector vec1(p1.pt(), p1.eta(), p1.phi(), cfgImPart1Mass);
855-
ROOT::Math::PtEtaPhiMVector vec2(p2.pt(), p2.eta(), p2.phi(), cfgImPart2Mass);
856-
ROOT::Math::PtEtaPhiMVector s = vec1 + vec2;
854+
if (selectionPID3(p1) && selectionPID3(p2)) {
855+
if (selectionSys(p1, false, false) && selectionSys(p2, false, false)) {
856+
ROOT::Math::PtEtaPhiMVector vec1(p1.pt(), p1.eta(), p1.phi(), cfgImPart1Mass);
857+
ROOT::Math::PtEtaPhiMVector vec2(p2.pt(), p2.eta(), p2.phi(), cfgImPart2Mass);
858+
ROOT::Math::PtEtaPhiMVector s = vec1 + vec2;
857859

858-
if (s.M() < grpPhi.ImMinInvMassPhiMeson || s.M() > grpPhi.ImMaxInvMassPhiMeson) {
859-
continue;
860-
}
860+
if (s.M() < grpPhi.ImMinInvMassPhiMeson || s.M() > grpPhi.ImMaxInvMassPhiMeson) {
861+
continue;
862+
}
861863

862-
float phi = RecoDecay::constrainAngle(s.Phi(), 0.0f);
864+
float phi = RecoDecay::constrainAngle(s.Phi(), 0.0f);
863865

864-
if (selectionPID3(p1) && selectionPID3(p2)) {
865-
if (selectionSys(p1, false, false) && selectionSys(p2, false, false)) {
866866
output2ProngTracks(collision1.globalIndex(),
867867
cftrack1.globalIndex(), cftrack2.globalIndex(),
868868
s.pt(), s.eta(), phi, s.M(),

0 commit comments

Comments
 (0)