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

#include <Hit.h>

Inherits o2::BasicXYZEHit< Float_t, Float_t >.

Public Member Functions

 Hit ()=default
 Default constructor.
 
 Hit (int trackID, int cellID, const math_utils::Point3D< float > &startPos, const math_utils::Point3D< float > &endPos, const math_utils::Vector3D< float > &startMom, double startE, double endTime, double eLoss, Int_t particlePdg)
 
math_utils::Point3D< Float_t > const & GetPosStart () 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_t > const & GetMomentum () 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 GetTotalEnergyAtEntrance () const
 
int GetParticlePdg () const
 
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, 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() [1/2]

o2::fv0::Hit::Hit ( )
default

Default constructor.

◆ Hit() [2/2]

o2::fv0::Hit::Hit ( int  trackID,
int  cellID,
const math_utils::Point3D< float > &  startPos,
const math_utils::Point3D< float > &  endPos,
const math_utils::Vector3D< float > &  startMom,
double  startE,
double  endTime,
double  eLoss,
Int_t  particlePdg 
)
inline

Class Constructor

Parameters
trackIDIndex of MCTrack
cellIDCell ID
startPosCoordinates at entrance to active volume [cm]
endPosCoordinates to active volume [cm]
startMomMomentum of track at entrance [GeV]
startEEnergy of track at entrance [GeV]
endTimeFinal time [ns]
eLossEnergy deposit [GeV]
particlePdgPDG code of the partcile associated with the track

Definition at line 89 of file Hit.h.

Member Function Documentation

◆ GetE()

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

Definition at line 74 of file Hit.h.

◆ GetMomentum() [1/2]

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

Definition at line 70 of file Hit.h.

◆ GetMomentum() [2/2]

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

Definition at line 69 of file Hit.h.

◆ GetParticlePdg()

int o2::fv0::Hit::GetParticlePdg ( ) const
inline

Definition at line 76 of file Hit.h.

◆ GetPosStart()

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

Definition at line 56 of file Hit.h.

◆ GetPx()

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

Definition at line 71 of file Hit.h.

◆ GetPy()

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

Definition at line 72 of file Hit.h.

◆ GetPz()

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

Definition at line 73 of file Hit.h.

◆ GetStartPosition()

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

Definition at line 61 of file Hit.h.

◆ GetStartX()

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

Definition at line 57 of file Hit.h.

◆ GetStartY()

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

Definition at line 58 of file Hit.h.

◆ GetStartZ()

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

Definition at line 59 of file Hit.h.

◆ GetTotalEnergyAtEntrance()

Float_t o2::fv0::Hit::GetTotalEnergyAtEntrance ( ) const
inline

Definition at line 75 of file Hit.h.

◆ Print()

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

Definition at line 25 of file Hit.cxx.


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