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

#include <Hit.h>

Inherits o2::BasicXYZEHit< Float_t, Float_t >.

Public Types

enum  HitStatus_t {
  kTrackEntering = 0x1 , kTrackInside = 0x1 << 1 , kTrackExiting = 0x1 << 2 , kTrackOut = 0x1 << 3 ,
  kTrackStopped = 0x1 << 4 , kTrackAlive = 0x1 << 5
}
 

Public Member Functions

 Hit ()=default
 
 Hit (int trackID, unsigned short detID, const TVector3 &startPos, const TVector3 &endPos, const TVector3 &startMom, double startE, double endTime, double eLoss, unsigned char startStatus, unsigned char endStatus)
 
math_utils::Point3D< Float_tGetPosStart () const
 
Float_t GetStartX () const
 
Float_t GetStartY () const
 
Float_t GetStartZ () const
 
template<typename F >
void GetStartPosition (F &x, F &y, F &z) const
 
math_utils::Vector3D< Float_tGetMomentum () const
 
math_utils::Vector3D< Float_t > & GetMomentum ()
 
Float_t GetPx () const
 
Float_t GetPy () const
 
Float_t GetPz () const
 
Float_t GetE () const
 
Float_t GetTotalEnergy () const
 
UChar_t GetStatusEnd () const
 
UChar_t GetStatusStart () const
 
Bool_t IsEntering () const
 
Bool_t IsInside () const
 
Bool_t IsExiting () const
 
Bool_t IsOut () const
 
Bool_t IsStopped () const
 
Bool_t IsAlive () const
 
Bool_t IsEnteringStart () const
 
Bool_t IsInsideStart () const
 
Bool_t IsExitingStart () const
 
Bool_t IsOutStart () const
 
Bool_t IsStoppedStart () const
 
Bool_t IsAliveStart () const
 
void SetPosStart (const math_utils::Point3D< Float_t > &p)
 
void Print (const Option_t *opt) const
 
- Public Member Functions inherited from o2::BasicXYZEHit< Float_t, Float_t >
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, unsigned short did)
 
GetX () const
 
GetY () const
 
GetZ () const
 
math_utils::Point3D< T > GetPos () const
 
GetHitValue () const
 
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)
 
- Public Member Functions inherited from o2::BaseHit
 BaseHit ()=default
 
 BaseHit (int id)
 
int GetTrackID () const
 
void SetTrackID (int id)
 

Friends

std::ostream & operator<< (std::ostream &of, const Hit &point)
 

Detailed Description

Definition at line 26 of file Hit.h.

Member Enumeration Documentation

◆ HitStatus_t

Enumerator
kTrackEntering 
kTrackInside 
kTrackExiting 
kTrackOut 
kTrackStopped 
kTrackAlive 

Definition at line 29 of file Hit.h.

Constructor & Destructor Documentation

◆ Hit() [1/2]

o2::trkft3::Hit::Hit ( )
default

◆ Hit() [2/2]

o2::trkft3::Hit::Hit ( int  trackID,
unsigned short  detID,
const TVector3 &  startPos,
const TVector3 &  endPos,
const TVector3 &  startMom,
double  startE,
double  endTime,
double  eLoss,
unsigned char  startStatus,
unsigned char  endStatus 
)

Definition at line 21 of file Hit.cxx.

Member Function Documentation

◆ GetE()

Float_t o2::trkft3::Hit::GetE ( ) const
inline

Definition at line 60 of file Hit.h.

◆ GetMomentum() [1/2]

math_utils::Vector3D< Float_t > & o2::trkft3::Hit::GetMomentum ( )
inline

Definition at line 56 of file Hit.h.

◆ GetMomentum() [2/2]

math_utils::Vector3D< Float_t > o2::trkft3::Hit::GetMomentum ( ) const
inline

Definition at line 55 of file Hit.h.

◆ GetPosStart()

