93 G4ProcessManager* processManager = userParticle->GetProcessManager();
99 processManager->AddDiscreteProcess(
new G4PhotoElectricEffect);
100 processManager->AddDiscreteProcess(
new G4ComptonScattering);
101 processManager->AddDiscreteProcess(
new G4GammaConversion);
106 processManager->AddProcess(
new G4eMultipleScattering, -1, 1, 1);
107 processManager->AddProcess(
new G4eIonisation, -1, 2, 2);
108 processManager->AddProcess(
new G4eBremsstrahlung(), -1, 3, 3);
113 "No hadronic processes are built for user defined particles.");
118 processManager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
119 processManager->AddProcess(
new G4hIonisation, -1, 2, 2);
121 "No hadronic processes are built for user defined particles.");
126 processManager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
127 processManager->AddProcess(
new G4MuIonisation, -1, 2, 2);
128 processManager->AddProcess(
new G4MuBremsstrahlung, -1, 3, 3);
129 processManager->AddProcess(
new G4MuPairProduction, -1, 4, 4);
135 case kPTChargedGeantino:
138 case kPTOpticalPhoton:
140 processManager->AddDiscreteProcess(
new G4OpAbsorption());
141 processManager->AddDiscreteProcess(
new G4OpRayleigh());
142 processManager->AddDiscreteProcess(
new G4OpBoundaryProcess());
147 processManager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
148 processManager->AddProcess(
new G4ionIonisation, -1, 2, 2);
150 "No hadronic processes are built for user defined particles.");
159 G4cout <<
"### User particles physics constructed. " << G4endl;
Definition of the TG4ParticlesManager class.
Definition of the TG4UserParticle class.
Definition of the TG4UserParticlesPhysics class.
Provides mapping between TDatabasePDG and Geant4 particles.
TG4UserParticle * GetUserParticle(G4int index) const
G4int GetNofUserParticles() const
static TG4ParticlesManager * Instance()
The class for user particle definition.
TMCParticleType GetMCType() const
Return the particle MC type.
TG4UserParticlesPhysics(const G4String &name="UserParticles")
virtual void ConstructProcess()
Construct physics processes.
virtual ~TG4UserParticlesPhysics()
virtual void ConstructParticle()
Construct particles.