From dfee2c466743f47c00e7f03c67332550fcaba0c9 Mon Sep 17 00:00:00 2001 From: Horoho Date: Tue, 5 Dec 2023 12:29:03 -0800 Subject: [PATCH] Changed hard_thresh value assignment from int to float --- DQM/src/DQM/SampleValidation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DQM/src/DQM/SampleValidation.cxx b/DQM/src/DQM/SampleValidation.cxx index a03652c66..7c48f01aa 100644 --- a/DQM/src/DQM/SampleValidation.cxx +++ b/DQM/src/DQM/SampleValidation.cxx @@ -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) {