![]() |
ATLAS Offline Software
|
GenData is a class for particle data access. More...
#include <GenData.h>
Classes | |
| struct | ParticleInfo |
Public Member Functions | |
| GenData () | |
| GenData (const std::string &sname, const std::string &name) | |
| virtual | ~GenData ()=default |
| std::optional< double > | particleMass (int pdgId) const |
| Get the mass of a particle by PDG ID. | |
| std::optional< double > | particleLifetime (int pdgId) const |
| Get the lifetime of a particle by PDG ID. | |
| std::optional< std::string > | particleName (int pdgId) const |
| Get the name of a particle by PDG ID. | |
Private Member Functions | |
| ParticleInfo | particleInfo (int absPid) const |
Private Attributes | |
| std::string | m_service_name {"PartPropSvc"} |
| Handle on the particle property service. | |
| std::string | m_name {"GenData"} |
| ServiceHandle< IPartPropSvc > | m_ppSvc |
| std::atomic< bool > | m_initialized {false} |
| GenData::GenData | ( | ) |
Definition at line 15 of file GenData.cxx.
Definition at line 17 of file GenData.cxx.
|
virtualdefault |
|
private |
Definition at line 19 of file GenData.cxx.
| std::optional< double > GenData::particleLifetime | ( | int | pdgId | ) | const |
| std::optional< double > GenData::particleMass | ( | int | pdgId | ) | const |
| std::optional< std::string > GenData::particleName | ( | int | pdgId | ) | const |
|
mutableprivate |
|
private |
|
private |
|
private |