Skip to content

Commit

Permalink
Add printout of scorer type in SpectrumAnalyzer
Browse files Browse the repository at this point in the history
Explicit printout the variable being scored.
  • Loading branch information
lopezzot committed Sep 4, 2023
1 parent b026a78 commit 39fa93c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SpectrumAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,19 @@ void SpectrumAnalyzer::CreateNtupleAndScorer(const G4String scName)
scorerName = scName;
if (scorerName == "te") {
scorer = GetTE;
G4cout<<"SpectrumAnalyzer scoring total energy"<<G4endl;
}
else if (scorerName == "momentum") {
scorer = GetMomentum;
G4cout<<"SpectrumAnalyzer scoring momentum"<<G4endl;
}
else if (scorerName == "ke") {
scorer = GetKE;
G4cout<<"SpectrumAnalyzer scoring kinetic energy"<<G4endl;
}
else {
scorer = GetTE;
G4cout<<"SpectrumAnalyzer scoring total energy"<<G4endl;
} // default case
}

Expand Down

0 comments on commit 39fa93c

Please sign in to comment.