Class Hit¶
Defined in File Hit.hpp
Class Documentation¶
-
class
ActsFatras
::
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.
Public Types
-
using
Scalar
= double¶
-
using
Vector3
= Acts::ActsVector<Scalar, 3>¶
-
using
Vector4
= Acts::ActsVector<Scalar, 4>¶
Public Functions
-
Hit
() = default¶ Construct default hit with (mostly) invalid information.
-
Hit
(Acts::GeometryIdentifier geometryId, Barcode particleId, const Vector4 &pos4, const Vector4 &before4, const Vector4 &after4, int32_t index_ = -1)¶ Construct from four-position and four-momenta.
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.
- Parameters
geoId
: Geometry identifier of the surfaceparticleId
: Particle identifier of the particle that created the hitpos4
: Particle space-time four-vector on the surfacebefore4
: Particle four-momentum before the interactionafter4
: Particle four-momentum after the interactionindex_
: Hit index along the particle trajectory
-
Scalar
depositedEnergy
() const¶ Energy deposited by the hit.
- Return Value
positive
: if the particle lost energy when it passed the surfacenegative
: if magic was involved
-
constexpr Acts::GeometryIdentifier
geometryId
() const¶ Geometry identifier of the hit surface.
-
constexpr int32_t
index
() const¶ Hit index along the particle trajectory.
- Return Value
negative
: if the hit index is undefined.
-
auto
position
() const¶ Three-position, i.e. spatial coordinates without the time.
-
using