![]() |
ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Fatras/include/ActsFatras/EventData/Hit.hpp>
Collaboration diagram for ActsFatras::Hit:Public Types | |
| using | Scalar = double |
| using | Vector4 = Acts::ActsVector< Scalar, 4 > |
| using | Vector3 = Acts::ActsVector< Scalar, 3 > |
Public Member Functions | |
| Hit ()=default | |
| Construct default hit with (mostly) invalid information. | |
| template<typename Position4 , typename Momentum40 , typename Momentum41 > | |
| Hit (Acts::GeometryID geometryId, Barcode particleId, const Eigen::MatrixBase< Position4 > &pos4, const Eigen::MatrixBase< Momentum40 > &before4, const Eigen::MatrixBase< Momentum41 > &after4, int32_t index_=-1) | |
| Hit (const Hit &)=default | |
| Hit (Hit &&)=default | |
| Hit & | operator= (const Hit &)=default |
| Hit & | operator= (Hit &&)=default |
| constexpr Acts::GeometryID | geometryId () const |
| Geometry identifier of the hit surface. | |
| constexpr Barcode | particleId () const |
| Particle identifier of the particle that generated the hit. | |
| constexpr int32_t | index () const |
| const Vector4 & | position4 () const |
| auto | position () const |
| Three-position, i.e. spatial coordinates without the time. | |
| Scalar | time () const |
| Time coordinate. | |
| const Vector4 & | momentum4Before () const |
| const Vector4 & | momentum4After () const |
| Vector3 | unitDirectionBefore () const |
| Normalized particle direction vector before the hit. | |
| Vector3 | unitDirectionAfter () const |
| Normalized particle direction vector the hit. | |
| Vector3 | unitDirection () const |
| Average normalized particle direction vector through the surface. | |
| Scalar | depositedEnergy () const |
Private Attributes | |
| Acts::GeometryID | m_geometryId |
| Identifier of the surface. | |
| Barcode | m_particleId |
| Identifier of the generating particle. | |
| int32_t | m_index = -1 |
| Index of the hit along the particle trajectory. | |
| Vector4 | m_pos4 = Vector4::Zero() |
| Global space-time position four-vector. | |
| Vector4 | m_before4 = Vector4::Zero() |
| Global particle energy-momentum four-vector before the hit. | |
| Vector4 | m_after4 = Vector4::Zero() |
| Global particle energy-momentum four-vector after the hit. | |
A simulation hit on a surface.
This is the undigitized, truth hit, i.e. just a recording of the particle state at the surface intersection. Since Fatras is surface-based, the hit position is always constrained to a surface. Depending on the simulated interactions the momentum state before and after might differ and is thus stored as two separate four-vectors.
Definition at line 26 of file Hit.hpp.
View newest version in sPHENIX GitHub at line 26 of file Hit.hpp
| using ActsFatras::Hit::Scalar = double |
| using ActsFatras::Hit::Vector3 = Acts::ActsVector<Scalar, 3> |
| using ActsFatras::Hit::Vector4 = Acts::ActsVector<Scalar, 4> |
|
default |
Construct default hit with (mostly) invalid information.
|
inline |
Construct from four-position and four-momenta.
| geoId | Geometry identifier of the surface |
| particleId | Particle identifier of the particle that created the hit |
| pos4 | Particle space-time four-vector on the surface |
| before4 | Particle four-momentum before the interaction |
| after4 | Particle four-momentum after the interaction |
| index_ | Hit index along the particle trajectory |
All quantities are given in the global coordinate system. It is the users responsibility to ensure that the position correspond to a position on the given surface. The four-vector component order must be [x,y,z,t] and [px,py,pz,E].
Definition at line 48 of file Hit.hpp.
View newest version in sPHENIX GitHub at line 48 of file Hit.hpp
|
default |
|
default |
|
inline |
|
inline |
Geometry identifier of the hit surface.
Definition at line 64 of file Hit.hpp.
View newest version in sPHENIX GitHub at line 64 of file Hit.hpp
References m_geometryId.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Global particle energy-momentum four-vector after the hit.
Definition at line 119 of file Hit.hpp.
View newest version in sPHENIX GitHub at line 119 of file Hit.hpp
Referenced by depositedEnergy(), momentum4After(), unitDirection(), and unitDirectionAfter().
|
private |
Global particle energy-momentum four-vector before the hit.
Definition at line 117 of file Hit.hpp.
View newest version in sPHENIX GitHub at line 117 of file Hit.hpp
Referenced by depositedEnergy(), momentum4Before(), unitDirection(), and unitDirectionBefore().
|
private |
Identifier of the surface.
Definition at line 109 of file Hit.hpp.
View newest version in sPHENIX GitHub at line 109 of file Hit.hpp
Referenced by geometryId().
|
private |
|
private |
Identifier of the generating particle.
Definition at line 111 of file Hit.hpp.
View newest version in sPHENIX GitHub at line 111 of file Hit.hpp
Referenced by particleId().
|
private |
Global space-time position four-vector.
Definition at line 115 of file Hit.hpp.
View newest version in sPHENIX GitHub at line 115 of file Hit.hpp
Referenced by position(), position4(), and time().