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

#include <TrackerHit.h>

Inheritance diagram for TrackerHit:

Public Member Functions

 TrackerHit ()
 
virtual ~TrackerHit ()
 
void Clear (Option_t *option="")
 
TRefArray getRawHits () const
 
void setPosition (const double *position, bool rotate=false, int type=0)
 
std::vector< double > getPosition () const
 
double getGlobalX () const
 
double getGlobalY () const
 
double getGlobalZ () const
 
void setCovarianceMatrix (std::vector< float > cov)
 
std::vector< double > getCovarianceMatrix () const
 
void setTime (const double time)
 
void addMCPartID (const int id)
 
double getTime () const
 
void setCharge (const double charge)
 
double getCharge () const
 
void setRawCharge (const double rawcharge)
 
double getRawCharge () const
 
void setVolume (const int volume)
 
int getVolume ()
 
void setLayer (const int layer)
 
int getLayer () const
 
bool isShared () const
 
void addRawHit (TObject *rawhit)
 
void setID (const int id)
 
int getID () const
 
std::vector< int > getMCPartIDs () const
 
std::vector< int > getRawHitStripNumbers ()
 
void setRawHitStripNumbers (std::vector< int > rawhit_strips)
 
 ClassDef (TrackerHit, 1)
 

Private Attributes

int n_rawhits_ {0}
 
double x_ {-999}
 
double y_ {-999}
 
double z_ {-999}
 
double cxx_ {0}
 
double cxy_ {0}
 
double cxz_ {0}
 
double cyy_ {0}
 
double cyz_ {0}
 
double czz_ {0}
 
double time_ {-999}
 
double charge_ {-999}
 
TRefArray raw_hits_ {TRefArray{}}
 
int layer_ {-999}
 
int volume_ {-999}
 
float rawcharge_ {-999}
 
int shared_ {-999}
 
int id_ {-999}
 
TRefArray tracks_ {TRefArray{}}
 
std::vector< int > mcPartIDs_
 
std::vector< int > rawhit_strips_
 

Detailed Description

Definition at line 22 of file TrackerHit.h.

Constructor & Destructor Documentation

◆ TrackerHit()

Constructor

◆ ~TrackerHit()

~TrackerHit ( )
virtual

Destructor

Definition at line 15 of file TrackerHit.cxx.

Member Function Documentation

◆ addMCPartID()

void addMCPartID ( const int  id)
inline

Add LCIO of MC Particle related to hit.

Parameters
idThe LCIO ID of the related MC Particle.

Definition at line 80 of file TrackerHit.h.

◆ addRawHit()

void addRawHit ( TObject *  rawhit)
inline

Add raw hit to the raw hit reference array

Definition at line 115 of file TrackerHit.h.

◆ ClassDef()

ClassDef ( TrackerHit  ,
 
)

◆ Clear()

void Clear ( Option_t *  option = "")

Reset the Hit object.

Definition at line 19 of file TrackerHit.cxx.

◆ getCharge()

double getCharge ( ) const
inline
Returns
The hit charge.

Definition at line 93 of file TrackerHit.h.

◆ getCovarianceMatrix()

std::vector< double > getCovarianceMatrix ( ) const
Returns
The convariance matrix.

Definition at line 79 of file TrackerHit.cxx.

◆ getGlobalX()

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

Definition at line 50 of file TrackerHit.h.

◆ getGlobalY()

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

Definition at line 53 of file TrackerHit.h.

◆ getGlobalZ()

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

Definition at line 56 of file TrackerHit.h.

◆ getID()

int getID ( ) const
inline

Definition at line 124 of file TrackerHit.h.

◆ getLayer()

int getLayer ( ) const
inline

Definition at line 109 of file TrackerHit.h.

◆ getMCPartIDs()

std::vector< int > getMCPartIDs ( ) const
inline

LCIO IDs of related MC Particles

Definition at line 127 of file TrackerHit.h.

◆ getPosition()

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

Definition at line 47 of file TrackerHit.h.

◆ getRawCharge()

double getRawCharge ( ) const
inline
Returns
The hit charge.

Definition at line 98 of file TrackerHit.h.

◆ getRawHits()

TRefArray getRawHits ( ) const
inline

Get the references to the raw hits associated with this tracker hit

Definition at line 36 of file TrackerHit.h.

◆ getRawHitStripNumbers()

std::vector< int > getRawHitStripNumbers ( )
inline

Return rawhit strip numbers on hit

Definition at line 130 of file TrackerHit.h.

