CbmRoot
Loading...
Searching...
No Matches
cbm::algo::ca::McHitInfo Class Reference

#include <CaMcHitInfo.h>

Public Member Functions

int GetDetectorType () const
 Gets detector type 0 - MVD 1 - STS 2 - MuCh 3 - TRD 4 - TOF.
 
double GetR () const
 Gets distance from z-axis [cm].
 
int GetExternalHitId () const
 Gets index of the hit in the external container.
 
int GetBestMcPointId () const
 Gets index of matched MC point.
 
const std::vector< int > & GetMcPointIds () const
 
int GetStationId () const
 Gets global index of active tracking station.
 
double GetT () const
 Gets time measurement [ns].
 
double GetX () const
 Gets x component of position [cm].
 
double GetY () const
 Gets y component of position [cm].
 
double GetZ () const
 Gets z component of position [cm].
 
void SetBestMcPointId (int pointID)
 Sets index of matched MC point.
 
void AddMcPointId (int pointID)
 Sets index of matched MC point.
 
std::string ToString (int verbose=0, bool header=false) const
 String representation of the object.
 

Public Attributes

int ExtIndex
 index of hit in the external branch
 
int IntIndex
 index of hit in the internal array
 
int iStation
 index of station in active stations array
 
int Det
 detector subsystem ID
 
double x
 x coordinate of position [cm]
 
double y
 y coordinate of position [cm]
 
double z
 z coordinate of position [cm]
 
double time
 hit time [ns]
 
double dx
 x coordinate error [cm]
 
double dy
 y coordinate error [cm]
 
double dt
 time error [ns]
 
double dxy
 covariance between x and y [cm2]
 
int fBestMcPointId {-1}
 index of best matched MC point
 
std::vector< int > fMcPointIds {}
 indices of all matched MC points
 

Detailed Description

a helper class for performance evaluation that contains useful info about cbm hits with hit-mcpoint match information

Definition at line 24 of file CaMcHitInfo.h.

Member Function Documentation

◆ AddMcPointId()

void cbm::algo::ca::McHitInfo::AddMcPointId ( int pointID)
inline

Sets index of matched MC point.

Parameters
pointIDInternal index of MC point

Definition at line 67 of file CaMcHitInfo.h.

References fMcPointIds.

◆ GetBestMcPointId()

int cbm::algo::ca::McHitInfo::GetBestMcPointId ( ) const
inline

Gets index of matched MC point.

Definition at line 42 of file CaMcHitInfo.h.

References fBestMcPointId.

Referenced by ToString().

◆ GetDetectorType()

int cbm::algo::ca::McHitInfo::GetDetectorType ( ) const
inline

Gets detector type 0 - MVD 1 - STS 2 - MuCh 3 - TRD 4 - TOF.

Definition at line 33 of file CaMcHitInfo.h.

References Det.

◆ GetExternalHitId()

int cbm::algo::ca::McHitInfo::GetExternalHitId ( ) const
inline

Gets index of the hit in the external container.

Definition at line 39 of file CaMcHitInfo.h.

References ExtIndex.

◆ GetMcPointIds()

const std::vector< int > & cbm::algo::ca::McHitInfo::GetMcPointIds ( ) const
inline

Definition at line 44 of file CaMcHitInfo.h.

References fMcPointIds.

◆ GetR()

double cbm::algo::ca::McHitInfo::GetR ( ) const
inline

Gets distance from z-axis [cm].

Definition at line 36 of file CaMcHitInfo.h.

References x, and y.

◆ GetStationId()

int cbm::algo::ca::McHitInfo::GetStationId ( ) const
inline

Gets global index of active tracking station.

Definition at line 47 of file CaMcHitInfo.h.

References iStation.

Referenced by CbmL1::IdealTrackFinder().

◆ GetT()

double cbm::algo::ca::McHitInfo::GetT ( ) const
inline

Gets time measurement [ns].

Definition at line 50 of file CaMcHitInfo.h.

