Skip to content

Commit 40fc106

Browse files
authored
[PWGLF] add the mass difference between mother and daughter particle in output (#9206)
1 parent 7a24675 commit 40fc106

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

PWGLF/Tasks/Resonances/doublephimeson.cxx

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ using namespace o2::soa;
4141

4242
struct doublephimeson {
4343
HistogramRegistry histos{"histos", {}, OutputObjHandlingPolicy::AnalysisObject};
44-
44+
Configurable<bool> fillDeltaMass{"fillDeltaMass", 1, "Fill Delta Mass"};
4545
Configurable<bool> fillRotation{"fillRotation", 1, "Fill rotation"};
4646
Configurable<int> strategyPID1{"strategyPID1", 0, "PID strategy 1"};
4747
Configurable<int> strategyPID2{"strategyPID2", 0, "PID strategy 2"};
@@ -265,7 +265,12 @@ struct doublephimeson {
265265
auto cosThetaStar = getCosTheta(exotic, Phid1);
266266
auto kstar = getkstar(Phid1, Phid2);
267267
auto deltaR = TMath::Sqrt(TMath::Power(Phid1.Phi() - Phid2.Phi(), 2.0) + TMath::Power(Phid1.Eta() - Phid2.Eta(), 2.0));
268-
histos.fill(HIST("SEMassUnlike"), exotic.M(), exotic.Pt(), kstar, cosThetaStar, deltaR);
268+
if (!fillDeltaMass) {
269+
histos.fill(HIST("SEMassUnlike"), exotic.M(), exotic.Pt(), kstar, cosThetaStar, deltaR);
270+
}
271+
if (fillDeltaMass) {
272+
histos.fill(HIST("SEMassUnlike"), exotic.M() - Phid1.M(), exotic.Pt(), kstar, cosThetaStar, deltaR);
273+
}
269274
histos.fill(HIST("SEMass"), Phid1.M(), Phid2.M(), Phid1.Pt(), Phid2.Pt());
270275
if (fillRotation) {
271276
for (int nrotbkg = 0; nrotbkg < 5; nrotbkg++) {
@@ -280,7 +285,12 @@ struct doublephimeson {
280285
auto cosThetaStar_rot = getCosTheta(exoticRot, Phid1Rot);
281286
auto kstar_rot = getkstar(Phid1Rot, Phid2);
282287
auto deltaR_rot = TMath::Sqrt(TMath::Power(Phid1Rot.Phi() - Phid2.Phi(), 2.0) + TMath::Power(Phid1Rot.Eta() - Phid2.Eta(), 2.0));
283-
histos.fill(HIST("SEMassRot"), exoticRot.M(), exoticRot.Pt(), kstar_rot, cosThetaStar_rot, deltaR_rot);
288+
if (!fillDeltaMass) {
289+
histos.fill(HIST("SEMassRot"), exoticRot.M(), exoticRot.Pt(), kstar_rot, cosThetaStar_rot, deltaR_rot);
290+
}
291+
if (fillDeltaMass) {
292+
histos.fill(HIST("SEMassRot"), exoticRot.M() - Phid1Rot.M(), exoticRot.Pt(), kstar_rot, cosThetaStar_rot, deltaR_rot);
293+
}
284294
}
285295
}
286296
}
@@ -334,7 +344,12 @@ struct doublephimeson {
334344
auto cosThetaStar = getCosTheta(exotic, Phid1);
335345
auto kstar = getkstar(Phid1, Phid2);
336346
auto deltaR = TMath::Sqrt(TMath::Power(Phid1.Phi() - Phid2.Phi(), 2.0) + TMath::Power(Phid1.Eta() - Phid2.Eta(), 2.0));
337-
histos.fill(HIST("MEMassUnlike"), exotic.M(), exotic.Pt(), kstar, cosThetaStar, deltaR);
347+
if (!fillDeltaMass) {
348+
histos.fill(HIST("MEMassUnlike"), exotic.M(), exotic.Pt(), kstar, cosThetaStar, deltaR);
349+
}
350+
if (fillDeltaMass) {
351+
histos.fill(HIST("MEMassUnlike"), exotic.M() - Phid1.M(), exotic.Pt(), kstar, cosThetaStar, deltaR);
352+
}
338353
}
339354
}
340355
}

0 commit comments

Comments
 (0)