Skip to content

Commit fd57927

Browse files
authored
[PWGHF] Make mass axis configurable in candidateCreator2Prong (#11799)
1 parent 14c70d9 commit fd57927

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&)
@@ -148,7 +151,7 @@ struct HfCandidateCreator2Prong {
148151
}
149152

150153
// histograms
151-
registry.add("hMass2", "2-prong candidates;inv. mass (#pi K) (GeV/#it{c}^{2});entries", {HistType::kTH1F, {{500, 1.6, 2.1}}});
154+
registry.add("hMass2", "2-prong candidates;inv. mass (#pi K) (GeV/#it{c}^{2});entries", {HistType::kTH1F, {axisMass}});
152155
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}}});
153156
registry.add("hCovSVXX", "2-prong candidates;XX element of cov. matrix of sec. vtx. position (cm^{2});entries", {HistType::kTH1F, {{100, 0., 0.2}}});
154157
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)