BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
L1MaterialInfo.h
Go to the documentation of this file.
1
#ifndef L1MaterialInfo_h
2
#define L1MaterialInfo_h
3
4
#include "
CbmL1Def.h
"
5
6
#include <vector>
7
using
std::vector;
8
9
class
L1MaterialInfo
10
{
11
public
:
12
L1MaterialInfo
()
13
:
thick
(0)
14
,
RL
(0)
15
,
RadThick
(0)
16
,
logRadThick
(0) {};
17
18
fvec
thick
,
RL
,
RadThick
,
logRadThick
;
19
}
_fvecalignment
;
20
21
class
L1Material
22
{
23
public
:
24
L1Material
()
25
:
table
()
26
,
NBins
(0)
27
,
RMax
(0.)
28
,
iD
(0.)
29
{}
30
31
vector<vector<float>>
table
;
32
33
// static const int NBins = 100; // TODO file?
34
// static const float RMax = 60.f;
35
// static const float iD = 0.5*NBins/60.f;//RMax!;
36
37
void
SetBins
(
int
n
,
float
r)
38
{
39
NBins
=
n
;
40
RMax
= r;
41
iD
= 0.5 *
NBins
/
RMax
;
42
}
43
44
float
GetRadThick
(
float
x,
float
y)
45
{
46
x = (x < RMax && x >= -
RMax
) ? x : 0;
47
y = (y < RMax && y >= -
RMax
) ? y : 0;
48
// L1_ASSERT( x < RMax && x >= -RMax, "x = " << x );
49
// L1_ASSERT( y < RMax && y >= -RMax, "y = " << y );
50
return
table
[(x +
RMax
) *
iD
][(y +
RMax
) *
iD
];
51
}
52
fvec
GetRadThick
(
fvec
x,
fvec
y)
53
{
54
fvec
r;
55
for
(
int
i
= 0;
i
<
fvecLen
;
i
++)
56
r[
i
] =
GetRadThick
(x[
i
], y[
i
]);
57
return
r;
58
}
59
60
int
NBins
;
61
float
RMax
;
62
float
iD
;
63
64
}
_fvecalignment
;
65
66
#endif
CbmL1Def.h
fvecLen
const int fvecLen
Definition
P4_F32vec4.h:233
_fvecalignment
#define _fvecalignment
Definition
P4_F32vec4.h:236
i
int i
Definition
P4_F32vec4.h:22
fvec
F32vec4 fvec
Definition
P4_F32vec4.h:231
L1MaterialInfo::L1MaterialInfo
L1MaterialInfo()
Definition
L1MaterialInfo.h:12
L1MaterialInfo::logRadThick
fvec logRadThick
Definition
L1MaterialInfo.h:18
L1MaterialInfo::thick
fvec thick
Definition
L1MaterialInfo.h:18
L1MaterialInfo::RL
fvec RL
Definition
L1MaterialInfo.h:18
L1MaterialInfo::RadThick
fvec RadThick
Definition
L1MaterialInfo.h:18
L1Material::table
vector< vector< float > > table
Definition
L1MaterialInfo.h:31
L1Material::GetRadThick
float GetRadThick(float x, float y)
Definition
L1MaterialInfo.h:44
L1Material::L1Material
L1Material()
Definition
L1MaterialInfo.h:24
L1Material::NBins
int NBins
Definition
L1MaterialInfo.h:60
L1Material::RMax
float RMax
Definition
L1MaterialInfo.h:61
L1Material::GetRadThick
fvec GetRadThick(fvec x, fvec y)
Definition
L1MaterialInfo.h:52
L1Material::iD
float iD
Definition
L1MaterialInfo.h:62
L1Material::SetBins
void SetBins(int n, float r)
Definition
L1MaterialInfo.h:37
n
*brief user defined string literal for JSON values *sa std::size_t n
Definition
json.hpp:20362
reconstruction
cat
L1Algo
L1MaterialInfo.h
Generated on
for BmnRoot by
1.17.0