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

#include <CalCluster.h>

Inheritance diagram for CalCluster:

Public Member Functions

 CalCluster ()
 
 ~CalCluster ()
 
void Clear (Option_t *option="")
 
void addHit (TObject *hit)
 
TRefArray getHits () const
 
int getNHits () const
 
void setPosition (const float *position)
 
std::vector< double > getPosition () const
 
void setEnergy (const double energy)
 
double getEnergy () const
 
void setTime (const double time)
 
double getTime () const
 
void setSeed (TObject *seed_hit)
 
TObject * getSeed () const
 
 ClassDef (CalCluster, 1)
 

Private Attributes

TRefArray hits_ {}
 
TRef seed_hit_
 
int n_hits_ {0}
 
double x_ {-9999}
 
double y_ {-9999}
 
double z_ {-9999}
 
double energy_ {-9999}
 
double time_ {-9999}
 

Detailed Description

Definition at line 23 of file CalCluster.h.

Constructor & Destructor Documentation

◆ CalCluster()

Constructor

◆ ~CalCluster()

~CalCluster ( )

Destructor

Definition at line 17 of file CalCluster.cxx.

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 36 of file CalCluster.cxx.

◆ ClassDef()

ClassDef ( CalCluster  ,
 
)

◆ Clear()

void Clear ( Option_t *  option = "")

Reset the Cluster object

Definition at line 23 of file CalCluster.cxx.

◆ getEnergy()

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

Definition at line 73 of file CalCluster.h.

◆ getHits()

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

Definition at line 47 of file CalCluster.h.

◆ getNHits()

int getNHits ( ) const
inline
Returns
number of references to the calorimeter hits composing this cluster.

Definition at line 53 of file CalCluster.h.

◆ getPosition()

std::vector< double > getPosition ( ) const
inline
Returns
The position of the calorimeter cluster.

Definition at line 63 of file CalCluster.h.

◆ getSeed()

TObject * getSeed ( ) const
inline
Returns
The seed hit of the cluster.

Definition at line 93 of file CalCluster.h.

◆ getTime()

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

Definition at line 83 of file CalCluster.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 70 of file CalCluster.h.

◆ setPosition()

void setPosition ( const float *  position)

Set the position of the calorimeter cluster.

Parameters
position: The position of the calorimeter cluster

Definition at line 30 of file CalCluster.cxx.

◆ setSeed()

void setSeed ( TObject *  seed_hit)
inline

Set the cluster seed i.e. the hit with the highest energy.

Parameters
seedThe cluster seed.

Definition at line 90 of file CalCluster.h.

◆ setTime()

void setTime ( const double  time)
inline

Set the time of the calorimeter clusters.

Parameters
timeThe cluster time

Definition at line 80 of file CalCluster.h.

Member Data Documentation

◆ energy_

double energy_ {-9999}
private

The energy of the cluster in GeV.

Definition at line 118 of file CalCluster.h.

◆ hits_

TRefArray hits_ {}
private

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

Definition at line 100 of file CalCluster.h.

◆ n_hits_

int n_hits_ {0}
private

The number of hits composing this cluster.

Definition at line 106 of file CalCluster.h.

◆ seed_hit_

TRef seed_hit_
private

A reference to the seed hit of this cluster.

Definition at line 103 of file CalCluster.h.

◆ time_

double time_ {-9999}
private

The cluster time.

Definition at line 121 of file CalCluster.h.

◆ x_

double x_ {-9999}
private

The x position of the cluster in (mm).

Definition at line 109 of file CalCluster.h.

◆ y_

double y_ {-9999}
private

The y position of the cluster in (mm).

Definition at line 112 of file CalCluster.h.

◆ z_

double z_ {-9999}
private

The z position of the cluster in (mm).

Definition at line 115 of file CalCluster.h.


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