Skip to content

Commit

Permalink
Merge pull request #22071 from felicepantaleo/fix-correctedenergy-neu…
Browse files Browse the repository at this point in the history
…tral

HGCal - use calibrated energy for candidates from neutral hadrons
  • Loading branch information
cmsbuild authored Feb 6, 2018
2 parents 70ed86c + 93c9c4d commit c09097a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RecoParticleFlow/PFSimProducer/plugins/SimPFProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ void SimPFProducer::produce(edm::StreamID, edm::Event& evt, const edm::EventSetu
default:
part_type = reco::PFCandidate::h0;
}
const auto three_mom = (ref->position() - math::XYZPoint(0,0,0)).unit()*ref->energy();
math::XYZTLorentzVector clu_p4(three_mom.x(),three_mom.y(),three_mom.z(),ref->energy());
const auto three_mom = (ref->position() - math::XYZPoint(0,0,0)).unit()*ref->correctedEnergy();
math::XYZTLorentzVector clu_p4(three_mom.x(),three_mom.y(),three_mom.z(),ref->correctedEnergy());
candidates->emplace_back(0, clu_p4, part_type);
auto& candidate = candidates->back();
candidate.addElementInBlock(blref,elem.index());
Expand Down

0 comments on commit c09097a

Please sign in to comment.