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
7c19e51b
Commit
7c19e51b
authored
Nov 03, 2020
by
Whitney Armstrong
Browse files
Track param vertex/cluster init
parent
b380117b
Changes
1
Hide whitespace changes
Inline
Side-by-side
JugReco/src/components/TrackParamVertexClusterInit.cpp
View file @
7c19e51b
...
...
@@ -78,34 +78,38 @@ namespace Jug::Reco {
using
Acts
::
UnitConstants
::
mm
;
using
Acts
::
UnitConstants
::
ns
;
double
p
=
c
.
energy
()
*
GeV
;
if
(
p
<
1.0
)
{
debug
()
<<
" skipping cluster with energy "
<<
p
/
GeV
<<
" GeV"
<<
endmsg
;
double
p
_cluster
=
c
.
energy
()
*
GeV
;
if
(
p
_cluster
<
1.0
)
{
debug
()
<<
" skipping cluster with energy "
<<
p
_cluster
/
GeV
<<
" GeV"
<<
endmsg
;
continue
;
}
double
len
=
std
::
hypot
(
c
.
x
()
,
c
.
y
()
,
c
.
z
()
);
// build some track cov matrix
Acts
::
BoundSymMatrix
cov
=
Acts
::
BoundSymMatrix
::
Zero
();
cov
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundLoc0
)
=
1.0
*
mm
*
1.0
*
mm
;
cov
(
Acts
::
eBoundLoc1
,
Acts
::
eBoundLoc1
)
=
1.0
*
mm
*
1.0
*
mm
;
cov
(
Acts
::
eBoundPhi
,
Acts
::
eBoundPhi
)
=
M_PI
/
180.0
;
cov
(
Acts
::
eBoundTheta
,
Acts
::
eBoundTheta
)
=
M_PI
/
180.0
;
cov
(
Acts
::
eBoundQOverP
,
Acts
::
eBoundQOverP
)
=
1.0
/
(
p
*
p
);
cov
(
Acts
::
eBoundTime
,
Acts
::
eBoundTime
)
=
Acts
::
UnitConstants
::
ns
;
// add all charges to the track candidate...
init_trk_params
->
emplace_back
(
Acts
::
Vector4D
(
0
*
mm
,
0
*
mm
,
0
*
mm
,
0
),
Acts
::
Vector3D
(
c
.
x
()
*
p
/
len
,
c
.
y
()
*
p
/
len
,
c
.
z
()
*
p
/
len
),
p
,
-
1
,
std
::
make_optional
(
cov
));
init_trk_params
->
emplace_back
(
Acts
::
Vector4D
(
0
*
mm
,
0
*
mm
,
0
*
mm
,
0
),
Acts
::
Vector3D
(
c
.
x
()
*
p
/
len
,
c
.
y
()
*
p
/
len
,
c
.
z
()
*
p
/
len
),
p
,
1
,
std
::
make_optional
(
cov
));
for
(
const
auto
&
t
:
*
vtx_hits
)
{
double
len
=
std
::
hypot
(
t
.
x
()
,
t
.
y
()
,
t
.
z
()
);
// build some track cov matrix
Acts
::
BoundSymMatrix
cov
=
Acts
::
BoundSymMatrix
::
Zero
();
cov
(
Acts
::
eBoundLoc0
,
Acts
::
eBoundLoc0
)
=
1.0
*
mm
*
1.0
*
mm
;
cov
(
Acts
::
eBoundLoc1
,
Acts
::
eBoundLoc1
)
=
1.0
*
mm
*
1.0
*
mm
;
cov
(
Acts
::
eBoundPhi
,
Acts
::
eBoundPhi
)
=
M_PI
/
180.0
;
cov
(
Acts
::
eBoundTheta
,
Acts
::
eBoundTheta
)
=
M_PI
/
180.0
;
cov
(
Acts
::
eBoundQOverP
,
Acts
::
eBoundQOverP
)
=
1.0
/
(
0.01
*
0.01
*
p_cluster
*
p_cluster
);
cov
(
Acts
::
eBoundTime
,
Acts
::
eBoundTime
)
=
Acts
::
UnitConstants
::
ns
;
// add all charges to the track candidate...
init_trk_params
->
emplace_back
(
Acts
::
Vector4D
(
0
*
mm
,
0
*
mm
,
0
*
mm
,
0
),
Acts
::
Vector3D
(
t
.
x
()
*
p_cluster
/
len
,
t
.
y
()
*
p_cluster
/
len
,
t
.
z
()
*
p_cluster
/
len
),
p_cluster
,
-
1
,
std
::
make_optional
(
cov
));
}
//init_trk_params->emplace_back(Acts::Vector4D(0 * mm, 0 * mm, 0 * mm, 0),
// Acts::Vector3D(c.x() * p / len, c.y() * p / len, c.z() * p / len), p, 1,
// std::make_optional(cov));
//init_trk_params->emplace_back(Acts::Vector4D(0 * mm, 0 * mm, 0 * mm, 0),
// Acts::Vector3D(c.x() * p / len, c.y() * p / len, c.z() * p / len), p, 0,
// std::make_optional(cov));
debug
()
<<
"Invoke track finding seeded by truth particle with p = "
<<
p
/
GeV
<<
" GeV"
<<
endmsg
;
debug
()
<<
"Invoke track finding seeded by truth particle with p = "
<<
p
_cluster
/
GeV
<<
" GeV"
<<
endmsg
;
}
return
StatusCode
::
SUCCESS
;
}
...
...
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