CbmRoot
Loading...
Searching...
No Matches
cbm::ca::tools::HitRecord Struct Reference

A helper structure to store hits information from different detectors in a uniform manner. More...

#include <CaToolsHitRecord.h>

Public Member Functions

bool Accept () const
 
std::string ToString () const
 Converts hit record to a string.
 

Public Attributes

double fX = -1.
 x component of hit position [cm]
 
double fY = -1.
 y component of hit position [cm]
 
double fZ = -1.
 z component of hit position [cm]
 
double fT = -1.
 time of hit [ns]
 
double fDx2 = -1.
 error of x component of hit position [cm]
 
double fDy2 = -1.
 error of y component of hit position [cm]
 
double fDxy = -1.
 correlation between x and y components [cm]
 
double fDt2 = -1.
 time error of hit [ns]
 
double fRangeX = -1.
 range of x [cm]
 
double fRangeY = -1.
 range of y [cm]
 
double fRangeT = -1.
 range of t [ns]
 
int64_t fDataStream = -1
 Global index of detector module.
 
int fPointId = -1
 index of MC point
 
int fExtId = -2
 external index of hit
 
int fStaId = -2
 index of active tracking station
 
int fStripF = -2
 index of front strip
 
int fStripB = -2
 index of back strip
 
int fDet = -2
 detector ID
 

Static Public Attributes

static constexpr bool kVerboseAccept = true
 Tests hit quality (for example, if all the quantities are not nan)
 

Detailed Description

A helper structure to store hits information from different detectors in a uniform manner.

Note
This structure is to be used ONLY at the TS/event initialization stage to fill hit arrays of different types.

Definition at line 23 of file CaToolsHitRecord.h.

Member Function Documentation

◆ Accept()

bool HitRecord::Accept ( ) const

Definition at line 21 of file CaToolsHitRecord.cxx.

References fDataStream, fDet, fDt2, fDx2, fDxy, fDy2, fExtId, fT, fX, fY, fZ, and kVerboseAccept.

Referenced by cbm::ca::TimeSliceReader::ReadHitsForDetector().

◆ ToString()

std::string HitRecord::ToString ( ) const

Converts hit record to a string.

Definition at line 73 of file CaToolsHitRecord.cxx.

References fDataStream, fDet, fDt2, fDx2, fDxy, fDy2, fExtId, fPointId, fRangeT, fRangeX, fRangeY, fStaId, fStripB, fStripF, fT, fX, fY, and fZ.

Referenced by cbm::ca::TimeSliceReader::ReadHitsForDetector().

Member Data Documentation

◆ fDataStream

int64_t cbm::ca::tools::HitRecord::fDataStream = -1

Global index of detector module.

Definition at line 35 of file CaToolsHitRecord.h.

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

◆ fDet

int cbm::ca::tools::HitRecord::fDet = -2

◆ fDt2

double cbm::ca::tools::HitRecord::fDt2 = -1.

◆ fDx2

double cbm::ca::tools::HitRecord::fDx2 = -1.

error of x component of hit position [cm]

Definition at line 28 of file CaToolsHitRecord.h.

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

◆ fDxy

double cbm::ca::tools::HitRecord::fDxy = -1.

correlation between x and y components [cm]

Definition at line 30 of file CaToolsHitRecord.h.

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

◆ fDy2

double cbm::ca::tools::HitRecord::fDy2 = -1.

error of y component of hit position [cm]

Definition at line 29 of file CaToolsHitRecord.h.

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

◆ fExtId

int cbm::ca::tools::HitRecord::fExtId = -2

◆ fPointId

int cbm::ca::tools::HitRecord::fPointId = -1

index of MC point

Definition at line 36 of file CaToolsHitRecord.h.

Referenced by ToString().

◆ fRangeT

double cbm::ca::tools::HitRecord::fRangeT = -1.

◆ fRangeX

double cbm::ca::tools::HitRecord::fRangeX = -1.

◆ fRangeY

double cbm::ca::tools::HitRecord::fRangeY = -1.

◆ fStaId

int cbm::ca::tools::HitRecord::fStaId = -2

index of active tracking station

Definition at line 38 of file CaToolsHitRecord.h.

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

◆ fStripB

int cbm::ca::tools::HitRecord::fStripB = -2

◆ fStripF

int cbm::ca::tools::HitRecord::fStripF = -2

◆ fT

double cbm::ca::tools::HitRecord::fT = -1.

◆ fX

double cbm::ca::tools::HitRecord::fX = -1.

x component of hit position [cm]

Definition at line 24 of file CaToolsHitRecord.h.

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

◆ fY

double cbm::ca::tools::HitRecord::fY = -1.

y component of hit position [cm]

Definition at line 25 of file CaToolsHitRecord.h.

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

◆ fZ

double cbm::ca::tools::HitRecord::fZ = -1.

z component of hit position [cm]

Definition at line 26 of file CaToolsHitRecord.h.

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

◆ kVerboseAccept

bool cbm::ca::tools::HitRecord::kVerboseAccept = true
staticconstexpr

Tests hit quality (for example, if all the quantities are not nan)

Returns
true Hit is accepted
false Hit is discarded

Definition at line 46 of file CaToolsHitRecord.h.

Referenced by Accept().


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