CbmRoot
Loading...
Searching...
No Matches
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.

◆ ToString()

std::string HitRecord::ToString ( ) const

Converts hit record to a string.

Definition at line 73 of file CaToolsHitRecord.cxx.

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.

◆ fDet

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

detector ID

Definition at line 41 of file CaToolsHitRecord.h.

◆ fDt2

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

time error of hit [ns]

Definition at line 31 of file CaToolsHitRecord.h.

◆ fDx2

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

error of x component of hit position [cm]

Definition at line 28 of file CaToolsHitRecord.h.

◆ fDxy

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

correlation between x and y components [cm]

Definition at line 30 of file CaToolsHitRecord.h.

◆ fDy2

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

error of y component of hit position [cm]

Definition at line 29 of file CaToolsHitRecord.h.

◆ fExtId

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

external index of hit

Definition at line 37 of file CaToolsHitRecord.h.

◆ fPointId

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

index of MC point

Definition at line 36 of file CaToolsHitRecord.h.

◆ fRangeT

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

range of t [ns]

Definition at line 34 of file CaToolsHitRecord.h.

◆ fRangeX

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

range of x [cm]

Definition at line 32 of file CaToolsHitRecord.h.

◆ fRangeY

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

range of y [cm]

Definition at line 33 of file CaToolsHitRecord.h.

◆ fStaId

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

index of active tracking station

Definition at line 38 of file CaToolsHitRecord.h.

◆ fStripB

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

index of back strip

Definition at line 40 of file CaToolsHitRecord.h.

◆ fStripF

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

index of front strip

Definition at line 39 of file CaToolsHitRecord.h.

◆ fT

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

time of hit [ns]

Definition at line 27 of file CaToolsHitRecord.h.

◆ fX

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

x component of hit position [cm]

Definition at line 24 of file CaToolsHitRecord.h.

◆ fY

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

y component of hit position [cm]

Definition at line 25 of file CaToolsHitRecord.h.

◆ fZ

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

z component of hit position [cm]

Definition at line 26 of file CaToolsHitRecord.h.

◆ 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.


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