Skip to content

Commit b6335ab

Browse files
authored
[PWGLF] Modified angular cut (#10172)
1 parent 3db7984 commit b6335ab

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

PWGLF/Tasks/Resonances/higherMassResonances.cxx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ struct HigherMassResonances {
246246
rKzeroShort.add("hDCAV0Daughters", "DCA between v0 daughters", {HistType::kTH1F, {{60, -3.0f, 3.0f}}});
247247
rKzeroShort.add("hV0CosPA", "hV0CosPA", {HistType::kTH1F, {{100, 0.96f, 1.1f}}});
248248
rKzeroShort.add("hLT", "hLT", {HistType::kTH1F, {{100, 0.0f, 50.0f}}});
249-
rKzeroShort.add("angularSeparation", "Angular separation between two K0s", {HistType::kTH1F, {{200, 0.0f, 4.0f}}});
249+
rKzeroShort.add("angularSeparation", "Angular distribution between two K0s vs pT", {HistType::kTH1F, {{200, 0.0f, 4.0f}}});
250250
// rKzeroShort.add("Mass_lambda", "Mass under lambda hypothesis", kTH1F, {glueballMassAxis});
251251
// rKzeroShort.add("mass_AntiLambda", "Mass under anti-lambda hypothesis", kTH1F, {glueballMassAxis});
252252
// rKzeroShort.add("mass_Gamma", "Mass under Gamma hypothesis", kTH1F, {glueballMassAxis});
@@ -536,16 +536,13 @@ struct HigherMassResonances {
536536
template <typename T1, typename T2>
537537
bool applyAngSep(const T1& candidate1, const T2& candidate2)
538538
{
539-
double p1, p2, px1, px2, py1, py2, pz1, pz2, angle;
540-
px1 = candidate1.px();
541-
px2 = candidate2.px();
542-
py1 = candidate1.py();
543-
py2 = candidate2.py();
544-
pz1 = candidate1.pz();
545-
pz2 = candidate2.pz();
546-
p1 = candidate1.p();
547-
p2 = candidate2.p();
548-
angle = std::acos((px1 * px2 + py1 * py2 + pz1 * pz2) / (p1 * p2));
539+
double eta1, eta2, phi1, phi2;
540+
eta1 = candidate1.eta();
541+
eta2 = candidate2.eta();
542+
phi1 = candidate1.phi();
543+
phi2 = candidate2.phi();
544+
545+
double angle = std::sqrt(std::pow(eta1 - eta2, 2) + std::pow(phi1 - phi2, 2));
549546
rKzeroShort.fill(HIST("angularSeparation"), angle);
550547
if (config.applyAngSepCut && angle < config.angSepCut) {
551548
return false;

0 commit comments

Comments
 (0)