Skip to content

Commit

Permalink
Stupid bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalbos committed Mar 1, 2017
1 parent c706ab1 commit 729c305
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gastpc/apps/GasTPCPseudoReco.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -329,16 +329,18 @@ int main(int argc, char** argv)
dst::Momentum[track_num][1] = p.first->GetInitialMomentum().GetY();
dst::Momentum[track_num][2] = p.first->GetInitialMomentum().GetZ();

if (p.second->GetPDGCode() != 0) {
dst::RecoTrack[track_num] = 0;
}
else {
if (p.second->GetPDGCode() != 0) { // Reconstructed particle
dst::RecoTrack[track_num] = 1;
dst::Pdg_reco[track_num] = p.second->GetPDGCode();
dst::Momentum_reco[track_num][0] = p.second->GetInitialMomentum().GetX();
dst::Momentum_reco[track_num][1] = p.second->GetInitialMomentum().GetY();
dst::Momentum_reco[track_num][2] = p.second->GetInitialMomentum().GetZ();
}
else {
dst::RecoTrack[track_num] = 0;
}

++track_num;
}

tree->Fill();
Expand Down

0 comments on commit 729c305

Please sign in to comment.