32 #include "SteppingAction.hh"
34 #include "HistoManager.hh"
69 Run* run =
static_cast<Run*
>(
77 GetParticleDefinition()->GetParticleName();
82 if (particleName ==
"opticalphoton") {
108 G4int MAXofPostStepLoops =
119 analysisMan->
FillH1(4, px1);
120 analysisMan->
FillH1(5, py1);
121 analysisMan->
FillH1(6, pz1);
122 }
else if (px1 >= 0.) {
123 analysisMan->
FillH1(7, px1);
124 analysisMan->
FillH1(8, py1);
125 analysisMan->
FillH1(9, pz1);
131 for (
G4int i=0; i<MAXofPostStepLoops; ++i) {
132 G4VProcess* currentProcess = (*postStepDoItVector)[i];
138 analysisMan->
FillH1(3, theStatus);
144 analysisMan->
FillH1(10, px1);
145 analysisMan->
FillH1(11, py1);
146 analysisMan->
FillH1(12, pz1);
261 G4cout <<
"theStatus: " << theStatus
262 <<
" was none of the above." <<
G4endl;
281 for (
G4int i = 0; i < n_proc; ++i) {
282 if ((*proc_vec)[i]->GetProcessName().
compare(
"Cerenkov") == 0) {
284 n_cer = cer->GetNumPhotons();
286 else if ((*proc_vec)[i]->GetProcessName().
compare(
"Scintillation") == 0) {
288 n_scint = scint->GetNumPhotons();
292 if (n_cer > 0 || n_scint > 0) {
293 G4cout <<
"In this step, " << n_cer
294 <<
" Cerenkov and " << n_scint
295 <<
" scintillation photons were produced." <<
G4endl;
300 const std::vector<const G4Track*>* secondaries =
303 for (
auto sec : *secondaries) {
304 if (sec->GetDynamicParticle()->GetParticleDefinition() == opticalphoton){
305 if (sec->GetCreatorProcess()->GetProcessName().compare(
"Cerenkov")==0){
306 G4double en = sec->GetKineticEnergy();
311 else if (sec->GetCreatorProcess()
312 ->GetProcessName().compare(
"Scintillation") == 0) {
313 G4double en = sec->GetKineticEnergy();