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
HodoCluster Class Reference

#include <HodoCluster.h>

Inheritance diagram for HodoCluster:

Public Member Functions

 HodoCluster ()
 
 HodoCluster (int ix, int iy, int layer, double energy, double time)
 
 ~HodoCluster ()
 
void Clear (Option_t *option="")
 
void addHit (TObject *hit)
 
TRefArray * getHits () const
 
void setEnergy (const double energy)
 
double getEnergy () 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 (HodoCluster, 1)
 

Public Attributes

TRefArray * hits_ {new TRefArray{}}
 
int n_hits_ {0}
 
int index_x_ {-9999}
 
int index_y_ {-9999}
 
int layer_ {-9999}
 
double energy_ {-9999}
 
double time_ {-9999}
 

Detailed Description

Definition at line 23 of file HodoCluster.h.

Constructor & Destructor Documentation

◆ HodoCluster() [1/2]

HodoCluster ( )
inline

Constructor

Definition at line 28 of file HodoCluster.h.

◆ HodoCluster() [2/2]

HodoCluster ( int  ix,
int  iy,
int  layer,
double  energy,
double  time 
)
inline

Definition at line 29 of file HodoCluster.h.

◆ ~HodoCluster()

Destructor

Member Function Documentation

◆ addHit()

void addHit ( TObject *  hit)

Add a reference to a calorimeter hit composing this cluster.

Parameters
hit: Cal hit composing with this cluster

Definition at line 22 of file HodoCluster.cxx.

◆ ClassDef()

ClassDef ( HodoCluster  ,
 
)

◆ Clear()

void Clear ( Option_t *  option = "")

Reset the Cluster object

Definition at line 16 of file HodoCluster.cxx.

◆ getEnergy()

double getEnergy ( ) const
inline
Returns
The energy of the calorimeter cluster.

Definition at line 59 of file HodoCluster.h.

◆ getHits()

TRefArray * getHits ( ) const
inline
Returns
An array of references to the calorimeter hits composing this cluster.

Definition at line 49 of file HodoCluster.h.

◆ getIndices()

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

Definition at line 94 of file HodoCluster.h.

◆ getLayer()

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

Definition at line 69 of file HodoCluster.h.

◆ getTime()

double getTime ( ) const
inline
Returns
The time of the cluster.

Definition at line 80 of file HodoCluster.h.

◆ setEnergy()

void setEnergy ( const double  energy)
inline

Set the energy of the calorimeter cluster.

Parameters
energy: The energy of the calorimeter cluster.

Definition at line 56 of file HodoCluster.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 88 of file HodoCluster.h.

◆ setLayer()

void setLayer ( const int  layer)
inline

Set the layer of the hit.

Parameters
layerThe layer of the hit.

Definition at line 66 of file HodoCluster.h.

◆ setTime()

void setTime ( const double  time)
inline

Set the time of the calorimeter clusters.

Parameters
timeThe cluster time

Definition at line 77 of file HodoCluster.h.

Member Data Documentation

◆ energy_

double energy_ {-9999}

The energy of the cluster in GeV.

Definition at line 117 of file HodoCluster.h.

◆ hits_

TRefArray* hits_ {new TRefArray{}}

An array of references to the hits associated withi this cluster.

Definition at line 102 of file HodoCluster.h.

◆ index_x_

int index_x_ {-9999}

The x index of the cluster

Definition at line 108 of file HodoCluster.h.

◆ index_y_

int index_y_ {-9999}

The y index of the cluster

Definition at line 111 of file HodoCluster.h.

◆ layer_

int layer_ {-9999}

The layer of the cluster

Definition at line 114 of file HodoCluster.h.

◆ n_hits_

int n_hits_ {0}

The number of hits composing this cluster.

Definition at line 105 of file HodoCluster.h.

◆ time_

double time_ {-9999}

The cluster time.

Definition at line 120 of file HodoCluster.h.


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