1#ifndef EX03_PRIMARY_GENERATOR_H
2#define EX03_PRIMARY_GENERATOR_H
22#include <TVirtualMCApplication.h>
void GeneratePrimary1(const TVector3 &origin)
void GeneratePrimary3(const TVector3 &origin)
TVirtualMCStack * fStack
VMC stack.
virtual void GeneratePrimaries(const TVector3 &worldSize)
Ex03PrimaryGenerator(TVirtualMCStack *stack)
void SetIsRandom(Bool_t isRandomGenerator)
void SetNofPrimaries(Int_t nofPrimaries)
void GeneratePrimary2(const TVector3 &origin)
Bool_t GetUserDecay() const
void GeneratePrimary6(const TVector3 &origin)
void GeneratePrimary5(const TVector3 &origin)
virtual ~Ex03PrimaryGenerator()
Int_t fNofPrimaries
Number of primary particles.
void GeneratePrimary4(const TVector3 &origin)
Type
Predefined primary generators.
@ kTestField
mu+ with a suitable energy to test magnetic field
@ kUserDecay
particle with user defined decay (K0Short)
@ kUser
user defined particle and ion
@ kAnti
light anti-nuclei (with Geant4 only)
@ kPion
pi- ith a suitable energy to test biasing
void SetPrimaryType(Type primaryType)
Ex03PrimaryGenerator(const Ex03PrimaryGenerator &origin, TVirtualMCStack *stack)
Type fPrimaryType
Primary generator selection.
Bool_t fIsRandom
Switch to random generator.