Geant4-11
Namespaces | Macros | Variables
G4GeneralParticleSourceMessenger.cc File Reference
#include "G4GeneralParticleSourceMessenger.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
#include "G4Geantino.hh"
#include "G4ThreeVector.hh"
#include "G4ParticleTable.hh"
#include "G4IonTable.hh"
#include "G4UIdirectory.hh"
#include "G4UIcmdWithoutParameter.hh"
#include "G4UIcmdWithAString.hh"
#include "G4UIcmdWithADoubleAndUnit.hh"
#include "G4UIcmdWith3Vector.hh"
#include "G4UIcmdWith3VectorAndUnit.hh"
#include "G4UIcmdWithAnInteger.hh"
#include "G4UIcmdWithADouble.hh"
#include "G4UIcmdWithABool.hh"
#include "G4ios.hh"
#include "G4Tokenizer.hh"
#include "G4SingleParticleSource.hh"
#include "G4GeneralParticleSource.hh"
#include "G4AutoLock.hh"

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{G4GeneralParticleSourceMessenger.cc}
 

Macros

#define CHECKPG()
 

Variables

G4Mutex anonymous_namespace{G4GeneralParticleSourceMessenger.cc}::creationM = G4MUTEX_INITIALIZER
 
G4GeneralParticleSourceMessengeranonymous_namespace{G4GeneralParticleSourceMessenger.cc}::theInstance = nullptr
 

Macro Definition Documentation

◆ CHECKPG

#define CHECKPG ( )
Value:
{ if (fParticleGun==nullptr) { \
G4ExceptionDescription msg; \
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

Definition at line 681 of file G4GeneralParticleSourceMessenger.cc.