50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
// This code implementation is the intellectual property of
|
|
// the GEANT4 collaboration.
|
|
//
|
|
// By copying, distributing or modifying the Program (or any work
|
|
// based on the Program) you indicate your acceptance of this statement,
|
|
// and all its terms.
|
|
//
|
|
// $Id: AnaEx01PrimaryGeneratorAction.hh,v 1.1.1.1 2000/09/14 11:37:21 barrand Exp $
|
|
// GEANT4 tag $Name: geant4-03-01 $
|
|
//
|
|
//
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|
|
|
#ifndef AnaEx01PrimaryGeneratorAction_h
|
|
#define AnaEx01PrimaryGeneratorAction_h 1
|
|
|
|
#include "G4VUserPrimaryGeneratorAction.hh"
|
|
#include "globals.hh"
|
|
|
|
class G4ParticleGun;
|
|
class G4Event;
|
|
class AnaEx01DetectorConstruction;
|
|
class AnaEx01PrimaryGeneratorMessenger;
|
|
|
|
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
|
|
|
class AnaEx01PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
|
{
|
|
public:
|
|
AnaEx01PrimaryGeneratorAction(AnaEx01DetectorConstruction*);
|
|
~AnaEx01PrimaryGeneratorAction();
|
|
|
|
public:
|
|
void GeneratePrimaries(G4Event*);
|
|
void SetRndmFlag(G4String val) { rndmFlag = val;}
|
|
|
|
private:
|
|
G4ParticleGun* particleGun; //pointer a to G4 service class
|
|
AnaEx01DetectorConstruction* AnaEx01Detector; //pointer to the geometry
|
|
|
|
AnaEx01PrimaryGeneratorMessenger* gunMessenger; //messenger of this class
|
|
G4String rndmFlag; //flag for a random impact point
|
|
};
|
|
|
|
#endif
|
|
|
|
|