math_utils::Point3D< Float_t > o2::trkft3::Hit::GetPosStart ( ) const
inline

Definition at line 43 of file Hit.h.

◆ GetPx()

Float_t o2::trkft3::Hit::GetPx ( ) const
inline

Definition at line 57 of file Hit.h.

◆ GetPy()

Float_t o2::trkft3::Hit::GetPy ( ) const
inline

Definition at line 58 of file Hit.h.

◆ GetPz()

Float_t o2::trkft3::Hit::GetPz ( ) const
inline

Definition at line 59 of file Hit.h.

◆ GetStartPosition()

template<typename F >
void o2::trkft3::Hit::GetStartPosition ( F &  x,
F &  y,
F &  z 
) const
inline

Definition at line 48 of file Hit.h.

◆ GetStartX()

Float_t o2::trkft3::Hit::GetStartX ( ) const
inline

Definition at line 44 of file Hit.h.

◆ GetStartY()

Float_t o2::trkft3::Hit::GetStartY ( ) const
inline

Definition at line 45 of file Hit.h.

◆ GetStartZ()

Float_t o2::trkft3::Hit::GetStartZ ( ) const
inline

Definition at line 46 of file Hit.h.

◆ GetStatusEnd()

UChar_t o2::trkft3::Hit::GetStatusEnd ( ) const
inline

Definition at line 63 of file Hit.h.

◆ GetStatusStart()

UChar_t o2::trkft3::Hit::GetStatusStart ( ) const
inline

Definition at line 64 of file Hit.h.

◆ GetTotalEnergy()

Float_t o2::trkft3::Hit::GetTotalEnergy ( ) const
inline

Definition at line 61 of file Hit.h.

◆ IsAlive()

Bool_t o2::trkft3::Hit::IsAlive ( ) const
inline

Definition at line 71 of file Hit.h.

◆ IsAliveStart()

Bool_t o2::trkft3::Hit::IsAliveStart ( ) const
inline

Definition at line 78 of file Hit.h.

◆ IsEntering()

Bool_t o2::trkft3::Hit::IsEntering ( ) const
inline

Definition at line 66 of file Hit.h.

◆ IsEnteringStart()

Bool_t o2::trkft3::Hit::IsEnteringStart ( ) const
inline

Definition at line 73 of file Hit.h.

◆ IsExiting()

Bool_t o2::trkft3::Hit::IsExiting ( ) const
inline

Definition at line 68 of file Hit.h.

◆ IsExitingStart()

Bool_t o2::trkft3::Hit::IsExitingStart ( ) const
inline

Definition at line 75 of file Hit.h.

◆ IsInside()

Bool_t o2::trkft3::Hit::IsInside ( ) const
inline

Definition at line 67 of file Hit.h.

◆ IsInsideStart()

Bool_t o2::trkft3::Hit::IsInsideStart ( ) const
inline

Definition at line 74 of file Hit.h.

◆ IsOut()

Bool_t o2::trkft3::Hit::IsOut ( ) const
inline

Definition at line 69 of file Hit.h.

◆ IsOutStart()

Bool_t o2::trkft3::Hit::IsOutStart ( ) const
inline

Definition at line 76 of file Hit.h.

◆ IsStopped()

Bool_t o2::trkft3::Hit::IsStopped ( ) const
inline

Definition at line 70 of file Hit.h.

◆ IsStoppedStart()

Bool_t o2::trkft3::Hit::IsStoppedStart ( ) const
inline

Definition at line 77 of file Hit.h.

◆ Print()

void o2::trkft3::Hit::Print ( const Option_t *  opt) const

Definition at line 32 of file Hit.cxx.

◆ SetPosStart()

void o2::trkft3::Hit::SetPosStart ( const math_utils::Point3D< Float_t > &  p)
inline

Definition at line 80 of file Hit.h.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  of,
const Hit point 
)
friend

Definition at line 83 of file Hit.h.


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