fix: create ions
This commit is contained in:
parent
c7c96ac270
commit
508859d214
@ -19,7 +19,7 @@ public:
|
||||
const G4ParticleGun* GetParticleGun() const { return fParticleGun; };
|
||||
|
||||
private:
|
||||
G4String particleType;
|
||||
G4String particleType = "NULL";
|
||||
G4ParticleGun* fParticleGun = nullptr;
|
||||
};
|
||||
|
||||
|
@ -18,8 +18,6 @@ PrimaryGeneratorAction::PrimaryGeneratorAction() {
|
||||
(DetectorConstruction*)(G4RunManager::GetRunManager()->GetUserDetectorConstruction());
|
||||
|
||||
fParticleGun = new G4ParticleGun();
|
||||
particleType = detConstruction->GetParticleType();
|
||||
DefineParticle(particleType);
|
||||
}
|
||||
|
||||
PrimaryGeneratorAction::~PrimaryGeneratorAction() { delete fParticleGun; }
|
||||
|
Loading…
Reference in New Issue
Block a user