◆ getTime()

double getTime ( ) const
inline
Returns
The hit time.

Definition at line 83 of file TrackerHit.h.

◆ getVolume()

int getVolume ( )
inline

Definition at line 103 of file TrackerHit.h.

◆ isShared()

bool isShared ( ) const

Is a hit shared between multiple tracks.

◆ setCharge()

void setCharge ( const double  charge)
inline

Set the hit charge deposit.

Parameters
chargeThe hit charge.

Definition at line 90 of file TrackerHit.h.

◆ setCovarianceMatrix()

void setCovarianceMatrix ( std::vector< float >  cov)

Set the covariance matrix.

Parameters
covThe covariance matrix.

Definition at line 70 of file TrackerHit.cxx.

◆ setID()

void setID ( const int  id)
inline

LCIO id

Definition at line 122 of file TrackerHit.h.

◆ setLayer()

void setLayer ( const int  layer)
inline

Definition at line 106 of file TrackerHit.h.

◆ setPosition()

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

Set the hit position.

Parameters
positionThe hit position.

Definition at line 23 of file TrackerHit.cxx.

◆ setRawCharge()

void setRawCharge ( const double  rawcharge)
inline

Definition at line 95 of file TrackerHit.h.

◆ setRawHitStripNumbers()

void setRawHitStripNumbers ( std::vector< int >  rawhit_strips)
inline

Set rawhit strips on hit

Definition at line 133 of file TrackerHit.h.

◆ setTime()

void setTime ( const double  time)
inline

Set the hit time.

Parameters
timeThe hit time.

Definition at line 73 of file TrackerHit.h.

◆ setVolume()

void setVolume ( const int  volume)
inline

Definition at line 100 of file TrackerHit.h.

Member Data Documentation

◆ charge_

double charge_ {-999}
private

The hit charge deposit.

Definition at line 163 of file TrackerHit.h.

◆ cxx_

double cxx_ {0}
private

Components of the covariance matrix.

Definition at line 152 of file TrackerHit.h.

◆ cxy_

double cxy_ {0}
private

Definition at line 153 of file TrackerHit.h.

◆ cxz_

double cxz_ {0}
private

Definition at line 154 of file TrackerHit.h.

◆ cyy_

double cyy_ {0}
private

Definition at line 155 of file TrackerHit.h.

◆ cyz_

double cyz_ {0}
private

Definition at line 156 of file TrackerHit.h.

◆ czz_

double czz_ {0}
private

Definition at line 157 of file TrackerHit.h.

◆ id_

int id_ {-999}
private

LCIO id

Definition at line 181 of file TrackerHit.h.

◆ layer_

int layer_ {-999}
private

Layer (Axial + Stereo). 1-6 in 2015/2016 geometry, 0-7 in 2019 geometry

Definition at line 169 of file TrackerHit.h.

◆ mcPartIDs_

std::vector<int> mcPartIDs_
private

LCIO ids of MC Particles associated to the hit

Definition at line 187 of file TrackerHit.h.

◆ n_rawhits_

int n_rawhits_ {0}
private

Number of raw hits forming the Tracker hit

Definition at line 140 of file TrackerHit.h.

◆ raw_hits_

TRefArray raw_hits_ {TRefArray{}}
private

The raw hits

Definition at line 166 of file TrackerHit.h.

◆ rawcharge_

float rawcharge_ {-999}
private

Raw charge: sum of the raw hit fit amplitudes

Definition at line 175 of file TrackerHit.h.

◆ rawhit_strips_

std::vector<int> rawhit_strips_
private

RawHit Strip numbers on hit

Definition at line 190 of file TrackerHit.h.

◆ shared_

int shared_ {-999}
private

How many tracks share this hit

Definition at line 178 of file TrackerHit.h.

◆ time_

double time_ {-999}
private

The hit time.

Definition at line 160 of file TrackerHit.h.

◆ tracks_

TRefArray tracks_ {TRefArray{}}
private

Tracks that share this hit

Definition at line 184 of file TrackerHit.h.

◆ volume_

int volume_ {-999}
private

Volume 0-top 1-bottom)

Definition at line 172 of file TrackerHit.h.

◆ x_

double x_ {-999}
private

The x position of the hit.

Definition at line 143 of file TrackerHit.h.

◆ y_

double y_ {-999}
private

The x position of the hit.

Definition at line 146 of file TrackerHit.h.

◆ z_

double z_ {-999}
private

The x position of the hit.

Definition at line 149 of file TrackerHit.h.


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