Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Project Juggler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
EIC
Project Juggler
Commits
7c19e51b
Commit
7c19e51b
authored
Nov 03, 2020
by
Whitney Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Track param vertex/cluster init
parent
b380117b
Pipeline
#4756
passed with stages
in 4 minutes and 41 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
22 deletions
+26
-22
JugReco/src/components/TrackParamVertexClusterInit.cpp
JugReco/src/components/TrackParamVertexClusterInit.cpp
+26
-22
No files found.
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