Skip to content

Commit

Permalink
Update AnalysisExample.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii Verbytskyi committed Aug 30, 2024
1 parent 36dc7c3 commit 23686b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ConvertExample/src/AnalysisExample.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void AnalysisExample::write_event(const GenEvent &evt)

void AnalysisExample::close() {
if (!m_stream) return;
if (std::abs(m_sum_of_weights) < std::numeric_limits::epsilon<double>()) m_sum_of_weights = 1.0;
if (std::abs(m_sum_of_weights) < std::numeric_limits<double>::epsilon()) m_sum_of_weights = 1.0;
auto* ofs = dynamic_cast<std::ofstream*>(m_stream);
for (size_t i = 1; i < m_vals["rapidity"].size()-1; i++)
{
Expand Down

0 comments on commit 23686b4

Please sign in to comment.