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

EMCAL simulation hit information. More...

#include <Hit.h>

Inherits o2::BasicXYZEHit< float >.

Public Member Functions

 Hit ()=default
 Default constructor.
 
 Hit (Int_t primary, Int_t trackID, Int_t detID, Double_t initialEnergy, const math_utils::Point3D< float > &pos, const math_utils::Vector3D< float > &mom, Double_t tof, Double_t eLoss)
 Hit constructor.
 
Bool_t operator== (const Hit &rhs) const
 Check whether the points are from the same parent 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 point to this point.
 
 ~Hit ()=default
 Destructor.
 
Double_t GetInitialEnergy () const
 Get the initial energy of the primary particle entering EMCAL.
 
Int_t GetPrimary () const
 Get Primary particles at the origin of the hit.
 
void SetInitialEnergy (Double_t energy)
 Set initial energy of the primary particle entering EMCAL.
 
void SetPrimary (Int_t primary)
 Set primary particles at the origin of the hit.
 
void PrintStream (std::ostream &stream) const
 Writing point 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

EMCAL simulation hit information.

Author
Markus Fasel marku.nosp@m.s.fa.nosp@m.sel@c.nosp@m.ern..nosp@m.ch, Oak Ridge National Laboratory
Since
August 31st, 2017

Definition at line 27 of file Hit.h.

Constructor & Destructor Documentation

◆ Hit() [1/2]

o2::emcal::Hit::Hit ( )
default

Default constructor.

◆ Hit() [2/2]

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

Hit constructor.

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

Parameters
primaryNumber of primary particle
trackIDIndex of the track, defined as parent track entering teh EMCAL
detIDID of the detector segment
initialEnergyEnergy of the primary particle enering the EMCAL
posPosition vector of the point
momMomentum vector for the particle at the point
tofTime of the hit
eLossEnergy loss

Definition at line 46 of file Hit.h.

◆ ~Hit()

o2::emcal::Hit::~Hit ( )
default

Destructor.

Member Function Documentation

◆ GetInitialEnergy()

Double_t o2::emcal::Hit::GetInitialEnergy ( ) const
inline

Get the initial energy of the primary particle entering EMCAL.

Returns
Energy of the primary particle entering EMCAL

Definition at line 73 of file Hit.h.

◆ GetPrimary()

Int_t o2::emcal::Hit::GetPrimary ( ) const
inline

Get Primary particles at the origin of the hit.

Returns
Primary particles at the origin of the hit

Definition at line 77 of file Hit.h.

◆ operator+=()

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

Adds energy loss from the other point to this point.

Parameters
rhsEMCAL point to add to this point
Returns
This point with the summed energy loss

Definition at line 38 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 point is smaller, false otherwise

Definition at line 25 of file Hit.cxx.

◆ operator==()

Bool_t 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 33 of file Hit.cxx.

◆ PrintStream()

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

Writing point information to an output stream;.

Parameters
streamtarget output stream

Definition at line 18 of file Hit.cxx.

◆ SetInitialEnergy()

void o2::emcal::Hit::SetInitialEnergy ( Double_t  energy)
inline

Set initial energy of the primary particle entering EMCAL.

Parameters
energyEnergy of the primary particle entering EMCAL

Definition at line 81 of file Hit.h.

◆ SetPrimary()

void o2::emcal::Hit::SetPrimary ( Int_t  primary)
inline

Set primary particles at the origin of the hit.

Parameters
primaryPrimary particles at the origin of the hit

Definition at line 85 of file Hit.h.


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