Skip to content

Commit e6f0540

Browse files
author
ariffero
committed
Add finer pt binning histo
1 parent 774f932 commit e6f0540

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

PWGUD/Tasks/FwdMuonsUPC.cxx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,20 @@ struct FwdMuonsUPC {
237237
0.60, 0.70, 0.80, 0.90, 1.00, 1.20, 1.40, 1.60, 1.80, 2.00, 2.50,
238238
3.00, 3.50};
239239

240+
std::vector<double> ptFitBinningHalfWidth = {
241+
0.00, 0.005, 0.01, 0.015, 0.02, 0.025, 0.03, 0.035, 0.04, 0.045, 0.05,
242+
0.055, 0.06, 0.065, 0.07, 0.075, 0.08, 0.085, 0.09, 0.095, 0.10,
243+
0.105, 0.11, 0.115, 0.12, 0.125, 0.13, 0.135, 0.14, 0.145, 0.15,
244+
0.1625, 0.175, 0.1875, 0.20, 0.225, 0.25, 0.275, 0.30, 0.35, 0.40,
245+
0.45, 0.50, 0.55, 0.60, 0.65, 0.70, 0.75, 0.80, 0.85, 0.90, 0.95, 1.00,
246+
1.10, 1.20, 1.30, 1.40, 1.50, 1.60, 1.70, 1.80, 1.90, 2.00, 2.25,
247+
2.50, 2.75, 3.00, 3.25, 3.50
248+
};
249+
240250
// axis
241251
const AxisSpec axisPt{nBinsPt, lowPt, highPt, "#it{p}_{T} GeV/#it{c}"};
242252
const AxisSpec axisPtFit = {ptFitBinning, "#it{p}_{T} (GeV/c)"};
253+
const AxisSpec axisPtFit2 = {ptFitBinningHalfWidth, "#it{p}_{T} (GeV/c)"};
243254
const AxisSpec axisMass{nBinsMass, lowMass, highMass, "m_{#mu#mu} GeV/#it{c}^{2}"};
244255
const AxisSpec axisEta{nBinsEta, lowEta, highEta, "#eta"};
245256
const AxisSpec axisRapidity{nBinsRapidity, lowRapidity, highRapidity, "Rapidity"};
@@ -256,6 +267,7 @@ struct FwdMuonsUPC {
256267
registry.add("hMass", "Invariant mass of muon pairs;;#counts", kTH1D, {axisMass});
257268
registry.add("hPt", "Transverse momentum of muon pairs;;#counts", kTH1D, {axisPt});
258269
registry.add("hPtFit", "Transverse momentum of muon pairs;;#counts", kTH1D, {axisPtFit});
270+
registry.add("hPtFit2", "Transverse momentum of muon pairs;;#counts", kTH1D, {axisPtFit2});
259271
registry.add("hEta", "Pseudorapidty of muon pairs;;#counts", kTH1D, {axisEta});
260272
registry.add("hRapidity", "Rapidty of muon pairs;;#counts", kTH1D, {axisRapidity});
261273
registry.add("hPhi", "#varphi of muon pairs;;#counts", kTH1D, {axisPhi});
@@ -314,6 +326,7 @@ struct FwdMuonsUPC {
314326
mcRecoRegistry.add("hMass", "Invariant mass of muon pairs;;#counts", kTH1D, {axisMass});
315327
mcRecoRegistry.add("hPt", "Transverse momentum of muon pairs;;#counts", kTH1D, {axisPt});
316328
mcRecoRegistry.add("hPtFit", "Transverse momentum of muon pairs;;#counts", kTH1D, {axisPtFit});
329+
mcRecoRegistry.add("hPtFit2", "Transverse momentum of muon pairs;;#counts", kTH1D, {axisPtFit2});
317330
mcRecoRegistry.add("hEta", "Pseudorapidty of muon pairs;;#counts", kTH1D, {axisEta});
318331
mcRecoRegistry.add("hRapidity", "Rapidty of muon pairs;;#counts", kTH1D, {axisRapidity});
319332
mcRecoRegistry.add("hPhi", "#varphi of muon pairs;;#counts", kTH1D, {axisPhi});
@@ -615,6 +628,7 @@ struct FwdMuonsUPC {
615628
registry.fill(HIST("hMass"), p.M());
616629
registry.fill(HIST("hPt"), p.Pt());
617630
registry.fill(HIST("hPtFit"), p.Pt());
631+
registry.fill(HIST("hPtFit2"), p.Pt());
618632
registry.fill(HIST("hEta"), p.Eta());
619633
registry.fill(HIST("hRapidity"), p.Rapidity());
620634
registry.fill(HIST("hPhi"), p.Phi());
@@ -812,6 +826,7 @@ struct FwdMuonsUPC {
812826
mcRecoRegistry.fill(HIST("hMass"), p.M());
813827
mcRecoRegistry.fill(HIST("hPt"), p.Pt());
814828
mcRecoRegistry.fill(HIST("hPtFit"), p.Pt());
829+
mcRecoRegistry.fill(HIST("hPtFit2"), p.Pt());
815830
mcRecoRegistry.fill(HIST("hEta"), p.Eta());
816831
mcRecoRegistry.fill(HIST("hRapidity"), p.Rapidity());
817832
mcRecoRegistry.fill(HIST("hPhi"), p.Phi());

0 commit comments

Comments
 (0)