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

#include <MCEcalHit.h>

Inheritance diagram for MCEcalHit:

Public Member Functions

 MCEcalHit ()
 
virtual ~MCEcalHit ()
 
void Clear (Option_t *option="")
 
void setPosition (const double *position, bool rotate=false)
 
std::vector< double > getPosition () const
 
double getGlobalX () const
 
double getGlobalY () const
 
double getGlobalZ () const
 
void setEnergy (const double energy)
 
double getEnergy () const
 
void setSystem (const int system)
 
int getSystem ()
 
void setLayer (const int layer)
 
int getLayer () const
 
void setIX (const int ix)
 
int getIX () const
 
void setIY (const int iy)
 
int getIY () const
 
 ClassDef (MCEcalHit, 1)
 

Private Attributes

double x_ {-999}
 
double y_ {-999}
 
double z_ {-999}
 
int system_ {-999}
 
int layer_ {-999}
 
int ix_ {-999}
 
int iy_ {-999}
 
float energy_ {-999}
 

Detailed Description

Definition at line 22 of file MCEcalHit.h.

Constructor & Destructor Documentation

◆ MCEcalHit()

MCEcalHit ( )

Constructor

◆ ~MCEcalHit()

~MCEcalHit ( )
virtual

Destructor

Definition at line 15 of file MCEcalHit.cxx.

Member Function Documentation

◆ ClassDef()

ClassDef ( MCEcalHit  ,
 
)

◆ Clear()

void Clear ( Option_t *  option = "")

Reset the Hit object.

Definition at line 19 of file MCEcalHit.cxx.

◆ getEnergy()

double getEnergy ( ) const
inline
Returns
The hit energy deposit.

Definition at line 62 of file MCEcalHit.h.

◆ getGlobalX()

double getGlobalX ( ) const
inline
Returns
the global X coordinate of the hit

Definition at line 46 of file MCEcalHit.h.

◆ getGlobalY()

double getGlobalY ( ) const
inline
Returns
the global Y coordinate of the hit

Definition at line 49 of file MCEcalHit.h.

◆ getGlobalZ()

double getGlobalZ ( ) const
inline
Returns
the global Z coordinate of the hit

Definition at line 52 of file MCEcalHit.h.

◆ getIX()

int getIX ( ) const
inline

Definition at line 92 of file MCEcalHit.h.

◆ getIY()

int getIY ( ) const
inline

Definition at line 102 of file MCEcalHit.h.

◆ getLayer()

int getLayer ( ) const
inline

Definition at line 82 of file MCEcalHit.h.

◆ getPosition()

std::vector< double > getPosition ( ) const
inline
Returns
The hit position.

Definition at line 43 of file MCEcalHit.h.

◆ getSystem()

int getSystem ( )
inline

Definition at line 72 of file MCEcalHit.h.

◆ setEnergy()

void setEnergy ( const double  energy)
inline

Set the hit energy deposit.

Parameters
energyThe hit energy.

Definition at line 59 of file MCEcalHit.h.

◆ setIX()

void setIX ( const int  ix)
inline

Set the x index of the hit.

Parameters
layerThe x index of the hit.

Definition at line 89 of file MCEcalHit.h.

◆ setIY()

void setIY ( const int  iy)
inline

Set the y index of the hit.

Parameters
layerThe y index of the hit.

Definition at line 99 of file MCEcalHit.h.

◆ setLayer()

void setLayer ( const int  layer)
inline

Set the layer of the hit.

Parameters
layerThe layer of the hit.

Definition at line 79 of file MCEcalHit.h.

◆ setPosition()

void setPosition ( const double *  position,
bool  rotate = false 
)

Set the hit position.

Parameters
positionThe hit position.

Definition at line 23 of file MCEcalHit.cxx.

◆ setSystem()

void setSystem ( const int  system)
inline

Set the system of the hit.

Parameters
systemThe system of the hit.

Definition at line 69 of file MCEcalHit.h.

Member Data Documentation

◆ energy_

float energy_ {-999}
private

Energy of hit

Definition at line 130 of file MCEcalHit.h.

◆ ix_

int ix_ {-999}
private

X index of crystal

Definition at line 124 of file MCEcalHit.h.

◆ iy_

int iy_ {-999}
private

Y index of crystal

Definition at line 127 of file MCEcalHit.h.

◆ layer_

int layer_ {-999}
private

Layer

Definition at line 121 of file MCEcalHit.h.

◆ system_

int system_ {-999}
private

System

Definition at line 118 of file MCEcalHit.h.

◆ x_

double x_ {-999}
private

The x position of the hit.

Definition at line 109 of file MCEcalHit.h.

◆ y_

double y_ {-999}
private

The x position of the hit.

Definition at line 112 of file MCEcalHit.h.

◆ z_

double z_ {-999}
private

The x position of the hit.

Definition at line 115 of file MCEcalHit.h.


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