CbmRoot
|
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) | |
A helper structure to store hits information from different detectors in a uniform manner.
Definition at line 23 of file CaToolsHitRecord.h.
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().
std::string HitRecord::ToString | ( | ) | const |
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().
int cbm::ca::tools::HitRecord::fDet = -2 |
detector ID
Definition at line 41 of file CaToolsHitRecord.h.
Referenced by Accept(), cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().
double cbm::ca::tools::HitRecord::fDt2 = -1. |
time error of hit [ns]
Definition at line 31 of file CaToolsHitRecord.h.
Referenced by Accept(), cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().
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().
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().
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().
int cbm::ca::tools::HitRecord::fExtId = -2 |
external index of hit
Definition at line 37 of file CaToolsHitRecord.h.
Referenced by Accept(), cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().
int cbm::ca::tools::HitRecord::fPointId = -1 |
double cbm::ca::tools::HitRecord::fRangeT = -1. |
range of t [ns]
Definition at line 34 of file CaToolsHitRecord.h.
Referenced by cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().
double cbm::ca::tools::HitRecord::fRangeX = -1. |
range of x [cm]
Definition at line 32 of file CaToolsHitRecord.h.
Referenced by cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().
double cbm::ca::tools::HitRecord::fRangeY = -1. |
range of y [cm]
Definition at line 33 of file CaToolsHitRecord.h.
Referenced by cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().
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().
int cbm::ca::tools::HitRecord::fStripB = -2 |
index of back strip
Definition at line 40 of file CaToolsHitRecord.h.
Referenced by cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().
int cbm::ca::tools::HitRecord::fStripF = -2 |
index of front strip
Definition at line 39 of file CaToolsHitRecord.h.
Referenced by cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().
double cbm::ca::tools::HitRecord::fT = -1. |
time of hit [ns]
Definition at line 27 of file CaToolsHitRecord.h.
Referenced by Accept(), cbm::ca::TimeSliceReader::ReadHitsForDetector(), cbm::ca::TimeSliceReader::StoreHitRecord(), and ToString().
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().
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().
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().
|
staticconstexpr |
Tests hit quality (for example, if all the quantities are not nan)
Definition at line 46 of file CaToolsHitRecord.h.
Referenced by Accept().