References time.

◆ GetX()

double cbm::algo::ca::McHitInfo::GetX ( ) const
inline

Gets x component of position [cm].

Definition at line 53 of file CaMcHitInfo.h.

References x.

◆ GetY()

double cbm::algo::ca::McHitInfo::GetY ( ) const
inline

Gets y component of position [cm].

Definition at line 56 of file CaMcHitInfo.h.

References y.

◆ GetZ()

double cbm::algo::ca::McHitInfo::GetZ ( ) const
inline

Gets z component of position [cm].

Definition at line 59 of file CaMcHitInfo.h.

References z.

◆ SetBestMcPointId()

void cbm::algo::ca::McHitInfo::SetBestMcPointId ( int pointID)
inline

Sets index of matched MC point.

Parameters
pointIDInternal index of MC point

Definition at line 63 of file CaMcHitInfo.h.

References fBestMcPointId.

◆ ToString()

std::string cbm::algo::ca::McHitInfo::ToString ( int verbose = 0,
bool header = false ) const
inline

String representation of the object.

Parameters
verboseVerbosity level
headerIf true, header will be printed

Definition at line 72 of file CaMcHitInfo.h.

References Det, dt, dx, dxy, dy, ExtIndex, GetBestMcPointId(), IntIndex, iStation, time, x, y, and z.

Member Data Documentation

◆ Det

int cbm::algo::ca::McHitInfo::Det

detector subsystem ID

Definition at line 119 of file CaMcHitInfo.h.

Referenced by GetDetectorType(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().

◆ dt

double cbm::algo::ca::McHitInfo::dt

time error [ns]

Definition at line 126 of file CaMcHitInfo.h.

Referenced by cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().

◆ dx

double cbm::algo::ca::McHitInfo::dx

x coordinate error [cm]

Definition at line 124 of file CaMcHitInfo.h.

Referenced by CbmL1::EfficienciesPerformance(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().

◆ dxy

double cbm::algo::ca::McHitInfo::dxy

covariance between x and y [cm2]

Definition at line 127 of file CaMcHitInfo.h.

Referenced by cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().

◆ dy

double cbm::algo::ca::McHitInfo::dy

y coordinate error [cm]

Definition at line 125 of file CaMcHitInfo.h.

Referenced by CbmL1::EfficienciesPerformance(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().

◆ ExtIndex

int cbm::algo::ca::McHitInfo::ExtIndex

index of hit in the external branch

Definition at line 116 of file CaMcHitInfo.h.

Referenced by GetExternalHitId(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().

◆ fBestMcPointId

int cbm::algo::ca::McHitInfo::fBestMcPointId {-1}

index of best matched MC point

Definition at line 128 of file CaMcHitInfo.h.

Referenced by GetBestMcPointId(), and SetBestMcPointId().

◆ fMcPointIds

std::vector<int> cbm::algo::ca::McHitInfo::fMcPointIds {}

indices of all matched MC points

Definition at line 129 of file CaMcHitInfo.h.

Referenced by AddMcPointId(), and GetMcPointIds().

◆ IntIndex

int cbm::algo::ca::McHitInfo::IntIndex

index of hit in the internal array

Definition at line 117 of file CaMcHitInfo.h.

Referenced by cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().

◆ iStation

int cbm::algo::ca::McHitInfo::iStation

index of station in active stations array

Definition at line 118 of file CaMcHitInfo.h.

Referenced by GetStationId(), CbmL1::HistoPerformance(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().

◆ time

double cbm::algo::ca::McHitInfo::time

hit time [ns]

Definition at line 123 of file CaMcHitInfo.h.

Referenced by GetT(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().

◆ x

double cbm::algo::ca::McHitInfo::x

◆ y

double cbm::algo::ca::McHitInfo::y

◆ z

double cbm::algo::ca::McHitInfo::z

z coordinate of position [cm]

Definition at line 122 of file CaMcHitInfo.h.

Referenced by GetZ(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().


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