Skip to content

Commit 0dc5dc8

Browse files
committed
Make the axis for DCA xy fully configurable
1 parent 6a7efcd commit 0dc5dc8

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎PWGUD/Tasks/ptSpectraInclusiveUpc.cxx‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct PtSpectraInclusiveUpc {
5858
2.2, 2.4, 2.6, 2.8, 3.0, 3.2, 3.4, 3.6, 3.8, 4.0},
5959
"#it{p}_{T} (GeV/#it{c})"};
6060

61-
Configurable<int> nBinsDCAxy{"nBinsDCAxy", 1000, "Number of bins in DCA_{xy} histograms"};
61+
ConfigurableAxis dcaXYaxis{"dcaXYaxis", {1000, -0.6, 0.6}, "DCA_{xy} (cm) binning"};
6262
Configurable<bool> applyKineCutsInGen{"applyKineCutsInGen", false, "Apply kinematic cuts in the generated level"};
6363

6464
Configurable<double> etaMax{"etaMax", 0.9, "Maximum track pseudorapidity"};
@@ -94,9 +94,7 @@ struct PtSpectraInclusiveUpc {
9494
"Event type"};
9595

9696
const AxisSpec axisDCAxy{
97-
nBinsDCAxy,
98-
-0.6,
99-
0.6,
97+
dcaXYaxis,
10098
"DCA_{xy} (cm)"};
10199

102100
// histograms

0 commit comments

Comments
 (0)