CbmRoot
Loading...
Searching...
No Matches
CaGridEntry.h
Go to the documentation of this file.
1
/* Copyright (C) 2010-2020 Frankfurt Institute for Advanced Studies, Goethe-Universitaet Frankfurt, Frankfurt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Valentina Akishina, Igor Kulakov [committer], Maksym Zyzak */
4
5
#pragma once
// include this header only once per compilation unit
6
7
#include "
CaDefs.h
"
8
#include "
CaHit.h
"
9
#include "
CaSimd.h
"
10
11
namespace
cbm::algo::ca
12
{
13
16
struct
GridEntry
{
17
18
GridEntry
() =
default
;
19
20
GridEntry
(
const
ca::Hit
& hit,
ca::HitIndex_t
id
) {
Set
(hit,
id
); };
21
22
void
Set
(
const
ca::Hit
& hit,
ca::HitIndex_t
id
)
23
{
24
fObjectId
= id;
25
x
= hit.
X
();
26
y
= hit.
Y
();
27
z
= hit.
Z
();
28
t
= hit.
T
();
29
rangeX
= hit.
RangeX
();
30
rangeY
= hit.
RangeY
();
31
rangeT
= hit.
RangeT
();
32
}
33
34
ca::HitIndex_t
GetObjectId
()
const
{
return
fObjectId
; }
35
36
fscal
Z
()
const
{
return
z
; }
37
fscal
T
()
const
{
return
t
; }
38
fscal
X
()
const
{
return
x
; }
39
fscal
Y
()
const
{
return
y
; }
40
fscal
RangeX
()
const
{
return
rangeX
; }
41
fscal
RangeY
()
const
{
return
rangeY
; }
42
fscal
RangeT
()
const
{
return
rangeT
; }
43
44
private
:
45
constexpr
static
fscal
kUndef
= 0.;
// TODO: test with constants::Undef<fscal>
46
47
ca::HitIndex_t
fObjectId
{0};
48
49
fscal
x
{
kUndef
};
// x coordinate of the hit
50
fscal
y
{
kUndef
};
// y coordinate of the hit
51
fscal
z
{
kUndef
};
// z coordinate of the hit
52
fscal
t
{
kUndef
};
// t coordinate of the hit
53
fscal
rangeX
{
kUndef
};
// x range of the hit
54
fscal
rangeY
{
kUndef
};
// y range of the hit
55
fscal
rangeT
{
kUndef
};
// t range of the hit
56
};
57
58
}
// namespace cbm::algo::ca
CaDefs.h
Compile-time constants definition for the CA tracking algorithm.
CaHit.h
A generic hit for the CA tracker (header)
CaSimd.h
cbm::algo::ca::Hit
ca::Hit class describes a generic hit for the CA tracker
Definition
CaHit.h:32
cbm::algo::ca::Hit::Z
fscal Z() const
Get the Z coordinate.
Definition
CaHit.h:108
cbm::algo::ca::Hit::RangeX
fscal RangeX() const
Get the +/- range of uncertainty of X coordinate.
Definition
CaHit.h:126
cbm::algo::ca::Hit::Y
fscal Y() const
Get the Y coordinate.
Definition
CaHit.h:105
cbm::algo::ca::Hit::RangeY
fscal RangeY() const
Get the +/- range of uncertainty of Y coordinate.
Definition
CaHit.h:129
cbm::algo::ca::Hit::RangeT
fscal RangeT() const
Get the +/- range of uncertainty of time.
Definition
CaHit.h:132
cbm::algo::ca::Hit::T
fscal T() const
Get the time.
Definition
CaHit.h:111
cbm::algo::ca::Hit::X
fscal X() const
Get the X coordinate.
Definition
CaHit.h:102
cbm::algo::ca
TODO: SZh 8.11.2022: add selection of parameterisation.
Definition
CaBranch.h:14
cbm::algo::ca::fscal
kf::fscal fscal
Definition
CaSimd.h:14
cbm::algo::ca::HitIndex_t
unsigned int HitIndex_t
Index of ca::Hit.
Definition
CaHit.h:27
cbm::algo::ca::GridEntry::Y
fscal Y() const
Definition
CaGridEntry.h:39
cbm::algo::ca::GridEntry::RangeY
fscal RangeY() const
Definition
CaGridEntry.h:41
cbm::algo::ca::GridEntry::Set
void Set(const ca::Hit &hit, ca::HitIndex_t id)
Definition
CaGridEntry.h:22
cbm::algo::ca::GridEntry::t
fscal t
Definition
CaGridEntry.h:52
cbm::algo::ca::GridEntry::T
fscal T() const
Definition
CaGridEntry.h:37
cbm::algo::ca::GridEntry::y
fscal y
Definition
CaGridEntry.h:50
cbm::algo::ca::GridEntry::z
fscal z
Definition
CaGridEntry.h:51
cbm::algo::ca::GridEntry::RangeT
fscal RangeT() const
Definition
CaGridEntry.h:42
cbm::algo::ca::GridEntry::rangeX
fscal rangeX
Definition
CaGridEntry.h:53
cbm::algo::ca::GridEntry::X
fscal X() const
Definition
CaGridEntry.h:38
cbm::algo::ca::GridEntry::GetObjectId
ca::HitIndex_t GetObjectId() const
Definition
CaGridEntry.h:34
cbm::algo::ca::GridEntry::x
fscal x
Definition
CaGridEntry.h:49
cbm::algo::ca::GridEntry::GridEntry
GridEntry(const ca::Hit &hit, ca::HitIndex_t id)
Definition
CaGridEntry.h:20
cbm::algo::ca::GridEntry::RangeX
fscal RangeX() const
Definition
CaGridEntry.h:40
cbm::algo::ca::GridEntry::rangeT
fscal rangeT
Definition
CaGridEntry.h:55
cbm::algo::ca::GridEntry::kUndef
static constexpr fscal kUndef
Definition
CaGridEntry.h:45
cbm::algo::ca::GridEntry::rangeY
fscal rangeY
Definition
CaGridEntry.h:54
cbm::algo::ca::GridEntry::fObjectId
ca::HitIndex_t fObjectId
hit id in L1Algo::fWindowHits array
Definition
CaGridEntry.h:47
cbm::algo::ca::GridEntry::GridEntry
GridEntry()=default
cbm::algo::ca::GridEntry::Z
fscal Z() const
Definition
CaGridEntry.h:36
algo
ca
core
data
CaGridEntry.h
Generated on Fri Jan 30 2026 23:05:17 for CbmRoot by
1.13.2