![]() |
EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Helper struct to convert HepMC3 event to the internal format. More...
#include <acts/blob/sPHENIX/Examples/Io/HepMC3/include/ActsExamples/Plugins/HepMC3/HepMC3Event.hpp>
Public Member Functions | |
| void | momentumUnit (std::shared_ptr< HepMC3::GenEvent > event, const double momentumUnit) |
| Sets new units for momentums. | |
| void | lengthUnit (std::shared_ptr< HepMC3::GenEvent > event, const double lengthUnit) |
| Sets new units for lengths. | |
| void | shiftPositionBy (std::shared_ptr< HepMC3::GenEvent > event, const Acts::Vector3D &deltaPos, const double deltaTime) |
| Shifts the positioning of an event in space and time. | |
| void | shiftPositionTo (std::shared_ptr< HepMC3::GenEvent > event, const Acts::Vector3D &pos, const double time) |
| Shifts the positioning of an event to a paint in space and time. | |
| void | shiftPositionTo (std::shared_ptr< HepMC3::GenEvent > event, const Acts::Vector3D &pos) |
| Shifts the positioning of an event to a paint in space. | |
| void | shiftPositionTo (std::shared_ptr< HepMC3::GenEvent > event, const double time) |
| Shifts the positioning of an event to a paint in time. | |
| void | addParticle (std::shared_ptr< HepMC3::GenEvent > event, std::shared_ptr< SimParticle > particle) |
| Adds a new particle. | |
| void | addVertex (std::shared_ptr< HepMC3::GenEvent > event, const std::shared_ptr< SimVertex > vertex) |
| Adds a new vertex. | |
| void | removeParticle (std::shared_ptr< HepMC3::GenEvent > event, const std::shared_ptr< SimParticle > &particle) |
| Removes a particle from the record. | |
| void | removeVertex (std::shared_ptr< HepMC3::GenEvent > event, const std::shared_ptr< SimVertex > &vertex) |
| Removes a vertex from the record. | |
| double | momentumUnit (const std::shared_ptr< HepMC3::GenEvent > event) |
| Getter of the unit of momentum used. | |
| double | lengthUnit (const std::shared_ptr< HepMC3::GenEvent > event) |
| Getter of the unit of length used. | |
| Acts::Vector3D | eventPos (const std::shared_ptr< HepMC3::GenEvent > event) |
| Getter of the position of the event. | |
| double | eventTime (const std::shared_ptr< HepMC3::GenEvent > event) |
| Getter of the time of the event. | |
| std::vector< std::unique_ptr < SimParticle > > | particles (const std::shared_ptr< HepMC3::GenEvent > event) |
| Get list of particles. | |
| std::vector< std::unique_ptr < SimVertex > > | vertices (const std::shared_ptr< HepMC3::GenEvent > event) |
| Get list of vertices. | |
| std::vector< std::unique_ptr < SimParticle > > | beams (const std::shared_ptr< HepMC3::GenEvent > event) |
| Get beam particles. | |
| std::vector< std::unique_ptr < SimParticle > > | finalState (const std::shared_ptr< HepMC3::GenEvent > event) |
| Get final state particles. | |
Private Member Functions | |
| HepMC3::GenParticlePtr | actsParticleToGen (std::shared_ptr< SimParticle > actsParticle) |
| Converts an SimParticle into HepMC3::GenParticle. | |
| HepMC3::GenVertexPtr | createGenVertex (const std::shared_ptr< SimVertex > &actsVertex) |
| Converts an Acts vertex to a HepMC3::GenVertexPtr. | |
| bool | compareVertices (const std::shared_ptr< SimVertex > &actsVertex, const HepMC3::GenVertexPtr &genVertex) |
| Compares an Acts vertex with a HepMC3::GenVertex. | |
Helper struct to convert HepMC3 event to the internal format.
Definition at line 24 of file HepMC3Event.hpp.
View newest version in sPHENIX GitHub at line 24 of file HepMC3Event.hpp
|
private |
Converts an SimParticle into HepMC3::GenParticle.
| actsParticle | Acts particle that will be converted |
Adder
Definition at line 91 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 91 of file HepMC3Event.cpp
| void ActsExamples::HepMC3Event::addParticle | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| std::shared_ptr< SimParticle > | particle | ||
| ) |
Adds a new particle.
Adder
| event | event in HepMC data type |
| particle | new particle that will be added |
Definition at line 103 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 103 of file HepMC3Event.cpp
| void ActsExamples::HepMC3Event::addVertex | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| const std::shared_ptr< SimVertex > | vertex | ||
| ) |
Adds a new vertex.
| event | event in HepMC data type |
| vertex | new vertex that will be added |
Definition at line 134 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 134 of file HepMC3Event.cpp
| std::vector< std::unique_ptr< ActsExamples::SimParticle > > ActsExamples::HepMC3Event::beams | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Get beam particles.
| event | event in HepMC data type |
Definition at line 263 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 263 of file HepMC3Event.cpp
References ActsExamples::HepMC3Particle::particle().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Compares an Acts vertex with a HepMC3::GenVertex.
| actsVertex | Acts vertex |
| genVertex | HepMC3::GenVertex |
Definition at line 160 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 160 of file HepMC3Event.cpp
|
private |
Converts an Acts vertex to a HepMC3::GenVertexPtr.
| actsVertex | Acts vertex that will be converted |
Definition at line 110 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 110 of file HepMC3Event.cpp
References particle.
| Acts::Vector3D ActsExamples::HepMC3Event::eventPos | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Getter of the position of the event.
| event | event in HepMC data type |
Definition at line 214 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 214 of file HepMC3Event.cpp
Referenced by main().
Here is the caller graph for this function:| double ActsExamples::HepMC3Event::eventTime | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Getter of the time of the event.
| event | event in HepMC data type |
Definition at line 224 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 224 of file HepMC3Event.cpp
Referenced by main().
Here is the caller graph for this function:| std::vector< std::unique_ptr< ActsExamples::SimParticle > > ActsExamples::HepMC3Event::finalState | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Get final state particles.
| event | event in HepMC data type |
Definition at line 278 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 278 of file HepMC3Event.cpp
References ActsExamples::HepMC3Particle::particle(), and particle.
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void ActsExamples::HepMC3Event::lengthUnit | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| const double | lengthUnit | ||
| ) |
Sets new units for lengths.
| event | event in HepMC data type |
| lengthUnit | new unit of length |
Definition at line 36 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 36 of file HepMC3Event.cpp
References Acts::UnitConstants::cm, and Acts::UnitConstants::mm.
Referenced by main().
Here is the caller graph for this function:| double ActsExamples::HepMC3Event::lengthUnit | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Getter of the unit of length used.
| event | event in HepMC data type |
Definition at line 206 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 206 of file HepMC3Event.cpp
References Acts::UnitConstants::cm, and Acts::UnitConstants::mm.
| void ActsExamples::HepMC3Event::momentumUnit | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| const double | momentumUnit | ||
| ) |
Sets new units for momentums.
Setter
| event | event in HepMC data type |
| momentumUnit | new unit of momentum |
Setter
Definition at line 18 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 18 of file HepMC3Event.cpp
References Acts::UnitConstants::GeV, Acts::UnitConstants::MeV, and charm_jet_coverage::mom.
Referenced by main().
Here is the caller graph for this function:| double ActsExamples::HepMC3Event::momentumUnit | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Getter of the unit of momentum used.
Getter
| event | event in HepMC data type |
Getter
Definition at line 198 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 198 of file HepMC3Event.cpp
References Acts::UnitConstants::GeV, and Acts::UnitConstants::MeV.
| std::vector< std::unique_ptr< ActsExamples::SimParticle > > ActsExamples::HepMC3Event::particles | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Get list of particles.
| event | event in HepMC data type |
Definition at line 231 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 231 of file HepMC3Event.cpp
References ActsExamples::HepMC3Particle::particle().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void ActsExamples::HepMC3Event::removeParticle | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| const std::shared_ptr< SimParticle > & | particle | ||
| ) |
Removes a particle from the record.
Remover
| event | event in HepMC data type |
| particle | particle that will be removed |
Remover
Definition at line 145 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 145 of file HepMC3Event.cpp
| void ActsExamples::HepMC3Event::removeVertex | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| const std::shared_ptr< SimVertex > & | vertex | ||
| ) |
Removes a vertex from the record.
| event | event in HepMC data type |
| vertex | vertex that will be removed |
Definition at line 181 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 181 of file HepMC3Event.cpp
| void ActsExamples::HepMC3Event::shiftPositionBy | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| const Acts::Vector3D & | deltaPos, | ||
| const double | deltaTime | ||
| ) |
Shifts the positioning of an event in space and time.
| event | event in HepMC data type |
| deltaPos | relative spatial shift that will be applied |
| deltaTime | relative time shift that will be applied |
Definition at line 55 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 55 of file HepMC3Event.cpp
| void ActsExamples::HepMC3Event::shiftPositionTo | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| const Acts::Vector3D & | pos, | ||
| const double | time | ||
| ) |
Shifts the positioning of an event to a paint in space and time.
| event | event in HepMC data type |
| pos | new position of the event |
| time | new time of the event |
Definition at line 64 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 64 of file HepMC3Event.cpp
References pos().
Here is the call graph for this function:| void ActsExamples::HepMC3Event::shiftPositionTo | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| const Acts::Vector3D & | pos | ||
| ) |
Shifts the positioning of an event to a paint in space.
| event | event in HepMC data type |
| pos | new position of the event |
Definition at line 72 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 72 of file HepMC3Event.cpp
References pos().
Here is the call graph for this function:| void ActsExamples::HepMC3Event::shiftPositionTo | ( | std::shared_ptr< HepMC3::GenEvent > | event, |
| const double | time | ||
| ) |
Shifts the positioning of an event to a paint in time.
| event | event in HepMC data type |
| time | new time of the event |
Definition at line 79 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 79 of file HepMC3Event.cpp
References Acts::Test::time.
| std::vector< std::unique_ptr< ActsExamples::SimVertex > > ActsExamples::HepMC3Event::vertices | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Get list of vertices.
| event | event in HepMC data type |
Definition at line 247 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 247 of file HepMC3Event.cpp
References ActsExamples::HepMC3Vertex::processVertex().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function: