hpstr
The Heavy Photon Search Toolkit for Reconstruction (hpstr) provides an interface to physics data from the HPS experiment saved in the LCIO format and converts it into an ROOT based format.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CalHit Class Reference

#include <CalHit.h>

Inheritance diagram for CalHit:

Public Member Functions

 CalHit ()
 
 ~CalHit ()
 
void Clear (Option_t *option="")
 
void setEnergy (const double energy)
 
double getEnergy () const
 
void setTime (const double time)
 
double getTime () const
 
void setCrystalIndices (int index_x_, int index_y_)
 
std::vector< int > getCrystalIndices () const
 

Private Member Functions

 ClassDef (CalHit, 1)
 

Private Attributes

int index_x_ {-9999}
 
int index_y_ {-9999}
 
double energy_ {-9999}
 
double time_ {0}
 

Detailed Description

Definition at line 15 of file CalHit.h.

Constructor & Destructor Documentation

◆ CalHit()

CalHit ( )

Constructor

◆ ~CalHit()

~CalHit ( )

Destructor

Definition at line 15 of file CalHit.cxx.

Member Function Documentation

◆ ClassDef()

ClassDef ( CalHit  ,
 
)
private

◆ Clear()

void Clear ( Option_t *  option = "")

Reset the hit object

Definition at line 19 of file CalHit.cxx.

◆ getCrystalIndices()

std::vector< int > getCrystalIndices ( ) const
inline
Returns
The crystal indices.

Definition at line 57 of file CalHit.h.

◆ getEnergy()

double getEnergy ( ) const
inline
Returns
The energy of the hit in GeV.

Definition at line 36 of file CalHit.h.

◆ getTime()

double getTime ( ) const
inline
Returns
The time of the hit in ns.

Definition at line 46 of file CalHit.h.

◆ setCrystalIndices()

void setCrystalIndices ( int  index_x_,
int  index_y_ 
)

Set the indices of the crystal.

Parameters
index_xThe index along x
index_yThe index along y

Definition at line 23 of file CalHit.cxx.

◆ setEnergy()

void setEnergy ( const double  energy)
inline

Set the energy of the hit in GeV.

Parameters
energyThe energy of the hit in GeV.

Definition at line 33 of file CalHit.h.

◆ setTime()

void setTime ( const double  time)
inline

Set the time of the hit in ns.

Parameters
timeThe time of the hit in ns.

Definition at line 43 of file CalHit.h.

Member Data Documentation

◆ energy_

double energy_ {-9999}
private

The energy of the hit in GeV.

Definition at line 68 of file CalHit.h.

◆ index_x_

int index_x_ {-9999}
private

The crystal index along x.

Definition at line 62 of file CalHit.h.

◆ index_y_

int index_y_ {-9999}
private

The crystal index along y.

Definition at line 65 of file CalHit.h.

◆ time_

double time_ {0}
private

The time of the hit in ns.

Definition at line 71 of file CalHit.h.


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