Skip to content

Commit d51b795

Browse files
author
Sawan Sawan
committed
added third axis to mass correlation plot
1 parent e1ffc91 commit d51b795

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

PWGLF/Tasks/Resonances/higherMassResonances.cxx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ struct HigherMassResonances {
338338
if (config.qAv0) {
339339
// Invariant Mass
340340
rKzeroShort.add("hMassK0Shortbefore", "hMassK0Shortbefore", kTHnSparseF, {k0ShortMassAxis, ptAxis});
341-
rKzeroShort.add("hK0ShortMassCorr", "hK0ShortMassCorr", kTH2F, {k0ShortMassAxis, k0ShortMassAxis});
342-
rKzeroShort.add("hK0ShortMassCorrAfterCut", "hK0ShortMassCorrAfterCut", kTH2F, {k0ShortMassAxis, k0ShortMassAxis});
341+
rKzeroShort.add("hK0ShortMassCorr", "hK0ShortMassCorr", kTHnSparseF, {k0ShortMassAxis, k0ShortMassAxis, deltaMAxis});
342+
// rKzeroShort.add("hK0ShortMassCorrAfterCut", "hK0ShortMassCorrAfterCut", kTH2F, {k0ShortMassAxis, k0ShortMassAxis});
343343
rKzeroShort.add("hK0sPtCorrelation", "hK0sPtCorrelation", kTH1F, {{1000, 0.0f, 100.0f}});
344344
rKzeroShort.add("hMassK0ShortSelected", "hMassK0ShortSelected", kTHnSparseF, {k0ShortMassAxis, ptAxis});
345345
// Topological histograms (after the selection)
@@ -1034,20 +1034,20 @@ struct HigherMassResonances {
10341034
mother = daughter1 + daughter2; // invariant mass of Kshort pair
10351035
isMix = false;
10361036

1037+
const double deltaMass = deltaM(v1.mK0Short(), v2.mK0Short());
10371038
if (config.qAv0) {
1038-
rKzeroShort.fill(HIST("hK0ShortMassCorr"), v1.mK0Short(), v2.mK0Short());
1039+
rKzeroShort.fill(HIST("hK0ShortMassCorr"), v1.mK0Short(), v2.mK0Short(), deltaMass);
10391040
}
10401041

1041-
const double deltaMass = deltaM(v1.mK0Short(), v2.mK0Short());
10421042
if (!config.qAOptimisation) {
10431043
if (deltaMass > config.cMaxDeltaM) {
10441044
continue;
10451045
}
10461046
}
10471047

1048-
if (config.qAv0) {
1049-
rKzeroShort.fill(HIST("hK0ShortMassCorrAfterCut"), v1.mK0Short(), v2.mK0Short());
1050-
}
1048+
// if (config.qAv0) {
1049+
// rKzeroShort.fill(HIST("hK0ShortMassCorrAfterCut"), v1.mK0Short(), v2.mK0Short());
1050+
// }
10511051

10521052
const double ptCorr = std::abs(daughter1.Pt() + daughter2.Pt()) / mother.Pt();
10531053
if (config.qAv0) {
@@ -1555,18 +1555,18 @@ struct HigherMassResonances {
15551555
mother = daughter1 + daughter2; // invariant mass of Kshort pair
15561556
isMix = false;
15571557

1558+
const double deltaMass = deltaM(v1.mK0Short(), v2.mK0Short());
15581559
if (config.qAv0) {
1559-
rKzeroShort.fill(HIST("hK0ShortMassCorr"), v1.mK0Short(), v2.mK0Short());
1560+
rKzeroShort.fill(HIST("hK0ShortMassCorr"), v1.mK0Short(), v2.mK0Short(), deltaMass);
15601561
}
15611562

1562-
const double deltaMass = deltaM(v1.mK0Short(), v2.mK0Short());
15631563
if (deltaMass > config.cMaxDeltaM) {
15641564
continue;
15651565
}
15661566

1567-
if (config.qAv0) {
1568-
rKzeroShort.fill(HIST("hK0ShortMassCorrAfterCut"), v1.mK0Short(), v2.mK0Short());
1569-
}
1567+
// if (config.qAv0) {
1568+
// rKzeroShort.fill(HIST("hK0ShortMassCorrAfterCut"), v1.mK0Short(), v2.mK0Short());
1569+
// }
15701570

15711571
const double ptCorr = std::abs(daughter1.Pt() + daughter2.Pt()) / mother.Pt();
15721572
if (config.qAv0) {

0 commit comments

Comments
 (0)