From c16889a9f53626cfab83c326348549391cb52662 Mon Sep 17 00:00:00 2001 From: tomeichlersmith Date: Tue, 3 Oct 2023 11:19:36 -0500 Subject: [PATCH] make sure to weight the histograms by the event weight this does not affect the distribution shapes greatly since the weights are extremely close to exactly 1/B within each sample --- DQM/src/DQM/DarkBremInteraction.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/DQM/src/DQM/DarkBremInteraction.cxx b/DQM/src/DQM/DarkBremInteraction.cxx index c278b8d3b..47e785f9a 100644 --- a/DQM/src/DQM/DarkBremInteraction.cxx +++ b/DQM/src/DQM/DarkBremInteraction.cxx @@ -195,6 +195,7 @@ void DarkBremInteraction::onProcessStart() { * and then use the electron mass to calculate its total energy. */ void DarkBremInteraction::produce(framework::Event& event) { + histograms_.setWeight(event.getEventHeader().getWeight()); const auto& particle_map{event.getMap("SimParticles")}; const ldmx::SimParticle *recoil{nullptr}, *aprime{nullptr}, *beam{nullptr}; for (const auto& [track_id, particle] : particle_map) {