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

#include <Hit.h>

Inherits o2::BasicXYZEHit< float >.

Public Member Functions

 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.
 
- 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 27 of file Hit.h.

Constructor & Destructor Documentation

◆ Hit() [1/2]

o2::ecal::Hit::Hit ( )
default

Default constructor.

◆ Hit() [2/2]

o2::ecal::Hit::Hit ( int  trackID,
int  cellID,
const math_utils::Point3D< float > &  pos,
const math_utils::Vector3D< float > &  mom,
float  tof,
float  eLoss 
)
inline

Hit constructor.

Fully defining information of the ECAL point (position, momentum, energy, track, ...)

Parameters
trackIDIndex of the track, defined as parent track entering the ECAL
cellIDID of the detector cell
posPosition vector of the point
momMomentum vector for the particle at the point
tofTime of the hit
eLossEnergy loss

Definition at line 43 of file Hit.h.

◆ ~Hit()

o2::ecal::Hit::~Hit ( )
default

Destructor.

Member Function Documentation

◆ 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: