EDEpReader
Loading...
Searching...
No Matches
EDEPHit Class Reference

Represents a hit in a detector. More...

#include <EDEPHit.h>

Public Member Functions

 EDEPHit ()=default
 Default constructor for EDEPHit in dictionaries.
 
 EDEPHit (TG4HitSegment hit)
 Constructor for EDEPHit.
 
 EDEPHit (TG4HitSegment hit, int i)
 Constructor for EDEPHit.
 
 ~EDEPHit ()
 Destructor for EDEPHit.
 
const TLorentzVector & GetStart () const
 Get the start position of the hit.
 
const TLorentzVector & GetStop () const
 Get the stop position of the hit.
 
const TVector3 & GetStartMomentum () const
 Get the true momentum at the start position of the hit.
 
const TVector3 & GetStopMomentum () const
 Get the true momentum at the stop position of the hit.
 
const double & GetEnergyDeposit () const
 Get the energy deposited by the hit.
 
const double & GetSecondaryDeposit () const
 Get the secondary deposition of the hit.
 
const double & GetTrackLength () const
 Get the track length of the hit.
 
const int & GetGetContrib () const
 Get the main contributor to the hit.
 
const int & GetPrimaryId () const
 Get the ID of the primary particle generating the hit.
 
const int & GetId () const
 Get the ID of the hit.
 

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 ( TG4HitSegment hit)
inline

Constructor for EDEPHit.

Parameters
hitThe TG4HitSegment object containing hit information.

◆ EDEPHit() [2/2]

EDEPHit::EDEPHit ( TG4HitSegment hit,
int i )
inline

Constructor for EDEPHit.

Parameters
hitThe TG4HitSegment object containing hit information.
iThe index of the hit.

Member Function Documentation

◆ GetEnergyDeposit()

const double & EDEPHit::GetEnergyDeposit ( ) const
inline

Get the energy deposited by the hit.

Returns
The energy deposited as a double.

◆ GetGetContrib()

const int & EDEPHit::GetGetContrib ( ) const
inline

Get the main contributor to the hit.

Returns
The contribution as an integer.

◆ 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 TLorentzVector & EDEPHit::GetStart ( ) const
inline

Get the start position of the hit.

Returns
The start position as a TLorentzVector.

◆ GetStartMomentum()

const TVector3 & EDEPHit::GetStartMomentum ( ) const
inline

Get the true momentum at the start position of the hit.

Returns
The true momentum at the start position as a TVector3.

◆ GetStop()

const TLorentzVector & EDEPHit::GetStop ( ) const
inline

Get the stop position of the hit.

Returns
The stop position as a TLorentzVector.

◆ GetStopMomentum()

const TVector3 & EDEPHit::GetStopMomentum ( ) const
inline

Get the true momentum at the stop position of the hit.

Returns
The true momentum at the stop position as a TVector3.

◆ 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: