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
16
namespace
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
cbm::ca::tools
Definition
CaToolsDebugger.h:20
cbm::ca::tools::HitRecord
A helper structure to store hits information from different detectors in a uniform manner.
Definition
CaToolsHitRecord.h:23
cbm::ca::tools::HitRecord::Accept
bool Accept() const
Definition
CaToolsHitRecord.cxx:21
cbm::ca::tools::HitRecord::fZ
double fZ
z component of hit position [cm]
Definition
CaToolsHitRecord.h:26
cbm::ca::tools::HitRecord::fDet
int fDet
detector ID
Definition
CaToolsHitRecord.h:41
cbm::ca::tools::HitRecord::fStaId
int fStaId
index of active tracking station
Definition
CaToolsHitRecord.h:38
cbm::ca::tools::HitRecord::fDataStream
int64_t fDataStream
Global index of detector module.
Definition
CaToolsHitRecord.h:35
cbm::ca::tools::HitRecord::fRangeY
double fRangeY
range of y [cm]
Definition
CaToolsHitRecord.h:33
cbm::ca::tools::HitRecord::fRangeX
double fRangeX
range of x [cm]
Definition
CaToolsHitRecord.h:32
cbm::ca::tools::HitRecord::fDt2
double fDt2
time error of hit [ns]
Definition
CaToolsHitRecord.h:31
cbm::ca::tools::HitRecord::fStripF
int fStripF
index of front strip
Definition
CaToolsHitRecord.h:39
cbm::ca::tools::HitRecord::fPointId
int fPointId
index of MC point
Definition
CaToolsHitRecord.h:36
cbm::ca::tools::HitRecord::fDxy
double fDxy
correlation between x and y components [cm]
Definition
CaToolsHitRecord.h:30
cbm::ca::tools::HitRecord::fT
double fT
time of hit [ns]
Definition
CaToolsHitRecord.h:27
cbm::ca::tools::HitRecord::ToString
std::string ToString() const
Converts hit record to a string.
Definition
CaToolsHitRecord.cxx:73
cbm::ca::tools::HitRecord::fStripB
int fStripB
index of back strip
Definition
CaToolsHitRecord.h:40
cbm::ca::tools::HitRecord::kVerboseAccept
static constexpr bool kVerboseAccept
Tests hit quality (for example, if all the quantities are not nan)
Definition
CaToolsHitRecord.h:46
cbm::ca::tools::HitRecord::fExtId
int fExtId
external index of hit
Definition
CaToolsHitRecord.h:37
cbm::ca::tools::HitRecord::fDy2
double fDy2
error of y component of hit position [cm]
Definition
CaToolsHitRecord.h:29
cbm::ca::tools::HitRecord::fX
double fX
x component of hit position [cm]
Definition
CaToolsHitRecord.h:24
cbm::ca::tools::HitRecord::fY
double fY
y component of hit position [cm]
Definition
CaToolsHitRecord.h:25
cbm::ca::tools::HitRecord::fRangeT
double fRangeT
range of t [ns]
Definition
CaToolsHitRecord.h:34
cbm::ca::tools::HitRecord::fDx2
double fDx2
error of x component of hit position [cm]
Definition
CaToolsHitRecord.h:28
reco
L1
catools
CaToolsHitRecord.h
Generated on Sun Dec 22 2024 23:04:16 for CbmRoot by
1.12.0