Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
EinarElen authored and tomeichlersmith committed Nov 29, 2023
1 parent 4c31e10 commit c7b9deb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions DQM/src/DQM/SimObjects.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void SimObjects::configure(framework::config::Parameters& ps) {

void SimObjects::onProcessStart() {
getHistoDirectory();
std::vector<std::string> labels = {
std::vector<std::string> creator_process_labels = {
"Unknown", // 0: Unknown
"e+ e- -> γγ", // 1: annihil
"γ e -> γ e", // 2: compt
Expand Down Expand Up @@ -82,10 +82,11 @@ void SimObjects::onProcessStart() {
histograms_.create("pn_child.children", "Track IDs of Children", 100, 0,
1000);

auto hist { histograms_.get("SimParticles.process") }
for (int i{0}; i < labels.size(); ++i) {
const auto& label{labels[i]};
hist->GetXaxis()->SetBinLabel(i, label.c_str());
// Add bin labels to category plots
auto hist{histograms_.get("SimParticles.process")};
for (int i{0}; i < creator_process_labels.size(); ++i) {
const auto& label{creator_process_labels[i]};
hist->GetXaxis()->SetBinLabel(i + 1, label.c_str());
}
}

Expand Down

0 comments on commit c7b9deb

Please sign in to comment.