Skip to content

Commit 7daa5b1

Browse files
authored
[PWGLF] Added mass shift histograms (#16677)
1 parent 84f40fb commit 7daa5b1

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

PWGLF/Tasks/Resonances/kstar892LightIon.cxx

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,16 @@ struct Kstar892LightIon {
363363
hMC.add("Rec/h2KstarRecpt2", "pT of kstar meson", kTH3F, {ptAxis, centralityAxis, invmassAxis});
364364
hMC.add("Rec/h1RecCent", "centrality reconstructed", kTH1F, {centralityAxis});
365365
hMC.add("Rec/h1KSRecsplit", "KS meson Rec split", kTH1F, {{100, 0.0f, 10.0f}});
366+
367+
hMC.add("Rec/hMassShiftGen", "#Delta M = m_{rec} - m_{gen}; #it{p}_{T}_{gen}; #it{p}_{T}_{rec}; #Delta M", kTH3F, {ptAxis, ptAxis, {1000, -0.5, 0.5}});
368+
hMC.add("Rec/hMassShiftPDG", "#Delta M = m_{rec} - m_{PDG}; #it{p}_{T}_{gen}; #it{p}_{T}_{rec}; #Delta M", kTH3F, {ptAxis, ptAxis, {1000, -0.5, 0.5}});
366369
}
367370

368371
// Signal Loss & Event Loss
369372
if (doprocessEvtLossSigLossMC) {
370373
hMC.add("ImpactCorr/hImpactParameterGen", "Impact parameter of generated MC events", kTH1F, {impactParAxis});
371374
hMC.add("ImpactCorr/hImpactParameterRec", "Impact parameter of selected MC events", kTH1F, {impactParAxis});
372-
hMC.add("ImpactCorr/hImpactParvsCentrRec", "Impact parameter of selected MC events vs centrality", kTH2F, {{centralityAxis}, impactParAxis});
375+
hMC.add("ImpactCorr/hImpactParvsCentrRec", "Impact parameter of selected MC events vs centrality", kTH2F, {centralityAxis, impactParAxis});
373376
hMC.add("ImpactCorr/hKstarGenBeforeEvtSel", "K*0 before event selections", kTH2F, {ptAxis, impactParAxis});
374377
hMC.add("ImpactCorr/hKstarGenAfterEvtSel", "K*0 after event selections", kTH2F, {ptAxis, impactParAxis});
375378
}
@@ -905,6 +908,7 @@ struct Kstar892LightIon {
905908
//*********Varibles declaration***************
906909
float centrality{-1.0}, theta2;
907910
ROOT::Math::PxPyPzMVector daughter1, daughter2, daughterRot, mother, motherRot;
911+
double genMass, recMass, recpt;
908912
bool isMix = false;
909913

910914
template <typename T1, typename T2>
@@ -1870,14 +1874,22 @@ struct Kstar892LightIon {
18701874

18711875
mother = daughter1 + daughter2; // Kstar meson
18721876

1873-
hMC.fill(HIST("Rec/h2KstarRecpt2"), mothertrack1.pt(), centrality, std::sqrt(mothertrack1.e() * mothertrack1.e() - mothertrack1.p() * mothertrack1.p()));
1874-
18751877
if (mother.Rapidity() < selectionConfig.motherRapidityMin || mother.Rapidity() > selectionConfig.motherRapidityMax) {
18761878
continue;
18771879
}
18781880

1879-
hMC.fill(HIST("Rec/h1KstarRecMass"), mother.M());
1880-
hMC.fill(HIST("Rec/h2KstarRecpt1"), mother.Pt(), centrality, mother.M());
1881+
genMass = std::sqrt(mothertrack1.e() * mothertrack1.e() - mothertrack1.p() * mothertrack1.p());
1882+
recMass = mother.M();
1883+
recpt = mother.Pt();
1884+
1885+
hMC.fill(HIST("Rec/hMassShiftGen"), mothertrack1.pt(), recpt, recMass - genMass);
1886+
hMC.fill(HIST("Rec/hMassShiftPDG"), mothertrack1.pt(), recpt, recMass - 0.8955);
1887+
1888+
hMC.fill(HIST("Rec/h2KstarRecpt2"), mothertrack1.pt(), centrality, genMass);
1889+
1890+
hMC.fill(HIST("Rec/h1KstarRecMass"), recMass);
1891+
1892+
hMC.fill(HIST("Rec/h2KstarRecpt1"), recpt, centrality, recMass);
18811893
}
18821894
}
18831895
}

0 commit comments

Comments
 (0)