Skip to content

Commit

Permalink
Changed hard_thresh value assignment from int to float
Browse files Browse the repository at this point in the history
  • Loading branch information
Horoho authored and horohoo committed Dec 6, 2023
1 parent 6631968 commit dfee2c4
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 @@ -36,7 +36,7 @@ namespace dqm {
if (parent_track_id == 0) {
histograms_.fill("pdgid_primaries", pdgid_label(pdgid));
histograms_.fill("energy_primaries", energy);
hard_thresh = (2500/4000)*energy;
hard_thresh = (2500./4000.)*energy;
primary_daughters = daughters;
for (const ldmx::SimTrackerHit &sphit : targetSPHits) {
if (sphit.getTrackID() == it.first && sphit.getPosition()[2] < 0) {
Expand Down

0 comments on commit dfee2c4

Please sign in to comment.