EMCAL simulation hit information.
More...
#include <Hit.h>
Inherits o2::BasicXYZEHit< float >.
|
| Hit ()=default |
| Default constructor.
|
|
| Hit (Int_t primary, Int_t trackID, Int_t detID, Double_t initialEnergy, const math_utils::Point3D< float > &pos, const math_utils::Vector3D< float > &mom, Double_t tof, Double_t eLoss) |
| Hit constructor.
|
|
Bool_t | operator== (const Hit &rhs) const |
| Check whether the points are from the same parent 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 point to this point.
|
|
| ~Hit ()=default |
| Destructor.
|
|
Double_t | GetInitialEnergy () const |
| Get the initial energy of the primary particle entering EMCAL.
|
|
Int_t | GetPrimary () const |
| Get Primary particles at the origin of the hit.
|
|
void | SetInitialEnergy (Double_t energy) |
| Set initial energy of the primary particle entering EMCAL.
|
|
void | SetPrimary (Int_t primary) |
| Set primary particles at the origin of the hit.
|
|
void | PrintStream (std::ostream &stream) const |
| Writing point 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, 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) |
|
EMCAL simulation hit information.
- Author
- Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
- Since
- August 31st, 2017
Definition at line 27 of file Hit.h.
◆ Hit() [1/2]
◆ Hit() [2/2]
o2::emcal::Hit::Hit |
( |
Int_t |
primary, |
|
|
Int_t |
trackID, |
|
|
Int_t |
detID, |
|
|
Double_t |
initialEnergy, |
|
|
const math_utils::Point3D< float > & |
pos, |
|
|
const math_utils::Vector3D< float > & |
mom, |
|
|
Double_t |
tof, |
|
|
Double_t |
eLoss |
|
) |
| |
|
inline |
Hit constructor.
Fully defining information of the EMCAL point (position, momentum, energy, track, ...)
- Parameters
-
primary | Number of primary particle |
trackID | Index of the track, defined as parent track entering teh EMCAL |
detID | ID of the detector segment |
initialEnergy | Energy of the primary particle enering the EMCAL |
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 46 of file Hit.h.
◆ ~Hit()
◆ GetInitialEnergy()
Double_t o2::emcal::Hit::GetInitialEnergy |
( |
| ) |
const |
|
inline |
Get the initial energy of the primary particle entering EMCAL.
- Returns
- Energy of the primary particle entering EMCAL
Definition at line 73 of file Hit.h.
◆ GetPrimary()
Int_t o2::emcal::Hit::GetPrimary |
( |
| ) |
const |
|
inline |
Get Primary particles at the origin of the hit.
- Returns
- Primary particles at the origin of the hit
Definition at line 77 of file Hit.h.
◆ operator+=()
Hit & Hit::operator+= |
( |
const Hit & |
rhs | ) |
|
Adds energy loss from the other point to this point.
- Parameters
-
rhs | EMCAL point to add to this point |
- Returns
- This point with the summed energy loss
Definition at line 38 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 point is smaller, false otherwise
Definition at line 25 of file Hit.cxx.
◆ operator==()
Bool_t 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 33 of file Hit.cxx.
◆ PrintStream()
void Hit::PrintStream |
( |
std::ostream & |
stream | ) |
const |
Writing point information to an output stream;.
- Parameters
-
stream | target output stream |
Definition at line 18 of file Hit.cxx.
◆ SetInitialEnergy()
void o2::emcal::Hit::SetInitialEnergy |
( |
Double_t |
energy | ) |
|
|
inline |
Set initial energy of the primary particle entering EMCAL.
- Parameters
-
energy | Energy of the primary particle entering EMCAL |
Definition at line 81 of file Hit.h.
◆ SetPrimary()
void o2::emcal::Hit::SetPrimary |
( |
Int_t |
primary | ) |
|
|
inline |
Set primary particles at the origin of the hit.
- Parameters
-
primary | Primary particles at the origin of the hit |
Definition at line 85 of file Hit.h.
The documentation for this class was generated from the following files:
- /home/runner/work/AliceO2/AliceO2/Detectors/EMCAL/base/include/EMCALBase/Hit.h
- /home/runner/work/AliceO2/AliceO2/Detectors/EMCAL/base/src/Hit.cxx