CPV simulation hit information.
More...
#include <Hit.h>
Inherits o2::BasicXYZEHit< float >.
|
| | Hit ()=default |
| | Default constructor.
|
| |
| | Hit (int trackID, int detID, const math_utils::Point3D< float > &pos, double tof, double qLoss) |
| | Hit constructor.
|
| |
| Hit & | operator= (const Hit &hit)=default |
| |
| Bool_t | operator== (const Hit &rhs) const |
| | Check whether the points are from the same SuperParent and in the same detector volume.
|
| |
| Bool_t | operator< (const Hit &rhs) const |
| | Sorting points according to parent particle and detector volume.
|
| |
| Hit & | operator+= (const Hit &rhs) |
| | Adds energy loss from the other Hit to this Hit.
|
| |
| | ~Hit ()=default |
| | Destructor.
|
| |
| void | AddEnergyLoss (Double_t eloss) |
| |
| void | PrintStream (std::ostream &stream) const |
| | Writing Hit information to an output stream;.
|
| |
| 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, unsigned short did) |
| |
| T | GetX () const |
| |
| T | GetY () const |
| |
| T | GetZ () const |
| |
| math_utils::Point3D< T > | GetPos () const |
| |
| V | GetHitValue () const |
| |
| E | GetTime () const |
| |
| unsigned short | GetDetectorID () const |
| |
| void | SetTime (E time) |
| |
| void | SetHitValue (V val) |
| |
| void | SetDetectorID (unsigned 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, 2) |
| |
| | BaseHit ()=default |
| |
| | BaseHit (int id) |
| |
| int | GetTrackID () const |
| |
| void | SetTrackID (int id) |
| |
|
| Hit | operator+ (const Hit &lhs, const Hit &rhs) |
| | Creates a new Hit based on this Hit but adding the energy loss of the right hand side.
|
| |
CPV simulation hit information.
Definition at line 24 of file Hit.h.
◆ Hit() [1/2]
◆ Hit() [2/2]
Hit constructor.
Fully defining information of the CPV Hit (position, momentum, energy, track, ...)
- Parameters
-
| trackID | Index of the track entered CPV |
| detID | ID of the detector segment |
| pos | Position vector of the Hit |
| mom | Momentum vector for the particle at the Hit |
| initialEnergy | Energy of the primary particle enering the EMCAL |
| tof | Time of the hit |
| length | Length of the segment |
Definition at line 42 of file Hit.h.
◆ ~Hit()
◆ AddEnergyLoss()
| void o2::cpv::Hit::AddEnergyLoss |
( |
Double_t |
eloss | ) |
|
|
inline |
Definition at line 71 of file Hit.h.
◆ operator+=()
| Hit & Hit::operator+= |
( |
const Hit & |
rhs | ) |
|
Adds energy loss from the other Hit to this Hit.
- Parameters
-
- Returns
- This Hit with the summed energy loss
Definition at line 37 of file Hit.cxx.
◆ operator<()
| Bool_t Hit::operator< |
( |
const Hit & |
rhs | ) |
const |
Sorting points according to parent particle and detector volume.
- Returns
- True if this Hit is smaller, false otherwise
Definition at line 24 of file Hit.cxx.
◆ operator=()
| Hit & o2::cpv::Hit::operator= |
( |
const Hit & |
hit | ) |
|
|
default |
◆ operator==()
| Bool_t Hit::operator== |
( |
const Hit & |
rhs | ) |
const |
Check whether the points are from the same SuperParent and in the same detector volume.
- Returns
- True if points are the same (origin and detector), false otherwise
Definition at line 32 of file Hit.cxx.
◆ PrintStream()
| void Hit::PrintStream |
( |
std::ostream & |
stream | ) |
const |
Writing Hit information to an output stream;.
- Parameters
-
| stream | target output stream |
Definition at line 18 of file Hit.cxx.
◆ operator+
| Hit operator+ |
( |
const Hit & |
lhs, |
|
|
const Hit & |
rhs |
|
) |
| |
|
friend |
Creates a new Hit based on this Hit but adding the energy loss of the right hand side.
- Parameters
-
return New Hit based on this Hit
Definition at line 46 of file Hit.cxx.
The documentation for this class was generated from the following files:
- /home/runner/work/AliceO2/AliceO2/DataFormats/Detectors/CPV/include/DataFormatsCPV/Hit.h
- /home/runner/work/AliceO2/AliceO2/DataFormats/Detectors/CPV/src/Hit.cxx