19#include "BDSLaserCumulativePhotodetachment.hh"
20#include "BDSPhysicsLaserCumulativePhotodetachment.hh"
23#include "G4AutoDelete.hh"
24#include "G4Electron.hh"
25#include "G4GenericIon.hh"
26#include "G4Hydrogen.hh"
27#include "G4IonTable.hh"
28#include "G4ParticleDefinition.hh"
29#include "G4ProcessManager.hh"
30#include "G4Version.hh"
32BDSPhysicsLaserCumulativePhotodetachment::BDSPhysicsLaserCumulativePhotodetachment():
33 G4VPhysicsConstructor(
"BDSPhysicsLaserCumulativePhotodetachment")
36BDSPhysicsLaserCumulativePhotodetachment::~BDSPhysicsLaserCumulativePhotodetachment()
39void BDSPhysicsLaserCumulativePhotodetachment::ConstructParticle()
41 G4Electron::ElectronDefinition();
42 G4GenericIon::Definition();
43 G4Hydrogen::Definition();
46void BDSPhysicsLaserCumulativePhotodetachment::ConstructProcess()
52 G4AutoDelete::Register(laserCumulativePhotoDetachment);
53#if G4VERSION_NUMBER > 1029
54 auto aParticleIterator = GetParticleIterator();
56 aParticleIterator->reset();
57 G4String name = laserCumulativePhotoDetachment->GetProcessName();
58 while ((*aParticleIterator)())
60 G4ParticleDefinition* particle = aParticleIterator->value();
61 G4double atomic = particle->GetAtomicNumber();
63 if (G4IonTable::IsIon(particle)&&atomic==1)
65 G4ProcessManager* pmanager = particle->GetProcessManager();
66 pmanager->AddDiscreteProcess(laserCumulativePhotoDetachment);
G4bool Activated() const
Get whether this instance has been activated.
void SetActivated()
Flag this instance as activated for later querying.