Analysis Software
Documentation for sPHENIX simulation software
|
Functions | |
SimParticle | particle (const HepMC3::ConstGenParticlePtr &particle) |
Returns the particle translated into Acts. | |
int | id (const std::shared_ptr< HepMC3::GenParticle > &particle) |
Returns the id of the particle translated into Acts. | |
std::unique_ptr< SimVertex > | productionVertex (const std::shared_ptr< HepMC3::GenParticle > &particle) |
Returns the production vertex of the particle translated into Acts. | |
std::unique_ptr< SimVertex > | endVertex (const std::shared_ptr< HepMC3::GenParticle > &particle) |
Returns the end vertex of the particle translated into Acts. | |
int | pdgID (const std::shared_ptr< HepMC3::GenParticle > &particle) |
Returns the PDG code of a particle translated into Acts. | |
Acts::Vector3 | momentum (const std::shared_ptr< HepMC3::GenParticle > &particle) |
Returns the momentum of a particle translated into Acts. | |
double | energy (const std::shared_ptr< HepMC3::GenParticle > &particle) |
Returns the energy of a particle translated into Acts. | |
double | mass (const std::shared_ptr< HepMC3::GenParticle > &particle) |
Returns the mass of a particle translated into Acts. | |
double | charge (const std::shared_ptr< HepMC3::GenParticle > &particle) |
Returns the charge of a particle translated into Acts. | |
void | pdgID (const std::shared_ptr< HepMC3::GenParticle > &particle, const int pid) |
Sets the PDG code of a particle translated from Acts. | |
void | momentum (const std::shared_ptr< HepMC3::GenParticle > &particle, const Acts::Vector3 &mom) |
Sets the momentum of a particle translated from Acts. | |
void | energy (const std::shared_ptr< HepMC3::GenParticle > &particle, const double energy) |
Sets the energy of a particle translated from Acts. | |
void | mass (const std::shared_ptr< HepMC3::GenParticle > &particle, const double mass) |
Sets the mass of a particle translated from Acts. | |
double ActsExamples::HepMC3Particle::charge | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle | ) |
Returns the charge of a particle translated into Acts.
particle | HepMC3::GenParticle particle |
Definition at line 81 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 81 of file HepMC3Particle.cpp
References Acts::findCharge().
std::unique_ptr< ActsExamples::SimVertex > ActsExamples::HepMC3Particle::endVertex | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle | ) |
Returns the end vertex of the particle translated into Acts.
particle | HepMC3::GenParticle particle |
Definition at line 46 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 46 of file HepMC3Particle.cpp
References ActsExamples::HepMC3Vertex::processVertex().
double ActsExamples::HepMC3Particle::energy | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle | ) |
Returns the energy of a particle translated into Acts.
particle | HepMC3::GenParticle particle |
Definition at line 71 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 71 of file HepMC3Particle.cpp
void ActsExamples::HepMC3Particle::energy | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle, |
const double | energy | ||
) |
Sets the energy of a particle translated from Acts.
particle | HepMC3::GenParticle particle |
energy | energy that will be set |
Definition at line 99 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 99 of file HepMC3Particle.cpp
References energy.
int ActsExamples::HepMC3Particle::id | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle | ) |
Returns the id of the particle translated into Acts.
particle | HepMC3::GenParticle particle |
Definition at line 28 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 28 of file HepMC3Particle.cpp
double ActsExamples::HepMC3Particle::mass | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle | ) |
Returns the mass of a particle translated into Acts.
particle | HepMC3::GenParticle particle |
Definition at line 76 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 76 of file HepMC3Particle.cpp
void ActsExamples::HepMC3Particle::mass | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle, |
const double | mass | ||
) |
Sets the mass of a particle translated from Acts.
particle | HepMC3::GenParticle particle |
mass | mass that will be set |
Definition at line 106 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 106 of file HepMC3Particle.cpp
Acts::Vector3 ActsExamples::HepMC3Particle::momentum | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle | ) |
Returns the momentum of a particle translated into Acts.
particle | HepMC3::GenParticle particle |
Definition at line 62 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 62 of file HepMC3Particle.cpp
void ActsExamples::HepMC3Particle::momentum | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle, |
const Acts::Vector3 & | mom | ||
) |
Sets the momentum of a particle translated from Acts.
particle | HepMC3::GenParticle particle |
mom | momentum that will be set |
Definition at line 92 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 92 of file HepMC3Particle.cpp
ActsExamples::SimParticle ActsExamples::HepMC3Particle::particle | ( | const HepMC3::ConstGenParticlePtr & | particle | ) |
Returns the particle translated into Acts.
particle | HepMC3::GenParticle particle |
Definition at line 14 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 14 of file HepMC3Particle.cpp
References Acts::findCharge(), pdg, ActsFatras::Particle::setAbsoluteMomentum(), ActsFatras::Particle::setDirection(), and ActsFatras::Barcode::setParticle().
Referenced by ActsExamples::HepMCProcessExtractor::execute().
int ActsExamples::HepMC3Particle::pdgID | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle | ) |
Returns the PDG code of a particle translated into Acts.
particle | HepMC3::GenParticle particle |
Definition at line 57 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 57 of file HepMC3Particle.cpp
void ActsExamples::HepMC3Particle::pdgID | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle, |
const int | pid | ||
) |
Sets the PDG code of a particle translated from Acts.
particle | HepMC3::GenParticle particle |
pid | PDG code that will be set |
Definition at line 87 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 87 of file HepMC3Particle.cpp
std::unique_ptr< ActsExamples::SimVertex > ActsExamples::HepMC3Particle::productionVertex | ( | const std::shared_ptr< HepMC3::GenParticle > & | particle | ) |
Returns the production vertex of the particle translated into Acts.
particle | HepMC3::GenParticle particle |
Definition at line 34 of file HepMC3Particle.cpp.
View newest version in sPHENIX GitHub at line 34 of file HepMC3Particle.cpp
References ActsExamples::HepMC3Vertex::processVertex().