Import Geant4 11.2.0 source tree
This commit is contained in:
@@ -50,10 +50,10 @@ class F02PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
{
|
||||
public:
|
||||
F02PrimaryGeneratorAction(F02DetectorConstruction*);
|
||||
virtual ~F02PrimaryGeneratorAction();
|
||||
~F02PrimaryGeneratorAction() override;
|
||||
|
||||
public:
|
||||
virtual void GeneratePrimaries(G4Event*);
|
||||
void GeneratePrimaries(G4Event*) override;
|
||||
void SetRndmFlag(G4String val) { fRndmFlag = val; }
|
||||
void SetXVertex(G4double x);
|
||||
void SetYVertex(G4double y);
|
||||
@@ -62,16 +62,17 @@ class F02PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
||||
static G4String GetPrimaryName();
|
||||
|
||||
private:
|
||||
G4ParticleGun* fParticleGun; //pointer a to G4 service class
|
||||
F02DetectorConstruction* fDetector; //pointer to the geometry
|
||||
G4ParticleGun* fParticleGun = nullptr; //pointer a to G4 service class
|
||||
F02DetectorConstruction* fDetector = nullptr; //pointer to the geometry
|
||||
|
||||
F02PrimaryGeneratorMessenger* fGunMessenger; //messenger of this class
|
||||
G4String fRndmFlag; //flag for random impact point
|
||||
F02PrimaryGeneratorMessenger* fGunMessenger = nullptr; //messenger of this class
|
||||
G4String fRndmFlag = "off"; //flag for random impact point
|
||||
|
||||
static G4ParticleDefinition* fgPrimaryParticle;
|
||||
G4double fXVertex, fYVertex, fZVertex;
|
||||
G4bool fVertexDefined;
|
||||
|
||||
G4double fXVertex = 0.;
|
||||
G4double fYVertex = 0.;
|
||||
G4double fZVertex = 0.;
|
||||
G4bool fVertexDefined = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user