Skip to content

Commit 0ff872e

Browse files
committed
[PWGEM] LMee: Added variable binning for Eta and Phi in the SingleTrackQC tasks
1 parent c036274 commit 0ff872e

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

PWGEM/Dilepton/Core/SingleTrackQC.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ struct SingleTrackQC {
8282
Configurable<bool> cfgApplyWeightTTCA{"cfgApplyWeightTTCA", false, "flag to apply weighting by 1/N"};
8383

8484
ConfigurableAxis ConfPtlBins{"ConfPtlBins", {VARIABLE_WIDTH, 0.00, 0.05, 0.10, 0.15, 0.20, 0.30, 0.40, 0.50, 0.60, 0.70, 0.80, 0.90, 1.00, 1.10, 1.20, 1.30, 1.40, 1.50, 1.60, 1.70, 1.80, 1.90, 2.00, 2.50, 3.00, 3.50, 4.00, 4.50, 5.00, 6.00, 7.00, 8.00, 9.00, 10.00}, "pTl bins for output histograms"};
85+
ConfigurableAxis ConfEtaBins{"ConfEtaBins", {20, -1, 1}, "eta bins for output histograms"};
86+
ConfigurableAxis ConfPhiBins{"ConfPhiBins", {36, 0, 2 * M_PI}, "phi bins for output histograms"};
8587
ConfigurableAxis ConfDCA3DBins{"ConfDCA3DBins", {VARIABLE_WIDTH, 0.0, 10.0}, "DCA3d bins in sigma for output histograms"};
8688
ConfigurableAxis ConfDCAXYBins{"ConfDCAXYBins", {VARIABLE_WIDTH, -10.0, 10.0}, "DCAxy bins in sigma for output histograms"};
8789
ConfigurableAxis ConfDCAZBins{"ConfDCAZBins", {VARIABLE_WIDTH, -10.0, 10.0}, "DCAz bins in sigma for output histograms"};
@@ -243,8 +245,8 @@ struct SingleTrackQC {
243245

244246
if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron) {
245247
const AxisSpec axis_pt{ConfPtlBins, "p_{T,e} (GeV/c)"};
246-
const AxisSpec axis_eta{20, -1.0, +1.0, "#eta_{e}"};
247-
const AxisSpec axis_phi{36, 0.0, 2 * M_PI, "#varphi_{e} (rad.)"};
248+
const AxisSpec axis_eta{ConfEtaBins, "#eta_{e}"};
249+
const AxisSpec axis_phi{ConfPhiBins, "#varphi_{e} (rad.)"};
248250
const AxisSpec axis_phiposition{36, 0.0, 2 * M_PI, "#varphi_{e}^{*} (rad.)"};
249251
const AxisSpec axis_dca3D{ConfDCA3DBins, "DCA_{e}^{3D} (#sigma)"};
250252
const AxisSpec axis_dcaXY{ConfDCAXYBins, "DCA_{e}^{XY} (#sigma)"};
@@ -293,8 +295,8 @@ struct SingleTrackQC {
293295
fRegistry.addClone("Track/positive/", "Track/negative/");
294296
} else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon) {
295297
const AxisSpec axis_pt{ConfPtlBins, "p_{T,#mu} (GeV/c)"};
296-
const AxisSpec axis_eta{50, -6, -1, "#eta_{#mu}"};
297-
const AxisSpec axis_phi{36, 0, 2 * M_PI, "#varphi_{#mu} (rad.)"};
298+
const AxisSpec axis_eta{ConfEtaBins, "#eta_{#mu}"};
299+
const AxisSpec axis_phi{ConfPhiBins, "#varphi_{#mu} (rad.)"};
298300
const AxisSpec axis_dca{ConfDCAXYBins, "DCA_{#mu}^{XY} (#sigma)"};
299301

300302
// track info

PWGEM/Dilepton/Core/SingleTrackQCMC.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ struct SingleTrackQCMC {
9292
Configurable<bool> cfgRequireTrueAssociation{"cfgRequireTrueAssociation", false, "flag to require true mc collision association"};
9393

9494
ConfigurableAxis ConfPtlBins{"ConfPtlBins", {VARIABLE_WIDTH, 0.00, 0.05, 0.10, 0.15, 0.20, 0.30, 0.40, 0.50, 0.60, 0.70, 0.80, 0.90, 1.00, 1.10, 1.20, 1.30, 1.40, 1.50, 1.60, 1.70, 1.80, 1.90, 2.00, 2.50, 3.00, 3.50, 4.00, 4.50, 5.00, 6.00, 7.00, 8.00, 9.00, 10.00}, "pTl bins for output histograms"};
95+
ConfigurableAxis ConfEtaBins{"ConfEtaBins", {20, -1, 1}, "eta bins for output histograms"};
96+
ConfigurableAxis ConfPhiBins{"ConfPhiBins", {36, 0, 2 * M_PI}, "phi bins for output histograms"};
9597
ConfigurableAxis ConfDCA3DBins{"ConfDCA3DBins", {VARIABLE_WIDTH, 0.0, 10.0}, "DCA3d bins in sigma for output histograms"};
9698
ConfigurableAxis ConfDCAXYBins{"ConfDCAXYBins", {VARIABLE_WIDTH, -10.0, 10.0}, "DCAxy bins in sigma for output histograms"};
9799
ConfigurableAxis ConfDCAZBins{"ConfDCAZBins", {VARIABLE_WIDTH, -10.0, 10.0}, "DCAz bins in sigma for output histograms"};
@@ -250,8 +252,8 @@ struct SingleTrackQCMC {
250252

251253
if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron) {
252254
const AxisSpec axis_pt{ConfPtlBins, "p_{T,e} (GeV/c)"};
253-
const AxisSpec axis_eta{20, -1.0, +1.0, "#eta_{e}"};
254-
const AxisSpec axis_phi{36, 0.0, 2 * M_PI, "#varphi_{e} (rad.)"};
255+
const AxisSpec axis_eta{ConfEtaBins, "#eta_{e}"};
256+
const AxisSpec axis_phi{ConfPhiBins, "#varphi_{e} (rad.)"};
255257
const AxisSpec axis_phiposition{36, 0.0, 2 * M_PI, "#varphi_{e}^{*} (rad.)"};
256258
const AxisSpec axis_charge_gen{3, -1.5, +1.5, "true charge"};
257259
const AxisSpec axis_dca3D{ConfDCA3DBins, "DCA_{e}^{3D} (#sigma)"};
@@ -322,8 +324,8 @@ struct SingleTrackQCMC {
322324
}
323325
} else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon) {
324326
const AxisSpec axis_pt{ConfPtlBins, "p_{T,#mu} (GeV/c)"};
325-
const AxisSpec axis_eta{50, -6, -1, "#eta_{#mu}"};
326-
const AxisSpec axis_phi{36, 0.0, 2 * M_PI, "#varphi_{#mu} (rad.)"};
327+
const AxisSpec axis_eta{ConfEtaBins, "#eta_{#mu}"};
328+
const AxisSpec axis_phi{ConfPhiBins, "#varphi_{#mu} (rad.)"};
327329
const AxisSpec axis_dca{ConfDCAXYBins, "DCA_{#mu}^{XY} (#sigma)"};
328330
const AxisSpec axis_charge_gen{3, -1.5, +1.5, "true charge"};
329331

0 commit comments

Comments
 (0)