Medtech/include/MedtechPrimaryGeneratorActi...

33 lines
819 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"
class MedtechPrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction
{
public:
MedtechPrimaryGeneratorAction();
virtual ~MedtechPrimaryGeneratorAction();
virtual void GeneratePrimaries(G4Event* anEvent);
// method to access particle gun
const G4ParticleGun* GetParticleGun() const { return particleGun; }
private:
G4ParticleGun *particleGun;
};
#endif /* MedtechPrimaryGeneratorAction_hh */