18#include "BDSLaserCumulativePhotodetachment.hh"
19#include "BDSPhysicsLaserCumulativePhotodetachment.hh"
22#include "G4AutoDelete.hh"
23#include "G4Electron.hh"
24#include "G4GenericIon.hh"
25#include "G4Hydrogen.hh"
26#include "G4IonTable.hh"
27#include "G4ParticleDefinition.hh"
28#include "G4ProcessManager.hh"
29#include "G4Version.hh"
31BDSPhysicsLaserCumulativePhotodetachment::BDSPhysicsLaserCumulativePhotodetachment():
32 G4VPhysicsConstructor(
"BDSPhysicsLaserCumulativePhotodetachment")
35BDSPhysicsLaserCumulativePhotodetachment::~BDSPhysicsLaserCumulativePhotodetachment()
38void BDSPhysicsLaserCumulativePhotodetachment::ConstructParticle()
40 G4Electron::ElectronDefinition();
41 G4GenericIon::Definition();
42 G4Hydrogen::Definition();
45void BDSPhysicsLaserCumulativePhotodetachment::ConstructProcess()
51 G4AutoDelete::Register(laserCumulativePhotoDetachment);
52#if G4VERSION_NUMBER > 1029
53 auto aParticleIterator = GetParticleIterator();
55 aParticleIterator->reset();
56 G4String name = laserCumulativePhotoDetachment->GetProcessName();
57 while ((*aParticleIterator)())
59 G4ParticleDefinition* particle = aParticleIterator->value();
60 G4double atomic = particle->GetAtomicNumber();
62 if (G4IonTable::IsIon(particle)&&atomic==1)
64 G4ProcessManager* pmanager = particle->GetProcessManager();
65 pmanager->AddDiscreteProcess(laserCumulativePhotoDetachment);
G4bool Activated() const
Get whether this instance has been activated.
void SetActivated()
Flag this instance as activated for later querying.