CbmRoot
Loading...
Searching...
No Matches
CaToolsHitRecord.h
Go to the documentation of this file.
1/* Copyright (C) 2023 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Sergei Zharko [committer] */
4
9
10#ifndef CbmCaToolsHitRecord_h
11#define CbmCaToolsHitRecord_h 1
12
13#include <cstdint>
14#include <string>
15
16namespace cbm::ca::tools
17{
23 struct HitRecord {
24 double fX = -1.;
25 double fY = -1.;
26 double fZ = -1.;
27 double fT = -1.;
28 double fDx2 = -1.;
29 double fDy2 = -1.;
30 double fDxy = -1.;
31 double fDt2 = -1.;
32 double fRangeX = -1.;
33 double fRangeY = -1.;
34 double fRangeT = -1.;
35 int64_t fDataStream = -1;
36 int fPointId = -1;
37 int fExtId = -2;
38 int fStaId = -2;
39 int fStripF = -2;
40 int fStripB = -2;
41 int fDet = -2;
42
46 static constexpr bool kVerboseAccept = true;
47 bool Accept() const;
48
50 std::string ToString() const;
51 };
52} // namespace cbm::ca::tools
53
54#endif // CbmCaToolsHitRecord_h
A helper structure to store hits information from different detectors in a uniform manner.
double fZ
z component of hit position [cm]
int fStaId
index of active tracking station
int64_t fDataStream
Global index of detector module.
double fRangeY
range of y [cm]
double fRangeX
range of x [cm]
double fDt2
time error of hit [ns]
int fStripF
index of front strip
int fPointId
index of MC point
double fDxy
correlation between x and y components [cm]
double fT
time of hit [ns]
std::string ToString() const
Converts hit record to a string.
int fStripB
index of back strip
static constexpr bool kVerboseAccept
Tests hit quality (for example, if all the quantities are not nan)
int fExtId
external index of hit
double fDy2
error of y component of hit position [cm]
double fX
x component of hit position [cm]
double fY
y component of hit position [cm]
double fRangeT
range of t [ns]
double fDx2
error of x component of hit position [cm]