Skip to content

Commit f832fc9

Browse files
committed
Make mass axis configurable
1 parent 63a7c29 commit f832fc9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PWGHF/TableProducer/candidateCreator2Prong.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ struct HfCandidateCreator2Prong {
108108
double bz{0.};
109109

110110
std::shared_ptr<TH1> hCandidates;
111+
112+
ConfigurableAxis axisMass{"axisMass", {500, 1.6, 2.1}, "axis for mass (GeV/c^2)"};
113+
111114
HistogramRegistry registry{"registry"};
112115

113116
void init(InitContext const&)
@@ -140,7 +143,7 @@ struct HfCandidateCreator2Prong {
140143
}
141144

142145
// histograms
143-
registry.add("hMass2", "2-prong candidates;inv. mass (#pi K) (GeV/#it{c}^{2});entries", {HistType::kTH1F, {{500, 1.6, 2.1}}});
146+
registry.add("hMass2", "2-prong candidates;inv. mass (#pi K) (GeV/#it{c}^{2});entries", {HistType::kTH1F, {axisMass}});
144147
registry.add("hCovPVXX", "2-prong candidates;XX element of cov. matrix of prim. vtx. position (cm^{2});entries", {HistType::kTH1F, {{100, 0., 1.e-4}}});
145148
registry.add("hCovSVXX", "2-prong candidates;XX element of cov. matrix of sec. vtx. position (cm^{2});entries", {HistType::kTH1F, {{100, 0., 0.2}}});
146149
registry.add("hCovPVYY", "2-prong candidates;YY element of cov. matrix of prim. vtx. position (cm^{2});entries", {HistType::kTH1F, {{100, 0., 1.e-4}}});

0 commit comments

Comments
 (0)