Skip to content

Commit

Permalink
make sure to weight the histograms by the event weight
Browse files Browse the repository at this point in the history
this does not affect the distribution shapes greatly since the weights
are extremely close to exactly 1/B within each sample
  • Loading branch information
tomeichlersmith committed Oct 3, 2023
1 parent a7a199b commit c16889a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DQM/src/DQM/DarkBremInteraction.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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<int,ldmx::SimParticle>("SimParticles")};
const ldmx::SimParticle *recoil{nullptr}, *aprime{nullptr}, *beam{nullptr};
for (const auto& [track_id, particle] : particle_map) {
Expand Down

0 comments on commit c16889a

Please sign in to comment.