Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
EIC
Project Juggler
Commits
385b285d
Commit
385b285d
authored
Feb 10, 2022
by
Sylvester Joosten
Browse files
Update algos for EICD update to mitigate RDF issue
parent
aae2c9f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
JugTrack/src/components/ParticlesFromTrackFit.cpp
View file @
385b285d
...
...
@@ -117,36 +117,29 @@ namespace Jug::Reco {
debug
()
<<
" chi2 = "
<<
trajState
.
chi2Sum
<<
endmsg
;
}
const
std
::
array
<
float
,
21
>
covMatrix
{
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundLoc0
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc1
,
Acts
::
eBoundLoc1
)),
const
eic
::
CovXYZ
covMomentum
{
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundTheta
,
Acts
::
eBoundTheta
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundPhi
,
Acts
::
eBoundPhi
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundQOverP
,
Acts
::
eBoundQOverP
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundTime
,
Acts
::
eBoundTime
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundLoc1
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundTheta
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundPhi
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundQOverP
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundTime
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc1
,
Acts
::
eBoundTheta
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc1
,
Acts
::
eBoundPhi
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc1
,
Acts
::
eBoundQOverP
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc1
,
Acts
::
eBoundTime
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundTheta
,
Acts
::
eBoundPhi
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundTheta
,
Acts
::
eBoundQOverP
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundTheta
,
Acts
::
eBoundTime
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundPhi
,
Acts
::
eBoundQOverP
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundPhi
,
Acts
::
eBoundTime
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundQOverP
,
Acts
::
eBoundTime
))};
eic
::
TrackParameters
pars
{
0
,
// type: track head --> 0
{
parameter
[
Acts
::
eBoundLoc0
],
parameter
[
Acts
::
eBoundLoc1
]},
static_cast
<
float
>
(
parameter
[
Acts
::
eBoundTheta
]),
static_cast
<
float
>
(
parameter
[
Acts
::
eBoundPhi
]),
static_cast
<
float
>
(
parameter
[
Acts
::
eBoundQOverP
]),
static_cast
<
float
>
(
parameter
[
Acts
::
eBoundTime
]),
covMatrix
};
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundPhi
,
Acts
::
eBoundQOverP
))};
const
eic
::
CovXY
covPos
{
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundLoc0
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc1
,
Acts
::
eBoundLoc1
)),
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundLoc1
))};
const
float
timeError
{
sqrt
(
static_cast
<
float
>
(
covariance
(
Acts
::
eBoundTime
,
Acts
::
eBoundTime
)))};
eic
::
TrackParameters
pars
{
0
,
// type: track head --> 0
{
parameter
[
Acts
::
eBoundLoc0
],
parameter
[
Acts
::
eBoundLoc1
]},
covPos
,
static_cast
<
float
>
(
parameter
[
Acts
::
eBoundTheta
]),
static_cast
<
float
>
(
parameter
[
Acts
::
eBoundPhi
]),
static_cast
<
float
>
(
parameter
[
Acts
::
eBoundQOverP
]),
covMomentum
,
static_cast
<
float
>
(
parameter
[
Acts
::
eBoundTime
]),
timeError
,
boundParam
.
charge
()};
track_pars
->
push_back
(
pars
);
}
...
...
JugTrack/src/components/TruthTrackSeeding.cpp
View file @
385b285d
...
...
@@ -86,16 +86,17 @@ namespace Jug::Reco {
}
const
float
q_over_p
=
charge
/
p
;
std
::
array
<
float
,
21
>
covMatrix
;
covMatrix
.
fill
(
0.1
);
eic
::
TrackParameters
params
(
-
1
,
// type --> seed (-1)
eic
::
TrackParameters
params
{
-
1
,
// type --> seed (-1)
{
0.0
f
,
0.0
f
},
// location on surface
{
0.1
,
0.1
,
0.1
},
// Covariance on location
part
.
ps
().
theta
(),
// theta (rad)
part
.
ps
().
phi
(),
// phi (rad)
q_over_p
*
.05
f
,
// Q/P (e/GeV)
{
0.1
,
0.1
,
0.1
},
// Covariance on theta/phi/Q/P
part
.
time
(),
// Time (ns)
covMatrix
);
// 15 element diagonal covariance matrix
0.1
,
// Error on time
charge
};
// Charge
////// Construct a perigee surface as the target surface
//auto pSurface = Acts::Surface::makeShared<Acts::PerigeeSurface>(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment