sandreco  1.0.8
A modular reconstruction software for SAND
EDEPHit Class Reference

Represents a hit in a detector. More...

#include <EDEPHit.h>

Public Member Functions

 EDEPHit ()=default
 Constructor for EDEPHit. More...
 
 EDEPHit (const TG4HitSegment &hit, int i=-1)
 
 EDEPHit (const sand::vec_4d &start, const sand::vec_4d &stop, double energy_deposit, double secondary_deposit, double track_length, int contrib, int primary_id, int i)
 Constructor for EDEPHit. More...
 
 ~EDEPHit ()
 Destructor for EDEPHit.
 
const sand::vec_4d & GetStart () const
 Get the start position of the hit. More...
 
const sand::vec_4d & GetStop () const
 Get the stop position of the hit. More...
 
const double & GetEnergyDeposit () const
 Get the energy deposited by the hit. More...
 
const double & GetSecondaryDeposit () const
 Get the secondary deposition of the hit. More...
 
const double & GetTrackLength () const
 Get the track length of the hit. More...
 
const int & GetContrib () const
 Get the main contributor to the hit. More...
 
const int & GetPrimaryId () const
 Get the ID of the primary particle generating the hit. More...
 
const int & GetId () const
 Get the ID of the hit. More...
 

Detailed Description

Represents a hit in a detector.

This class encapsulates information about a hit in a detector, such as its start and stop positions, energy deposition, secondary deposition, track length, contribution, primary ID, and index.

Constructor & Destructor Documentation

◆ EDEPHit() [1/2]

EDEPHit::EDEPHit ( )
default

Constructor for EDEPHit.

Parameters
hitThe TG4HitSegment object containing hit information.

◆ EDEPHit() [2/2]

EDEPHit::EDEPHit ( const sand::vec_4d &  start,
const sand::vec_4d &  stop,
double  energy_deposit,
double  secondary_deposit,
double  track_length,
int  contrib,
int  primary_id,
int  i 
)
inline

Constructor for EDEPHit.

Parameters
startThe start position of the hit.
stopThe stop position of the hit.
energy_depositThe energy deposited by the hit.
secondary_depositThe secondary deposition of the hit.
track_lengthThe track length of the hit.
contribThe main contributor of the hit.
primary_idThe ID of the primary particle generating the hit.
iThe index of the hit.

Member Function Documentation

◆ GetContrib()

const int& EDEPHit::GetContrib ( ) const
inline

Get the main contributor to the hit.

Returns
The contribution as an integer.

◆ GetEnergyDeposit()

const double& EDEPHit::GetEnergyDeposit ( ) const
inline

Get the energy deposited by the hit.

Returns
The energy deposited as a double.

◆ GetId()

const int& EDEPHit::GetId ( ) const
inline

Get the ID of the hit.

Returns
The ID as an integer.

◆ GetPrimaryId()

const int& EDEPHit::GetPrimaryId ( ) const
inline

Get the ID of the primary particle generating the hit.

Returns
The primary ID as an integer.

◆ GetSecondaryDeposit()

const double& EDEPHit::GetSecondaryDeposit ( ) const
inline

Get the secondary deposition of the hit.

Returns
The secondary deposition as a double.

◆ GetStart()

const sand::vec_4d& EDEPHit::GetStart ( ) const
inline

Get the start position of the hit.

Returns
The start position as a XYZTVector.

◆ GetStop()

const sand::vec_4d& EDEPHit::GetStop ( ) const
inline

Get the stop position of the hit.

Returns
The stop position as a XYZTVector.

◆ GetTrackLength()

const double& EDEPHit::GetTrackLength ( ) const
inline

Get the track length of the hit.

Returns
The track length as a double.

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