ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrimaryGeneratorAction2 Class Reference

#include <geant4/tree/geant4-10.6-release/examples/extended/eventgenerator/particleGun/include/PrimaryGeneratorAction2.hh>

+ Collaboration diagram for PrimaryGeneratorAction2:

Public Member Functions

 PrimaryGeneratorAction2 (G4ParticleGun *)
 
 ~PrimaryGeneratorAction2 ()
 
void GeneratePrimaries (G4Event *)
 
G4double RejectAccept ()
 
G4double InverseCumul ()
 

Private Member Functions

void InitFunction ()
 

Private Attributes

G4ParticleGunfParticleGun
 
G4int fNPoints
 
std::vector< G4doublefX
 
std::vector< G4doublefY
 
std::vector< G4doublefSlp
 
std::vector< G4doublefYC
 
G4double fYmax
 

Detailed Description

Definition at line 46 of file PrimaryGeneratorAction2.hh.

View newest version in sPHENIX GitHub at line 46 of file PrimaryGeneratorAction2.hh

Constructor & Destructor Documentation

PrimaryGeneratorAction2::PrimaryGeneratorAction2 ( G4ParticleGun gun)

Definition at line 47 of file PrimaryGeneratorAction2.cc.

View newest version in sPHENIX GitHub at line 47 of file PrimaryGeneratorAction2.cc

References InitFunction().

+ Here is the call graph for this function:

PrimaryGeneratorAction2::~PrimaryGeneratorAction2 ( )

Definition at line 57 of file PrimaryGeneratorAction2.cc.

View newest version in sPHENIX GitHub at line 57 of file PrimaryGeneratorAction2.cc

Member Function Documentation

void PrimaryGeneratorAction2::GeneratePrimaries ( G4Event anEvent)

Definition at line 62 of file PrimaryGeneratorAction2.cc.

View newest version in sPHENIX GitHub at line 62 of file PrimaryGeneratorAction2.cc

References dir, energy, fParticleGun, G4UniformRand, G4ParticleGun::GeneratePrimaryVertex(), InverseCumul(), G4ParticleGun::SetParticleEnergy(), G4ParticleGun::SetParticleMomentumDirection(), and twopi.

+ Here is the call graph for this function:

void PrimaryGeneratorAction2::InitFunction ( )
private

Definition at line 84 of file PrimaryGeneratorAction2.cc.

View newest version in sPHENIX GitHub at line 84 of file PrimaryGeneratorAction2.cc

References fNPoints, fSlp, fX, fY, fYC, fYmax, keV, and xx.

Referenced by PrimaryGeneratorAction2().

+ Here is the caller graph for this function:

G4double PrimaryGeneratorAction2::InverseCumul ( )

Definition at line 147 of file PrimaryGeneratorAction2.cc.

View newest version in sPHENIX GitHub at line 147 of file PrimaryGeneratorAction2.cc

References a, b, c, Acts::Test::delta, fNPoints, fSlp, fX, fY, fYC, G4UniformRand, and sign().

Referenced by GeneratePrimaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4double PrimaryGeneratorAction2::RejectAccept ( )

Definition at line 125 of file PrimaryGeneratorAction2.cc.

View newest version in sPHENIX GitHub at line 125 of file PrimaryGeneratorAction2.cc

References fNPoints, fSlp, fX, fY, fYmax, and G4UniformRand.

Member Data Documentation

G4int PrimaryGeneratorAction2::fNPoints
private

Definition at line 62 of file PrimaryGeneratorAction2.hh.

View newest version in sPHENIX GitHub at line 62 of file PrimaryGeneratorAction2.hh

Referenced by InitFunction(), InverseCumul(), and RejectAccept().

G4ParticleGun* PrimaryGeneratorAction2::fParticleGun
private

Definition at line 60 of file PrimaryGeneratorAction2.hh.

View newest version in sPHENIX GitHub at line 60 of file PrimaryGeneratorAction2.hh

Referenced by GeneratePrimaries().

std::vector<G4double> PrimaryGeneratorAction2::fSlp
private

Definition at line 65 of file PrimaryGeneratorAction2.hh.

View newest version in sPHENIX GitHub at line 65 of file PrimaryGeneratorAction2.hh

Referenced by InitFunction(), InverseCumul(), and RejectAccept().

std::vector<G4double> PrimaryGeneratorAction2::fX
private

Definition at line 63 of file PrimaryGeneratorAction2.hh.

View newest version in sPHENIX GitHub at line 63 of file PrimaryGeneratorAction2.hh

Referenced by InitFunction(), InverseCumul(), and RejectAccept().

std::vector<G4double> PrimaryGeneratorAction2::fY
private

Definition at line 64 of file PrimaryGeneratorAction2.hh.

View newest version in sPHENIX GitHub at line 64 of file PrimaryGeneratorAction2.hh

Referenced by InitFunction(), InverseCumul(), and RejectAccept().

std::vector<G4double> PrimaryGeneratorAction2::fYC
private

Definition at line 66 of file PrimaryGeneratorAction2.hh.

View newest version in sPHENIX GitHub at line 66 of file PrimaryGeneratorAction2.hh

Referenced by InitFunction(), and InverseCumul().

G4double PrimaryGeneratorAction2::fYmax
private

Definition at line 67 of file PrimaryGeneratorAction2.hh.

View newest version in sPHENIX GitHub at line 67 of file PrimaryGeneratorAction2.hh

Referenced by InitFunction(), and RejectAccept().


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