|
ACTS
Experiment-independent tracking
|
A simulation hit on a surface. More...
#include <ActsFatras/EventData/Hit.hpp>
Public Member Functions | |
| Hit ()=default | |
| Construct default hit with (mostly) invalid information. | |
| Hit (Acts::GeometryIdentifier geometryId, Barcode particleId, const Acts::Vector4 &pos4, const Acts::Vector4 &before4, const Acts::Vector4 &after4, std::int32_t index_=-1) | |
| Construct from four-position and four-momenta. | |
| Hit (const Hit &)=default | |
| Copy constructor. | |
| Hit (Hit &&)=default | |
| Move constructor. | |
| double | depositedEnergy () const |
| Energy deposited by the hit. | |
| Acts::Vector3 | direction () const |
| Average normalized particle direction vector through the surface. | |
| Acts::Vector3 | directionAfter () const |
| Normalized particle direction vector the hit. | |
| Acts::Vector3 | directionBefore () const |
| Normalized particle direction vector before the hit. | |
| const Acts::Vector4 & | fourPosition () const |
| Space-time position four-vector. | |
| constexpr Acts::GeometryIdentifier | geometryId () const |
| Geometry identifier of the hit surface. | |
| constexpr std::int32_t | index () const |
| Hit index along the particle trajectory. | |
| const Acts::Vector4 & | momentum4After () const |
| Particle four-momentum after the hit. | |
| const Acts::Vector4 & | momentum4Before () const |
| Particle four-momentum before the hit. | |
| Hit & | operator= (const Hit &)=default |
| Copy assignment operator. | |
| Hit & | operator= (Hit &&)=default |
| Move assignment operator. | |
| constexpr Barcode | particleId () const |
| Particle identifier of the particle that generated the hit. | |
| auto | position () const |
| Three-position, i.e. | |
| double | time () const |
| Time coordinate. | |
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.
|
default |
Construct default hit with (mostly) invalid information.
| ActsFatras::Hit::Hit | ( | Acts::GeometryIdentifier | geometryId, |
| Barcode | particleId, | ||
| const Acts::Vector4 & | pos4, | ||
| const Acts::Vector4 & | before4, | ||
| const Acts::Vector4 & | after4, | ||
| std::int32_t | index_ = -1 ) |
Construct from four-position and four-momenta.
| geometryId | 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.
|
default |
Copy constructor.
|
default |
Move constructor.
| double ActsFatras::Hit::depositedEnergy | ( | ) | const |
Energy deposited by the hit.
| positive | if the particle lost energy when it passed the surface |
| negative | if magic was involved |
| Acts::Vector3 ActsFatras::Hit::direction | ( | ) | const |
Average normalized particle direction vector through the surface.
| Acts::Vector3 ActsFatras::Hit::directionAfter | ( | ) | const |
Normalized particle direction vector the hit.
| Acts::Vector3 ActsFatras::Hit::directionBefore | ( | ) | const |
Normalized particle direction vector before the hit.
| const Acts::Vector4 & ActsFatras::Hit::fourPosition | ( | ) | const |
Space-time position four-vector.
|
constexpr |
Geometry identifier of the hit surface.
|
constexpr |
Hit index along the particle trajectory.
| negative | if the hit index is undefined. |
| const Acts::Vector4 & ActsFatras::Hit::momentum4After | ( | ) | const |
Particle four-momentum after the hit.
| const Acts::Vector4 & ActsFatras::Hit::momentum4Before | ( | ) | const |
Particle four-momentum before the hit.
Copy assignment operator.
Move assignment operator.
|
constexpr |
Particle identifier of the particle that generated the hit.
| auto ActsFatras::Hit::position | ( | ) | const |
Three-position, i.e.
spatial coordinates without the time.
| double ActsFatras::Hit::time | ( | ) | const |
Time coordinate.