Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GeneralParticleSourceMessenger.cc File Reference

Go to the source code of this file.

Macros

#define CHECKPG()
 

Macro Definition Documentation

◆ CHECKPG

#define CHECKPG ( )
Value:
{ if (fParticleGun==nullptr) { \
msg << "Command "<< command->GetCommandPath()<<"/";\
msg << command->GetCommandName(); \
msg << " used but no particle sources are set.";\
msg <<" Add at least a source with: /gps/source/add.";\
G4Exception("G4GeneralParticleSourceMessenger::SetNewValue","G4GPS003",\
FatalException,msg); return;\
} }
@ FatalException
std::ostringstream G4ExceptionDescription
Definition: G4Exception.hh:40

Definition at line 680 of file G4GeneralParticleSourceMessenger.cc.