Skip to content

Commit

Permalink
Added comment on pdg id label for code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Horoho authored and tomeichlersmith committed Nov 30, 2023
1 parent 97e58cd commit a32b864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DQM/src/DQM/SampleValidation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ namespace dqm {
}

int SampleValidation::pdgid_label(const int pdgid) {
int label = 18;
int label = 18; // initially assign label as "anything else"/overflow value, only change if the pdg id is something of interest
if (pdgid == -11) label = 1; // e+

if (pdgid == 11) label = 2; // e-
Expand Down

0 comments on commit a32b864

Please sign in to comment.