Skip to content

Commit

Permalink
Merge pull request #286 from GENIE-MC/develop/StorePi0DecayGST
Browse files Browse the repository at this point in the history
Change GST format to store photons from pi0 decay
  • Loading branch information
mroda88 authored Jun 22, 2023
2 parents 48b839d + cc4c2fe commit dacb7e4
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/Apps/gNtpConv.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,7 @@ void ConvertToGST(void)
if (pdgc == kPdgGamma || pdgc == kPdgElectron || pdgc == kPdgPositron) {
int igmom = p->FirstMother();
if(igmom!=-1) {
// only count e+'s e-'s or gammas not from decay of pi0
if(event.Particle(igmom)->Pdg() != kPdgPi0) { final_had_syst.push_back(ip); }
final_had_syst.push_back(ip);
}
} else {
final_had_syst.push_back(ip);
Expand All @@ -809,17 +808,6 @@ void ConvertToGST(void)
LOG( "gntpc", pDEBUG ) << "Adding pdg code " << ip << " to FS hadronic system";
final_had_syst.push_back(ip);
}
// now add pi0's that were decayed as short lived particles
else if(pdgc == kPdgPi0){
int ifd = p->FirstDaughter();
if ( ifd != -1 ) {
int fd_pdgc = event.Particle(ifd)->Pdg();
// just require that first daughter is one of gamma, e+ or e-
if(fd_pdgc == kPdgGamma || fd_pdgc == kPdgElectron || fd_pdgc == kPdgPositron){
final_had_syst.push_back(ip);
}
}
}
}//particle-loop

if( count(final_had_syst.begin(), final_had_syst.end(), -1) > 0) {
Expand Down

0 comments on commit dacb7e4

Please sign in to comment.