Medtech/include/MedtechPrimaryGeneratorActi...

35 lines
891 B
C++
Raw Normal View History

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"
#include "Parameters.hh"
2018-04-02 23:18:32 +02:00
class MedtechPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
public:
MedtechPrimaryGeneratorAction();
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 */