Skip to content

Commit

Permalink
Use integral rather than entries
Browse files Browse the repository at this point in the history
Use integral rather than entries for topology percentage normalization
  • Loading branch information
jrstevenjlab authored Jan 24, 2022
1 parent f4a652f commit 751282a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AnalysisHowTo/ThrownTopology/plotTopology.C
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void plotTopology() {
TH1F *hThrownTopologies = (TH1F*)f->Get("hThrownTopologies");
hThrownTopologies->GetXaxis()->LabelsOption(">"); // order by most common topology
hThrownTopologies->GetXaxis()->SetRangeUser(0, 10); // only plot first 20 topologies
hThrownTopologies->Scale(100./hThrownTopologies->GetEntries()); // turn histogram into percentage
hThrownTopologies->Scale(100./hThrownTopologies->Integral()); // turn histogram into percentage
hThrownTopologies->GetYaxis()->SetTitle("Thrown Topology %");
hThrownTopologies->Draw("htext");

Expand Down

0 comments on commit 751282a

Please sign in to comment.