2018-04-02 23:18:32 +02:00
|
|
|
//
|
|
|
|
// MedtechPrimaryGeneratorAction.hh
|
|
|
|
// medtech
|
|
|
|
//
|
|
|
|
// Created by Baranyai David on 2018. 04. 01..
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef MedtechPrimaryGeneratorAction_hh
|
|
|
|
#define MedtechPrimaryGeneratorAction_hh
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "G4VUserPrimaryGeneratorAction.hh"
|
|
|
|
#include "G4SystemOfUnits.hh"
|
|
|
|
#include "G4Types.hh"
|
|
|
|
#include "G4ParticleGun.hh"
|
|
|
|
#include "G4ParticleTable.hh"
|
|
|
|
#include "G4ThreeVector.hh"
|
2018-04-03 00:50:20 +02:00
|
|
|
#include "Parameters.hh"
|
2018-04-02 23:18:32 +02:00
|
|
|
|
|
|
|
class MedtechPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
MedtechPrimaryGeneratorAction();
|
2018-04-03 00:50:20 +02:00
|
|
|
MedtechPrimaryGeneratorAction(int energy);
|
2018-04-02 23:18:32 +02:00
|
|
|
virtual ~MedtechPrimaryGeneratorAction();
|
|
|
|
virtual void GeneratePrimaries(G4Event* anEvent);
|
|
|
|
|
|
|
|
// method to access particle gun
|
|
|
|
const G4ParticleGun* GetParticleGun() const { return particleGun; }
|
|
|
|
private:
|
|
|
|
G4ParticleGun *particleGun;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* MedtechPrimaryGeneratorAction_hh */
|