Skip to content

Commit bf50dd3

Browse files
committed
[PWGEM/Dilepton] fix dphi range in SCT
1 parent aadd680 commit bf50dd3

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

PWGEM/Dilepton/Utils/SemiCharmTag.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ LHPair makePairLeptonTrack(TFitter& fitter, TCollision const& collision, TLepton
175175
pair.mass = v12.M();
176176
pair.pt = v12.Pt();
177177
pair.p = v12.P();
178-
pair.deta = v1.Eta() - v2.Eta(); // lepton - hadron
179-
pair.dphi = RecoDecay::constrainAngle(RecoDecay::constrainAngle(v1.Phi(), 0, 1U) - RecoDecay::constrainAngle(v2.Phi(), 0, 1U), -M_PI / 2, 1U); // lepton - hadron
178+
pair.deta = v1.Eta() - v2.Eta(); // lepton - hadron
179+
pair.dphi = RecoDecay::constrainAngle(RecoDecay::constrainAngle(v1.Phi(), 0, 1U) - RecoDecay::constrainAngle(v2.Phi(), 0, 1U), -M_PI, 1U); // lepton - hadron
180180
pair.isOK = true;
181181
return pair;
182182
}
@@ -302,8 +302,8 @@ LHPair makePairLeptonV0(TFitter& fitter, TCollision const& collision, TLepton co
302302
pair.mass = v12.M();
303303
pair.pt = v12.Pt();
304304
pair.p = v12.P();
305-
pair.deta = v1.Eta() - v2.Eta(); // lepton - hadron
306-
pair.dphi = RecoDecay::constrainAngle(RecoDecay::constrainAngle(v1.Phi(), 0, 1U) - RecoDecay::constrainAngle(v2.Phi(), 0, 1U), -M_PI / 2, 1U); // lepton - hadron
305+
pair.deta = v1.Eta() - v2.Eta(); // lepton - hadron
306+
pair.dphi = RecoDecay::constrainAngle(RecoDecay::constrainAngle(v1.Phi(), 0, 1U) - RecoDecay::constrainAngle(v2.Phi(), 0, 1U), -M_PI, 1U); // lepton - hadron
307307
pair.isOK = true;
308308

309309
return pair;
@@ -434,8 +434,8 @@ LHPair makePairLeptonCascade(TFitter& fitter, TCollision const& collision, TLept
434434
pair.mass = v12.M();
435435
pair.pt = v12.Pt();
436436
pair.p = v12.P();
437-
pair.deta = v1.Eta() - v2.Eta(); // lepton - hadron
438-
pair.dphi = RecoDecay::constrainAngle(RecoDecay::constrainAngle(v1.Phi(), 0, 1U) - RecoDecay::constrainAngle(v2.Phi(), 0, 1U), -M_PI / 2, 1U); // lepton - hadron
437+
pair.deta = v1.Eta() - v2.Eta(); // lepton - hadron
438+
pair.dphi = RecoDecay::constrainAngle(RecoDecay::constrainAngle(v1.Phi(), 0, 1U) - RecoDecay::constrainAngle(v2.Phi(), 0, 1U), -M_PI, 1U); // lepton - hadron
439439
pair.isOK = true;
440440

441441
return pair;

0 commit comments

Comments
 (0)