EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::ParametricParticleGenerator Class Reference

#include <acts/blob/sPHENIX/Examples/Algorithms/Generators/ActsExamples/Generators/ParametricParticleGenerator.hpp>

+ Collaboration diagram for ActsExamples::ParametricParticleGenerator:

Classes

struct  Config
 

Public Member Functions

 ParametricParticleGenerator (const Config &cfg)
 
SimParticleContainer operator() (RandomEngine &rng) const
 Generate a single primary vertex with the given number of particles.
 

Private Attributes

Config m_cfg
 
double m_charge
 
double m_mass
 

Detailed Description

Generate particles from uniform parameter distributions.

Generates a single process vertex with the given number of tracks. Each track's momentum and direction is drawn from uniform parameter distributions. Position and time are always set to zero.

Definition at line 27 of file ParametricParticleGenerator.hpp.

View newest version in sPHENIX GitHub at line 27 of file ParametricParticleGenerator.hpp

Constructor & Destructor Documentation

ActsExamples::ParametricParticleGenerator::ParametricParticleGenerator ( const Config cfg)

Definition at line 16 of file ParametricParticleGenerator.cpp.

View newest version in sPHENIX GitHub at line 16 of file ParametricParticleGenerator.cpp

Member Function Documentation

ActsExamples::SimParticleContainer ActsExamples::ParametricParticleGenerator::operator() ( RandomEngine rng) const

Generate a single primary vertex with the given number of particles.

Definition at line 23 of file ParametricParticleGenerator.cpp.

View newest version in sPHENIX GitHub at line 23 of file ParametricParticleGenerator.cpp

References cos(), Acts::Test::d0Dist(), Acts::VectorHelpers::eta(), Acts::Test::etaDist(), ip(), Acts::makeDirectionUnitFromPhiEta(), particle, pdg, phi, Acts::Test::phiDist(), pid, ActsFatras::Particle::setAbsMomentum(), ActsFatras::Particle::setDirection(), ActsFatras::Barcode::setParticle(), ActsFatras::Particle::setPosition4(), Acts::UnitConstants::u, and Acts::Test::z0Dist().

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::ParametricParticleGenerator::m_cfg
private

Definition at line 57 of file ParametricParticleGenerator.hpp.

View newest version in sPHENIX GitHub at line 57 of file ParametricParticleGenerator.hpp

double ActsExamples::ParametricParticleGenerator::m_charge
private

Definition at line 59 of file ParametricParticleGenerator.hpp.

View newest version in sPHENIX GitHub at line 59 of file ParametricParticleGenerator.hpp

double ActsExamples::ParametricParticleGenerator::m_mass
private

Definition at line 60 of file ParametricParticleGenerator.hpp.

View newest version in sPHENIX GitHub at line 60 of file ParametricParticleGenerator.hpp


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