Commit d3ca6907 authored by Peter Berta's avatar Peter Berta
Browse files

Merge branch 'mhodgkin_fixPFlowMonAlg_Sept2021' into '22.0-mc20'

Bug fix for FPE in PFOMonalg

See merge request !46369
parents d1bfb1b7 8d686ea0
......@@ -122,7 +122,7 @@ StatusCode PFOMonitorAlgorithm::fillHistograms( const EventContext& ctx ) const
eta = pfo->eta();
phi = pfo->phi();
mass= pfo->m();
E = pfo->e();
E = pfo->e();
y = pfo->rapidity();
//float score = bdtPi0Score();
......@@ -152,11 +152,14 @@ StatusCode PFOMonitorAlgorithm::fillHistograms( const EventContext& ctx ) const
}
for (const auto& pfo : *nupfos) {
E = pfo->e();
//some neutral particle flow FlowELement can have their energy set to exactly zero. Will get FPE if
//try to calculate rapidity, so skip these.
if (0 == E) continue;
pT = pfo->pt();
eta = pfo->eta();
phi = pfo->phi();
mass= pfo->m();
E = pfo->e();
mass= pfo->m();
y = pfo->rapidity();
NupT = pfo->pt();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment