Skip to content

Commit

Permalink
Merge pull request #1396 from dbenedet/bug_fix_pfalgo
Browse files Browse the repository at this point in the history
Reco Bugfix -- Set Photon ID/vertex information for PFlow selected photons.
  • Loading branch information
ktf committed Nov 18, 2013
2 parents d307483 + ab5491b commit bc4bd34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RecoParticleFlow/PFProducer/src/PFAlgo.cc
Expand Up @@ -754,6 +754,9 @@ void PFAlgo::processBlock( const reco::PFBlockRef& blockref,
reco::PFCandidate::ParticleType particleType = reco::PFCandidate::gamma;
myPFPhoton.setParticleType(particleType);
myPFPhoton.setCharge(0);
myPFPhoton.set_mva_nothing_gamma(1.);
math::XYZPoint v(primaryVertex_.x(), primaryVertex_.y(), primaryVertex_.z());
myPFPhoton.setVertex( v );
myPFPhoton.setP4(gedPhoRef->p4());
if(egmLocalDebug) {
cout << " PFAlgo: found a photon with NEW EGamma code " << endl;
Expand Down

0 comments on commit bc4bd34

Please sign in to comment.