Project
Loading...
Searching...
No Matches
o2::mid::Hit Class Reference

#include <Hit.h>

Inherits o2::BasicXYZEHit< float >.

Public Member Functions

 Hit (int trackId=0, short deId=0, math_utils::Point3D< float > entrancePoint={}, math_utils::Point3D< float > exitPoint={}, float eloss=0.0, float length=0.0, float tof=0.0)
 
math_utils::Point3D< float > entrancePoint () const
 
math_utils::Point3D< float > exitPoint () const
 
math_utils::Point3D< float > middlePoint () const
 
short detElemId () const
 
- Public Member Functions inherited from o2::BasicXYZEHit< float >
float GetEnergyLoss () const
 
void SetEnergyLoss (float val)
 
 ClassDefNV (BasicXYZEHit, 1)
 
- Public Member Functions inherited from o2::BasicXYZVHit< T, E, V >
 BasicXYZVHit ()=default
 
 BasicXYZVHit (T x, T y, T z, E time, V val, int trackid, short did)
 
GetX () const
 
GetY () const
 
GetZ () const
 
math_utils::Point3D< T > GetPos () const
 
GetHitValue () const
 
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)
 
- Public Member Functions inherited from o2::BaseHit
 BaseHit ()=default
 
 BaseHit (int id)
 
int GetTrackID () const
 
void SetTrackID (int id)
 

Detailed Description

Definition at line 29 of file Hit.h.

Constructor & Destructor Documentation

◆ Hit()

o2::mid::Hit::Hit ( int  trackId = 0,
short  deId = 0,
math_utils::Point3D< float >  entrancePoint = {},
math_utils::Point3D< float >  exitPoint = {},
float  eloss = 0.0,
float  length = 0.0,
float  tof = 0.0 
)

Definition at line 25 of file Hit.cxx.

Member Function Documentation

◆ detElemId()

short o2::mid::Hit::detElemId ( ) const
inline

Definition at line 40 of file Hit.h.

◆ entrancePoint()

math_utils::Point3D< float > o2::mid::Hit::entrancePoint ( ) const
inline

Definition at line 36 of file Hit.h.

◆ exitPoint()

math_utils::Point3D< float > o2::mid::Hit::exitPoint ( ) const
inline

Definition at line 37 of file Hit.h.

◆ middlePoint()

math_utils::Point3D< float > o2::mid::Hit::middlePoint ( ) const

Returns the point in between the entrance and exit

Definition at line 30 of file Hit.cxx.


The documentation for this class was generated from the following files: