Skip to content

Commit

Permalink
fix bug in charge, also W
Browse files Browse the repository at this point in the history
  • Loading branch information
arizzi committed Mar 28, 2015
1 parent 5df1b54 commit 1c8155f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DataFormats/PatCandidates/interface/PackedCandidate.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace pat {
case 11: return (-1)*(pdgId_>0)+(pdgId_<0); //e
case 13: return (-1)*(pdgId_>0)+(pdgId_<0); //mu
case 15: return (-1)*(pdgId_>0)+(pdgId_<0); //tau
case 24: return (-1)*(pdgId_>0)+(pdgId_<0); //W
case 24: return (pdgId_>0)-(pdgId_<0); //W
default: return 0; //FIXME: charge is not defined
}
}
Expand Down

0 comments on commit 1c8155f

Please sign in to comment.