Hello,I’m new to geant4. Thesedays when I try to change B1 to generate my program, this message occurred:
***** COMMAND NOT FOUND </gun/particle gamma> *****
***** Batch is interrupted!! *****
And I’m certain that the particlegun has been defined.
class PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
public:
PrimaryGeneratorAction();
~PrimaryGeneratorAction() override;
// method from the base class
void GeneratePrimaries(G4Event*) override;
// method to access particle gun
const G4ParticleGun* GetParticleGun() const { return fParticleGun; }
private:
G4ParticleGun* fParticleGun = nullptr; // pointer a to G4 gun class
G4Tubs* fEnvelopeTub = nullptr;
};
What problem may it be ?