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

PHOS simulation hit information. More...

#include <Hit.h>

Inherits o2::BasicXYZEHit< float >.

Public Member Functions

 Hit ()=default
 Default constructor.
 
 Hit (Int_t trackID, Int_t detID, const math_utils::Point3D< float > &pos, const math_utils::Vector3D< float > &mom, Double_t totE, Double_t tof, Double_t eLoss)
 Hit constructor.
 
Hitoperator= (const Hit &hit)=default
 
Bool_t operator== (const Hit &rhs) const
 Check whether the points are from the same SuperParent and in the same detector volume.
 
Bool_t operator< (const Hit &rhs) const
 Sorting points according to parent particle and detector volume.
 
Hitoperator+= (const Hit &rhs)
 Adds energy loss from the other Hit to this Hit.
 
Hit operator+ (const Hit &rhs) const
 Creates a new Hit based on this Hit but adding the energy loss of the right hand side.
 
 ~Hit ()=default
 Destructor.
 
Double_t getInitialEnergy () const
 Get the initial energy of the primary particle entering PHOS.
 
void addEnergyLoss (Double_t eloss)
 
void PrintStream (std::ostream &stream) const
 Writing Hit information to an output stream;.
 
- 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

PHOS simulation hit information.

Definition at line 24 of file Hit.h.

Constructor & Destructor Documentation

◆ Hit() [1/2]

o2::phos::Hit::Hit ( )
default

Default constructor.

◆ Hit() [2/2]

o2::phos::Hit::Hit ( Int_t  trackID,
Int_t  detID,
const math_utils::Point3D< float > &  pos,
const math_utils::Vector3D< float > &  mom,
Double_t  totE,
Double_t  tof,
Double_t  eLoss 
)
inline

Hit constructor.

Fully defining information of the PHOS Hit (position, momentum, energy, track, ...)

Parameters
trackIDIndex of the track entered PHOS
detIDID of the detector segment
posPosition vector of the Hit
momMomentum vector for the particle at the Hit
initialEnergyEnergy of the primary particle enering the EMCAL
tofTime of the hit
lengthLength of the segment

Definition at line 42 of file Hit.h.

◆ ~Hit()

o2::phos::Hit::~Hit ( )
default

Destructor.

Member Function Documentation

◆ addEnergyLoss()

void o2::phos::Hit::addEnergyLoss ( Double_t  eloss)
inline

Definition at line 77 of file Hit.h.

◆ getInitialEnergy()

Double_t o2::phos::Hit::getInitialEnergy ( ) const
inline

Get the initial energy of the primary particle entering PHOS.

Returns
Energy of the primary particle entering PHOS

Definition at line 75 of file Hit.h.

◆ operator+()

Hit Hit::operator+ ( const Hit rhs) const

Creates a new Hit based on this Hit but adding the energy loss of the right hand side.

Parameters

return New Hit based on this Hit

Definition at line 57 of file Hit.cxx.

◆ operator+=()

Hit & Hit::operator+= ( const Hit rhs)

Adds energy loss from the other Hit to this Hit.

Parameters
rhsphos::Hit to add to this Hit
Returns
This Hit with the summed energy loss

Definition at line 48 of file Hit.cxx.

◆ operator<()

Bool_t Hit::operator< ( const Hit rhs) const

Sorting points according to parent particle and detector volume.

Returns
True if this Hit is smaller, false otherwise

Definition at line 35 of file Hit.cxx.

◆ operator=()

Hit & o2::phos::Hit::operator= ( const Hit hit)
default

◆ operator==()

Bool_t Hit::operator== ( const Hit rhs) const

Check whether the points are from the same SuperParent and in the same detector volume.

Returns
True if points are the same (origin and detector), false otherwise

Definition at line 43 of file Hit.cxx.

◆ PrintStream()

void Hit::PrintStream ( std::ostream &  stream) const

Writing Hit information to an output stream;.

Parameters
streamtarget output stream

Definition at line 18 of file Hit.cxx.


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