#include <Hit.h>
Inherits o2::BasicXYZEHit< float >.
|
| Hit ()=default |
| Default constructor.
|
|
| Hit (int trackID, int cellID, const math_utils::Point3D< float > &pos, const math_utils::Vector3D< float > &mom, float tof, float eLoss) |
| Hit constructor.
|
|
| ~Hit ()=default |
| Destructor.
|
|
bool | operator== (const Hit &rhs) const |
| Check whether the points are from the same parent and in the same detector volume.
|
|
bool | operator< (const Hit &rhs) const |
| Sorting points according to parent particle and detector volume.
|
|
int | GetCellID () const |
| Get cell ID.
|
|
float | GetEnergyLoss () const |
|
void | SetEnergyLoss (float val) |
|
| ClassDefNV (BasicXYZEHit, 1) |
|
| BasicXYZVHit ()=default |
|
| BasicXYZVHit (T x, T y, T z, E time, V val, int trackid, short did) |
|
T | GetX () const |
|
T | GetY () const |
|
T | GetZ () const |
|
math_utils::Point3D< T > | GetPos () const |
|
V | GetHitValue () const |
|
E | GetTime () const |
|
short | GetDetectorID () const |
|
void | SetTime (E time) |
|
void | SetHitValue (V val) |
|
void | SetDetectorID (short detID) |
|
void | SetX (T x) |
|
void | SetY (T y) |
|
void | SetZ (T z) |
|
void | SetXYZ (T x, T y, T z) |
|
void | SetPos (math_utils::Point3D< T > const &p) |
|
| ClassDefNV (BasicXYZVHit, 1) |
|
| BaseHit ()=default |
|
| BaseHit (int id) |
|
int | GetTrackID () const |
|
void | SetTrackID (int id) |
|
Definition at line 27 of file Hit.h.
◆ Hit() [1/2]
◆ Hit() [2/2]
Hit constructor.
Fully defining information of the ECAL point (position, momentum, energy, track, ...)
- Parameters
-
trackID | Index of the track, defined as parent track entering the ECAL |
cellID | ID of the detector cell |
pos | Position vector of the point |
mom | Momentum vector for the particle at the point |
tof | Time of the hit |
eLoss | Energy loss |
Definition at line 43 of file Hit.h.
◆ ~Hit()
◆ GetCellID()
int o2::ecal::Hit::GetCellID |
( |
| ) |
const |
|
inline |
Get cell ID.
- Returns
- cell ID
Definition at line 64 of file Hit.h.
◆ operator<()
bool Hit::operator< |
( |
const Hit & |
rhs | ) |
const |
Sorting points according to parent particle and detector volume.
- Returns
- True if this point is smaller, false otherwise
Definition at line 23 of file Hit.cxx.
◆ operator==()
bool Hit::operator== |
( |
const Hit & |
rhs | ) |
const |
Check whether the points are from the same parent and in the same detector volume.
- Returns
- True if points are the same (origin and detector), false otherwise
Definition at line 31 of file Hit.cxx.
The documentation for this class was generated from the following files:
- /home/runner/work/AliceO2/AliceO2/Detectors/Upgrades/ALICE3/ECal/base/include/ECalBase/Hit.h
- /home/runner/work/AliceO2/AliceO2/Detectors/Upgrades/ALICE3/ECal/base/src/Hit.cxx