Skip to content

Commit

Permalink
change default value and Range
Browse files Browse the repository at this point in the history
  • Loading branch information
mariadalfonso authored and gpetruc committed Oct 27, 2015
1 parent 6fc197e commit 3fb84b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PhysicsTools/PatAlgos/plugins/PATPackedCandidateProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ void pat::PATPackedCandidateProducer::produce(edm::StreamID, edm::Event& iEvent,

// neutrals

if(abs(cand.pdgId()) == 1 || cand.pdgId() == 2 || cand.pdgId() == 130) {
outPtrP->back().setHcalFraction(cand.hcalEnergy()/(cand.ecalEnergy()+cand.hcalEnergy()));
if(abs(cand.pdgId()) == 1 || abs(cand.pdgId()) == 2 || abs(cand.pdgId()) == 130) {
outPtrP->back().setHcalFraction(100*(cand.hcalEnergy()/(cand.ecalEnergy()+cand.hcalEnergy())));
} else {
outPtrP->back().setHcalFraction(-1.);
outPtrP->back().setHcalFraction(0);
}


Expand Down

0 comments on commit 3fb84b3

Please sign in to comment.