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

#include <MCTrackerHit.h>

Inheritance diagram for MCTrackerHit:

Public Member Functions

 MCTrackerHit ()
 
virtual ~MCTrackerHit ()
 
void Clear (Option_t *option="")
 
void setPosition (const double *position, bool rotate=false)
 
std::vector< double > getPosition () const
 
void setMomentum (const float *momentum, bool rotate=false)
 
std::vector< float > getMomentum () const
 
double getGlobalX () const
 
double getGlobalY () const
 
double getGlobalZ () const
 
void setTime (const double time)
 
double getTime () const
 
void setEdep (const double edep)
 
double getEdep () const
 
void setModule (const int module)
 
int getModule ()
 
void setLayer (const int layer)
 
int getLayer () const
 
void setPDG (const int pdg)
 
int getPDG () const
 
 ClassDef (MCTrackerHit, 1)
 

Private Attributes

double x_ {-999}
 
double y_ {-999}
 
double z_ {-999}
 
float px_ {-999}
 
float py_ {-999}
 
float pz_ {-999}
 
double time_ {-999}
 
int layer_ {-999}
 
int module_ {-999}
 
float edep_ {-999}
 
int pdg_ {-999}
 

Detailed Description

Definition at line 22 of file MCTrackerHit.h.

Constructor & Destructor Documentation

◆ MCTrackerHit()

Constructor

◆ ~MCTrackerHit()

~MCTrackerHit ( )
virtual

Destructor

Definition at line 15 of file MCTrackerHit.cxx.

Member Function Documentation

◆ ClassDef()

ClassDef ( MCTrackerHit  ,
 
)

◆ Clear()

void Clear ( Option_t *  option = "")

Reset the Hit object.

Definition at line 19 of file MCTrackerHit.cxx.

◆ getEdep()

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

Definition at line 75 of file MCTrackerHit.h.

◆ getGlobalX()

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

Definition at line 49 of file MCTrackerHit.h.

◆ getGlobalY()

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

Definition at line 52 of file MCTrackerHit.h.

◆ getGlobalZ()

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

Definition at line 55 of file MCTrackerHit.h.

◆ getLayer()

int getLayer ( ) const
inline

Definition at line 86 of file MCTrackerHit.h.

◆ getModule()

int getModule ( )
inline

Definition at line 80 of file MCTrackerHit.h.

◆ getMomentum()

std::vector< float > getMomentum ( ) const
inline

Definition at line 46 of file MCTrackerHit.h.

◆ getPDG()

int getPDG ( ) const
inline

Definition at line 92 of file MCTrackerHit.h.

◆ getPosition()

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

Definition at line 43 of file MCTrackerHit.h.

◆ getTime()

double getTime ( ) const
inline
Returns
The hit time.

Definition at line 65 of file MCTrackerHit.h.

◆ setEdep()

void setEdep ( const double  edep)
inline

Set the hit energy deposit.

Parameters
chargeThe hit energy.

Definition at line 72 of file MCTrackerHit.h.

◆ setLayer()

void setLayer ( const int  layer)
inline

Definition at line 83 of file MCTrackerHit.h.

◆ setModule()

void setModule ( const int  module)
inline

Definition at line 77 of file MCTrackerHit.h.

◆ setMomentum()

void setMomentum ( const float *  momentum,
bool  rotate = false 
)

Definition at line 23 of file MCTrackerHit.cxx.

◆ setPDG()

void setPDG ( const int  pdg)
inline

Definition at line 89 of file MCTrackerHit.h.

◆ setPosition()

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

Set the hit position.

Parameters
positionThe hit position.

Definition at line 42 of file MCTrackerHit.cxx.

◆ setTime()

void setTime ( const double  time)
inline

Set the hit time.

Parameters
timeThe hit time.

Definition at line 62 of file MCTrackerHit.h.

Member Data Documentation

◆ edep_

float edep_ {-999}
private

Energy deposit of hit

Definition at line 123 of file MCTrackerHit.h.

◆ layer_

int layer_ {-999}
private

Layer (Axial + Stereo). 1-12 in 2015/2016 geometry, 1-14 in 2019 geometry

Definition at line 117 of file MCTrackerHit.h.

◆ module_

int module_ {-999}
private

Module

Definition at line 120 of file MCTrackerHit.h.

◆ pdg_

int pdg_ {-999}
private

pdg id of particle that made the hit

Definition at line 126 of file MCTrackerHit.h.

◆ px_

float px_ {-999}
private

The truth momentum of the hit. Only MC

Definition at line 109 of file MCTrackerHit.h.

◆ py_

float py_ {-999}
private

Definition at line 110 of file MCTrackerHit.h.

◆ pz_

float pz_ {-999}
private

Definition at line 111 of file MCTrackerHit.h.

◆ time_

double time_ {-999}
private

The hit time.

Definition at line 114 of file MCTrackerHit.h.

◆ x_

double x_ {-999}
private

The x position of the hit.

Definition at line 100 of file MCTrackerHit.h.

◆ y_

double y_ {-999}
private

The x position of the hit.

Definition at line 103 of file MCTrackerHit.h.

◆ z_

double z_ {-999}
private

The x position of the hit.

Definition at line 106 of file MCTrackerHit.h.


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