Skip to content

Commit f35e689

Browse files
committed
[PWGJE] Jet Finder
* Changed THnSparse to THnD from THnC When used in an analysis train the THnC overflows, resulting in negative entries (see attached figure). This is likely due ot the fact that the bin content is stored in a char, rather than a float/double. Changing this should fix the issue. This histogram is used only for V0 jet analyses, so this change affects no other jet work.
1 parent f7f3381 commit f35e689

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PWGJE/JetFinders/jetFinder.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ struct JetFinderTask {
157157
double jetPtMaxDouble = static_cast<double>(jetPtMaxInt);
158158

159159
if (fillTHnSparse) {
160-
registry.add("hJet", "sparse for data or mcd jets", {HistType::kTHnC, {{jetRadiiBins, ""}, {jetPtBinNumber, jetPtMinDouble, jetPtMaxDouble}, {40, -1.0, 1.0}, {18, 0.0, 7.0}}});
161-
registry.add("hJetEWS", "sparse for data or mcd event-wise subtracted jets", {HistType::kTHnC, {{jetRadiiBins, ""}, {jetPtBinNumber, jetPtMinDouble, jetPtMaxDouble}, {40, -1.0, 1.0}, {18, 0.0, 7.0}}});
162-
registry.add("hJetMCP", "sparse for mcp jets", {HistType::kTHnC, {{jetRadiiBins, ""}, {jetPtBinNumber, jetPtMinDouble, jetPtMaxDouble}, {40, -1.0, 1.0}, {18, 0.0, 7.0}}});
160+
registry.add("hJet", "sparse for data or mcd jets", {HistType::kTHnD, {{jetRadiiBins, ""}, {jetPtBinNumber, jetPtMinDouble, jetPtMaxDouble}, {40, -1.0, 1.0}, {18, 0.0, 7.0}}});
161+
registry.add("hJetEWS", "sparse for data or mcd event-wise subtracted jets", {HistType::kTHnD, {{jetRadiiBins, ""}, {jetPtBinNumber, jetPtMinDouble, jetPtMaxDouble}, {40, -1.0, 1.0}, {18, 0.0, 7.0}}});
162+
registry.add("hJetMCP", "sparse for mcp jets", {HistType::kTHnD, {{jetRadiiBins, ""}, {jetPtBinNumber, jetPtMinDouble, jetPtMaxDouble}, {40, -1.0, 1.0}, {18, 0.0, 7.0}}});
163163
}
164164
}
165165

0 commit comments

Comments
 (0)