ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Helper struct to convert HepMC3 event to the internal format. More...
#include <acts/blob/master/Examples/Io/HepMC3/include/ACTFW/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 FW::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 FW::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 133 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 133 of file HepMC3Event.cpp
std::vector< std::unique_ptr< FW::SimParticle > > FW::HepMC3Event::beams | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Get beam particles.
event | event in HepMC data type |
Definition at line 257 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 257 of file HepMC3Event.cpp
References FW::HepMC3Particle::particle().
Referenced by main().
|
private |
Compares an Acts vertex with a HepMC3::GenVertex.
actsVertex | Acts vertex |
genVertex | HepMC3::GenVertex |
Definition at line 158 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 158 of file HepMC3Event.cpp
|
private |
Converts an Acts vertex to a HepMC3::GenVertexPtr.
actsVertex | Acts vertex that will be converted |
Definition at line 109 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 109 of file HepMC3Event.cpp
References particle.
Acts::Vector3D FW::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 211 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 211 of file HepMC3Event.cpp
Referenced by main().
double FW::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 221 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 221 of file HepMC3Event.cpp
Referenced by main().
std::vector< std::unique_ptr< FW::SimParticle > > FW::HepMC3Event::finalState | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Get final state particles.
event | event in HepMC data type |
Definition at line 271 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 271 of file HepMC3Event.cpp
References FW::HepMC3Particle::particle(), and particle.
Referenced by main().
void FW::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::units::_cm, and Acts::units::_mm.
Referenced by main().
double FW::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 203 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 203 of file HepMC3Event.cpp
References Acts::units::_cm, and Acts::units::_mm.
void FW::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::units::_GeV, Acts::units::_MeV, and mom.
Referenced by main().
double FW::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 195 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 195 of file HepMC3Event.cpp
References Acts::units::_GeV, and Acts::units::_MeV.
std::vector< std::unique_ptr< FW::SimParticle > > FW::HepMC3Event::particles | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Get list of particles.
event | event in HepMC data type |
Definition at line 227 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 227 of file HepMC3Event.cpp
References FW::HepMC3Particle::particle().
Referenced by main().
void FW::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 143 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 143 of file HepMC3Event.cpp
void FW::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 179 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 179 of file HepMC3Event.cpp
void FW::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 FW::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().
void FW::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().
void FW::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::VectorHelpers::time().
std::vector< std::unique_ptr< FW::SimVertex > > FW::HepMC3Event::vertices | ( | const std::shared_ptr< HepMC3::GenEvent > | event | ) |
Get list of vertices.
event | event in HepMC data type |
Definition at line 242 of file HepMC3Event.cpp.
View newest version in sPHENIX GitHub at line 242 of file HepMC3Event.cpp
References FW::HepMC3Vertex::processVertex().
Referenced by main().