Skip to content

Commit 70bf419

Browse files
committed
adding missing particle masses
1 parent c486b29 commit 70bf419

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sbncode/SBNEventWeight/Calculators/Geant4/Geant4WeightCalc.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,11 @@ std::vector<float> Geant4WeightCalc::GetWeight(art::Event& e, size_t itruth ) {
300300

301301
double mass = 0.;
302302
if( TMath::Abs(p_PDG) == 211 ) mass = 139.57;
303+
else if ( p_PDG == 111 ) mass = 134.9768;
303304
else if( p_PDG == 2212 ) mass = 938.28;
305+
else if ( p_PDG == 2112 ) mass = 939.565;
306+
else if ( TMath::Abs(p_PDG) == 321) mass = 493.677;
307+
else if ( p_PDG == 311) mass = 497.61;
304308

305309
// We only want to record weights for one type of particle (defined by fPDG from the fcl file), so skip other particles
306310
if (p_PDG == fPdg){

0 commit comments

Comments
 (0)