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 | Public Attributes | List of all members
HodoHit Class Reference

#include <HodoHit.h>

Inheritance diagram for HodoHit:

Public Member Functions

 HodoHit ()
 
 HodoHit (int ix, int iy, int layer, int hole, double energy, double time)
 
 ~HodoHit ()
 
void setEnergy (const double energy)
 
double getEnergy () const
 
void setHole (const int hole)
 
double getHole () const
 
void setLayer (const int layer)
 
double getLayer () const
 
void setTime (const double time)
 
double getTime () const
 
void setIndices (int index_x, int index_y)
 
std::vector< int > getIndices () const
 
 ClassDef (HodoHit, 1)
 

Public Attributes

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

Detailed Description

Definition at line 17 of file HodoHit.h.

Constructor & Destructor Documentation

◆ HodoHit() [1/2]

HodoHit ( )
inline

Constructor

Definition at line 22 of file HodoHit.h.

◆ HodoHit() [2/2]

HodoHit ( int  ix,
int  iy,
int  layer,
int  hole,
double  energy,
double  time 
)
inline

Definition at line 23 of file HodoHit.h.

◆ ~HodoHit()

~HodoHit ( )
inline

Destructor

Definition at line 27 of file HodoHit.h.

Member Function Documentation

◆ ClassDef()

ClassDef ( HodoHit  ,
 
)

◆ getEnergy()

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

Definition at line 37 of file HodoHit.h.

◆ getHole()

double getHole ( ) const
inline
Returns
The layer number of the hit.

Definition at line 46 of file HodoHit.h.

◆ getIndices()

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

Definition at line 80 of file HodoHit.h.

◆ getLayer()

double getLayer ( ) const
inline
Returns
The layer number of the hit.

Definition at line 56 of file HodoHit.h.

◆ getTime()

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

Definition at line 66 of file HodoHit.h.

◆ 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 34 of file HodoHit.h.

◆ setHole()

void setHole ( const int  hole)
inline

Set the hole number of the hit.

Parameters
holeThe hole number of the hit.

Definition at line 43 of file HodoHit.h.

◆ setIndices()

void setIndices ( int  index_x,
int  index_y 
)
inline

Set the indices of the crystal.

Parameters
index_xThe index along x
index_yThe index along y

Definition at line 74 of file HodoHit.h.

◆ setLayer()

void setLayer ( const int  layer)
inline

Set the layer of the hit.

Parameters
layerThe layer of the hit.

Definition at line 53 of file HodoHit.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 63 of file HodoHit.h.

Member Data Documentation

◆ energy_

double energy_ {-9999}

The energy of the hit in GeV.

Definition at line 97 of file HodoHit.h.

◆ hole_

int hole_ {-9999}

Definition at line 94 of file HodoHit.h.

◆ index_x_

int index_x_ {-9999}

The crystal index along x.

Definition at line 87 of file HodoHit.h.

◆ index_y_

int index_y_ {-9999}

The crystal index along y.

Definition at line 90 of file HodoHit.h.

◆ layer_

int layer_ {-9999}

Definition at line 92 of file HodoHit.h.

◆ time_

double time_ {0}

The time of the hit in ns.

Definition at line 100 of file HodoHit.h.


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