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

#include <Hit.h>

Inherits o2::BasicXYZEHit< float, float >.

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 sensorID, const TVector3 &startPos, const TVector3 &endPos, const TVector3 &startMom, double startE, double endTime, double eLoss, unsigned char startStatus, unsigned char endStatus, int pdg=0, float length=0.f)
 
math_utils::Point3D< float > GetPosStart () const
 
float GetStartX () const
 
float GetStartY () const
 
float GetStartZ () const
 
void SetPosStart (const math_utils::Point3D< float > &p)
 
math_utils::Vector3D< float > GetMomentum () const
 
math_utils::Vector3D< float > & GetMomentum ()
 
float GetPx () const
 
float GetPy () const
 
float GetPz () const
 
float GetE () const
 
float GetTotalEnergy () const
 
float GetLength () const
 
void SetLength (float l)
 
int GetPdg () const
 
void SetPdg (int pdg)
 
unsigned char GetStatusStart () const
 
unsigned char GetStatusEnd () const
 
bool IsEntering () const
 
bool IsInside () const
 
bool IsExiting () const
 
bool IsOut () const
 
bool IsStopped () const
 
bool IsAlive () const
 
- Public Member Functions inherited from o2::BasicXYZEHit< float, 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, 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 38 of file Hit.h.

Member Enumeration Documentation

◆ HitStatus_t

Enumerator
kTrackEntering 
kTrackInside 
kTrackExiting 
kTrackOut 
kTrackStopped 
kTrackAlive 

Definition at line 41 of file Hit.h.

Constructor & Destructor Documentation

◆ Hit() [1/2]

o2::ext::Hit::Hit ( )
default

◆ Hit() [2/2]

o2::ext::Hit::Hit ( int  trackID,
unsigned short  sensorID,
const TVector3 &  startPos,
const TVector3 &  endPos,
const TVector3 &  startMom,
double  startE,
double  endTime,
double  eLoss,
unsigned char  startStatus,
unsigned char  endStatus,
int  pdg = 0,
float  length = 0.f 
)
inline
Parameters
trackIDindex of the MCTrack
sensorIDindex of the sensitive volume (per-detector running id)
startPoscoordinates at entrance to the active volume [cm]
endPoscoordinates at exit of the active volume [cm]
startMommomentum of the track at entrance [GeV]
startEtotal energy at entrance [GeV]
endTimetime at exit [ns]
eLossenergy deposited in the volume [GeV]
startStatusMC status flags at entrance
endStatusMC status flags at exit
pdgPDG code of the track (optional)
lengthtrack length inside the volume [cm] (optional)

Definition at line 64 of file Hit.h.

Member Function Documentation

◆ GetE()

float o2::ext::Hit::GetE ( ) const
inline

Definition at line 91 of file Hit.h.

◆ GetLength()

float o2::ext::Hit::GetLength ( ) const
inline

Definition at line 95 of file Hit.h.

◆ GetMomentum() [1/2]

math_utils::Vector3D< float > & o2::ext::Hit::GetMomentum ( )
inline

Definition at line 87 of file Hit.h.

◆ GetMomentum() [2/2]

math_utils::Vector3D< float > o2::ext::Hit::GetMomentum ( ) const
inline

Definition at line 86 of file Hit.h.

◆ GetPdg()

int o2::ext::Hit::GetPdg ( ) const
inline

Definition at line 97 of file Hit.h.

◆ GetPosStart()

math_utils::Point3D< float > o2::ext::Hit::GetPosStart ( ) const
inline

Definition at line 79 of file Hit.h.

◆ GetPx()

float o2::ext::Hit::GetPx ( ) const
inline

Definition at line 88 of file Hit.h.

◆ GetPy()

float o2::ext::Hit::GetPy ( ) const
inline

Definition at line 89 of file Hit.h.

◆ GetPz()

float o2::ext::Hit::GetPz ( ) const
inline

Definition at line 90 of file Hit.h.

◆ GetStartX()

float o2::ext::Hit::GetStartX ( ) const
inline

Definition at line 80 of file Hit.h.

◆ GetStartY()

float o2::ext::Hit::GetStartY ( ) const
inline

Definition at line 81 of file Hit.h.

◆ GetStartZ()

float o2::ext::Hit::GetStartZ ( ) const
inline

Definition at line 82 of file Hit.h.

◆ GetStatusEnd()

unsigned char o2::ext::Hit::GetStatusEnd ( ) const
inline

Definition at line 102 of file Hit.h.

◆ GetStatusStart()

unsigned char o2::ext::Hit::GetStatusStart ( ) const
inline

Definition at line 101 of file Hit.h.

◆ GetTotalEnergy()

float o2::ext::Hit::GetTotalEnergy ( ) const
inline

Definition at line 92 of file Hit.h.

◆ IsAlive()

bool o2::ext::Hit::IsAlive ( ) const
inline

Definition at line 108 of file Hit.h.

◆ IsEntering()

bool o2::ext::Hit::IsEntering ( ) const
inline

Definition at line 103 of file Hit.h.

◆ IsExiting()

bool o2::ext::Hit::IsExiting ( ) const
inline

Definition at line 105 of file Hit.h.

◆ IsInside()

bool o2::ext::Hit::IsInside ( ) const
inline

Definition at line 104 of file Hit.h.

◆ IsOut()

bool o2::ext::Hit::IsOut ( ) const
inline

Definition at line 106 of file Hit.h.

◆ IsStopped()

bool o2::ext::Hit::IsStopped ( ) const
inline

Definition at line 107 of file Hit.h.

◆ SetLength()

void o2::ext::Hit::SetLength ( float  l)
inline

Definition at line 96 of file Hit.h.

◆ SetPdg()

void o2::ext::Hit::SetPdg ( int  pdg)
inline

Definition at line 98 of file Hit.h.

◆ SetPosStart()

void o2::ext::Hit::SetPosStart ( const math_utils::Point3D< float > &  p)
inline

Definition at line 83 of file Hit.h.

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 110 of file Hit.h.


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