Common FOCAL hit class for the detector simulation.
More...
#include <Hit.h>
Inherits o2::BasicXYZEHit< float >.
|
| | Hit ()=default |
| | Dummy constructor.
|
| |
| | Hit (int primary, int trackID, int detID, Subsystem_t subsystem, double initialEnergy, const math_utils::Point3D< float > &pos, double tof, double eLoss) |
| | Construction of the FOCAL hit with full information.
|
| |
| | ~Hit ()=default |
| | Destructor.
|
| |
| bool | operator== (const Hit &other) const |
| | Comparison operator for equalness.
|
| |
| bool | operator< (const Hit &other) const |
| | Comparison operator for smaller.
|
| |
| Hit & | operator+= (const Hit &other) |
| | Operator for incremental sum, adding energy loss of the other hit to this energy loss.
|
| |
| Subsystem_t | getSubsystem () const |
| | Get the type of the subsystem for which the hit was created.
|
| |
| bool | isPixelHit () const |
| | Check if the hit is a FOCAL-E pixel hit.
|
| |
| bool | isPadHit () const |
| | Check if the hit is a FOCAL-E pad hit.
|
| |
| bool | isHCALHit () const |
| | Check if the hit is a FOCAL-H hit.
|
| |
| int | getPrimary () const |
| | Get index of the incomimg primary particle associated with the hit.
|
| |
| double | getInitialEnergy () const |
| | Get energy of the incoming primary particle at the entrance of FOCAL.
|
| |
| void | setInitialEnergy (double energy) |
| | Set energy of the incoming primary particle at the entrance of FOCAL.
|
| |
| void | setPrimary (int primary) |
| | Set index of the incomimg primary particle associated with the hit.
|
| |
| void | printStream (std::ostream &stream) const |
| | Print information of this hit on the 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) |
| |
Common FOCAL hit class for the detector simulation.
- Author
- Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
- Since
- May 29, 2024
Definition at line 27 of file Hit.h.
◆ Subsystem_t
Subsystem index of the Hit.
| Enumerator |
|---|
| EPADS | ECAL pads.
|
| EPIXELS | ECAL pixels.
|
| HCAL | HCAL.
|
| UNKNOWN | Undefined.
|
Definition at line 32 of file Hit.h.
◆ Hit() [1/2]
◆ Hit() [2/2]
Construction of the FOCAL hit with full information.
- Parameters
-
| primary | Index of the incoming primary particle |
| trackID | Index of the MC particle (also shower particle) responsible for the energy loss |
| detID | Module index inside the subsystem |
| subsystem | FOCAL Subdetector (E-Pads, E-Pixels, HCAL) |
| pos | Geometric hit position (global coordintate system) |
| tof | Time-of-flight of the particle to the FOCAL |
| eLoss | Energy loss |
Definition at line 16 of file Hit.cxx.
◆ ~Hit()
◆ getInitialEnergy()
| double o2::focal::Hit::getInitialEnergy |
( |
| ) |
const |
|
inline |
Get energy of the incoming primary particle at the entrance of FOCAL.
- Returns
- Initial energy
Definition at line 126 of file Hit.h.
◆ getPrimary()
| int o2::focal::Hit::getPrimary |
( |
| ) |
const |
|
inline |
Get index of the incomimg primary particle associated with the hit.
- Returns
- Associated primary particle
Definition at line 122 of file Hit.h.
◆ getSubsystem()
Get the type of the subsystem for which the hit was created.
- Returns
- Subsystem type
Definition at line 106 of file Hit.h.
◆ isHCALHit()
| bool o2::focal::Hit::isHCALHit |
( |
| ) |
const |
|
inline |
Check if the hit is a FOCAL-H hit.
- Returns
- True if the hit is a FOCAL-H, false otherwise
Definition at line 118 of file Hit.h.
◆ isPadHit()
| bool o2::focal::Hit::isPadHit |
( |
| ) |
const |
|
inline |
Check if the hit is a FOCAL-E pad hit.
- Returns
- True if the hit is a FOCAL-E pad hit, false otherwise
Definition at line 114 of file Hit.h.
◆ isPixelHit()
| bool o2::focal::Hit::isPixelHit |
( |
| ) |
const |
|
inline |
Check if the hit is a FOCAL-E pixel hit.
- Returns
- True if the hit is a FOCAL-E pixel hit, false otherwise
Definition at line 110 of file Hit.h.
◆ operator+=()
| Hit & Hit::operator+= |
( |
const Hit & |
other | ) |
|
Operator for incremental sum, adding energy loss of the other hit to this energy loss.
- Parameters
-
| other | Hit to add to this one |
- Returns
- This hit containing the sum of the two energy losses
Definition at line 40 of file Hit.cxx.
◆ operator<()
| bool Hit::operator< |
( |
const Hit & |
other | ) |
const |
Comparison operator for smaller.
- Parameters
-
- Returns
- True if other hit is smaller (first track ID, then, subsystem ID, then module ID), false otherwise
Definition at line 29 of file Hit.cxx.
◆ operator==()
| bool Hit::operator== |
( |
const Hit & |
other | ) |
const |
Comparison operator for equalness.
- Parameters
-
- Returns
- True if subsytem, module and MC particle ID match, false otherwise
Definition at line 24 of file Hit.cxx.
◆ printStream()
| void Hit::printStream |
( |
std::ostream & |
stream | ) |
const |
Print information of this hit on the output stream.
- Parameters
-
Definition at line 46 of file Hit.cxx.
◆ setInitialEnergy()
| void o2::focal::Hit::setInitialEnergy |
( |
double |
energy | ) |
|
|
inline |
Set energy of the incoming primary particle at the entrance of FOCAL.
- Parameters
-
Definition at line 130 of file Hit.h.
◆ setPrimary()
| void o2::focal::Hit::setPrimary |
( |
int |
primary | ) |
|
|
inline |
Set index of the incomimg primary particle associated with the hit.
- Parameters
-
| primary | Associated primary particle |
Definition at line 134 of file Hit.h.
The documentation for this class was generated from the following files:
- /home/runner/work/AliceO2/AliceO2/Detectors/FOCAL/base/include/FOCALBase/Hit.h
- /home/runner/work/AliceO2/AliceO2/Detectors/FOCAL/base/src/Hit.cxx