G4DarkBreM  v2.1.0
Geant4 Dark Bremmstrahlung from MadGraph
g4db::example::LeptonBeam Class Reference

the primary generator, a simple particle gun restricted to electrons or muons along the z axis More...

Inheritance diagram for g4db::example::LeptonBeam:
[legend]
Collaboration diagram for g4db::example::LeptonBeam:
[legend]

Public Member Functions

 LeptonBeam (double e, bool muons)
 Configure the beam to be of the input energy and lepton. More...
 
void GeneratePrimaries (G4Event *event) final override
 Start an event by providing primaries. More...
 

Private Attributes

G4ParticleGun gun_
 the gun we use for the beam
 

Detailed Description

the primary generator, a simple particle gun restricted to electrons or muons along the z axis

Constructor & Destructor Documentation

◆ LeptonBeam()

g4db::example::LeptonBeam::LeptonBeam ( double  e,
bool  muons 
)
inline

Configure the beam to be of the input energy and lepton.

Shoot along the z axis, the energy is in GeV and we shoot from the origin.

Member Function Documentation

◆ GeneratePrimaries()

void g4db::example::LeptonBeam::GeneratePrimaries ( G4Event *  event)
inlinefinaloverride

Start an event by providing primaries.

We also construct the OutgoingKinematics structure for this event


The documentation for this class was generated from the following file: