51 if( particleDef ==
nullptr )
52 particleDef = G4Electron::Definition();
61 G4cout <<
" ChangeLooperParameters called with particle type "
62 << particleDef->GetParticleName()
63 <<
" transport process: ";
64 if( transport !=
nullptr ) {
65 G4cout << transport->GetProcessName();
67 G4cout <<
" UNKNOWN -- it is neither G4Transportation nor G4CoupledTransportation";
71 if( transport !=
nullptr ) {
74 G4cout <<
"-- Changed Threshold Warning Energy (for loopers) = "
80 G4cout <<
"-- Changed Threshold Important Energy (for loopers) = "
87 G4cout <<
"-- Changed number of Trials (for loopers) = " <<
fNumberOfTrials << G4endl;
91 if( transport ==
nullptr ) {
93 G4cerr <<
" Unknown transport process> Cannot change Warning Energy. " << G4endl;
95 G4cerr <<
" Unknown transport process> Cannot change 'Important' Energy. " << G4endl;
97 G4cerr <<
" Unknown transport process> Cannot change number of trials. " << G4endl;
123 const auto *partPM= particleDef->GetProcessManager();
125 G4VProcess* partTransport = partPM->GetProcess(
"Transportation");
129 partTransport = partPM->GetProcess(
"CoupledTransportation");
130 auto coupledTransport=
132 if( coupledTransport ) {
133 transport= coupledTransport;
135 partTransport = partPM->GetProcess(
"TransportationWithMsc");
136 auto transportWithMsc=
138 if( transportWithMsc ) {
139 transport= transportWithMsc;
144 if( reportError && !transport )
146 G4cerr <<
"Unable to find Transportation process for particle type "
147 << particleDef->GetParticleName()
148 <<
" ( PDG code = " << particleDef->GetPDGEncoding() <<
" ) "