Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Moore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LHCb
Moore
Commits
8745c22a
Commit
8745c22a
authored
1 year ago
by
Maarten Van Veghel
Browse files
Options
Downloads
Patches
Plain Diff
further upstream persistency config
parent
de128981
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2338
split track containers and persistency (versioning)
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Hlt/RecoConf/python/RecoConf/hlt2_global_reco.py
+27
-17
27 additions, 17 deletions
Hlt/RecoConf/python/RecoConf/hlt2_global_reco.py
Hlt/RecoConf/python/RecoConf/rich_reconstruction.py
+4
-2
4 additions, 2 deletions
Hlt/RecoConf/python/RecoConf/rich_reconstruction.py
with
31 additions
and
19 deletions
Hlt/RecoConf/python/RecoConf/hlt2_global_reco.py
+
27
−
17
View file @
8745c22a
...
...
@@ -54,8 +54,7 @@ def make_legacy_reconstruction():
# Calo, enable v3 track versions
tracks_v3
,
trackrels
=
convert_tracks_to_v3_from_v1
(
best_tracks
[
"
v1
"
],
track_types
=
rich_and_charged_proto_track_types
+
[
"
Upstream
"
,
"
Ttrack
"
])
track_types
=
rich_and_charged_proto_track_types
+
[
"
Ttrack
"
])
calo_pids
=
make_calo
(
tracks_v3
,
pvs
[
"
v3
"
],
trackrels
=
trackrels
)
# Muons
...
...
@@ -156,11 +155,18 @@ def make_light_reconstruction(usePatPVFuture=False,
# split/unmerged track conversion
# TODO should be for all track types like this (or rather within the convert function)
upstream
_tracks
=
hlt2_tracks
.
get
(
best_
upstream
=
hlt2_tracks
.
get
(
'
BestUpstream
'
,
{
"
v1
"
:
TracksEmptyProducer
(
name
=
"
FakeUpstreamTracks
"
)})
upstream_tracks
=
TrackContainerCopy
(
name
=
"
CreateBestUpstreamContainer_{hash}
"
,
inputLocations
=
[
best_upstream
[
'
v1
'
]],
outputs
=
{
'
outputLocation
'
:
persisted_location
(
'
Upstream
'
)
}).
outputLocation
upstream_v3
,
upstream_rels
=
convert_tracks_to_v3_from_v1
(
upstream_tracks
[
"
v1
"
]
,
upstream_tracks
,
track_types
=
[
"
Upstream
"
],
)
tracks_v3
.
update
(
upstream_v3
)
...
...
@@ -170,9 +176,8 @@ def make_light_reconstruction(usePatPVFuture=False,
pvs
=
make_reco_pvs
(
velo_tracks
,
persisted_location
(
'
PVs
'
))
# RICH
if
skipRich
:
rich_pids
=
None
else
:
rich_pids
=
{
'
Merged
'
:
None
,
'
Upstream
'
:
None
}
if
not
skipRich
:
rich_options
=
default_rich_reco_options
()
richRecConfs
=
make_all_rich_pids
(
best_tracks
,
...
...
@@ -180,11 +185,14 @@ def make_light_reconstruction(usePatPVFuture=False,
make_pids
=
make_rich_pids
,
track_types
=
rich_and_charged_proto_track_types
)
# specifically for optional upstream
richRecConfs
[
"
Upstream
"
]
=
make_rich_pids
(
"
Upstream
"
,
upstream_tracks
[
"
v1
"
],
rich_options
)
rich_pids
[
'
Upstream
'
]
=
make_rich_pids
(
'
Upstream
'
,
upstream_tracks
,
rich_options
,
location
=
persisted_location
(
'
UpstreamRichPIDs
'
))[
'
RichPIDs
'
]
# Merge them for now to be backwards compatible.
rich_pids
=
make_merged_rich_pids
(
richRecConfs
,
rich_and_charged_proto_track_types
)
rich_pids
[
'
Merged
'
]
=
make_merged_rich_pids
(
richRecConfs
,
rich_and_charged_proto_track_types
)
# Calo, enable v3 track versions
calo_pids
=
make_calo
(
...
...
@@ -219,7 +227,7 @@ def make_light_reconstruction(usePatPVFuture=False,
# default charged protoparticles
charged_protos
=
make_charged_protoparticles_from
(
tracks
=
best_tracks
,
rich_pids
=
rich_pids
,
rich_pids
=
rich_pids
[
'
Merged
'
]
,
calo_pids
=
calo_pids
,
muon_pids
=
muon_pids
,
track_types
=
rich_and_charged_proto_track_types
,
...
...
@@ -228,9 +236,8 @@ def make_light_reconstruction(usePatPVFuture=False,
# optional/split upstream protoparticles
# TODO should be for all track types like this
upstream_protos
=
make_charged_protoparticles_from
(
tracks
=
upstream_tracks
,
rich_pids
=
richRecConfs
[
'
Upstream
'
][
'
RichPIDs
'
]
if
not
skipRich
else
None
,
tracks
=
{
"
v1
"
:
upstream_tracks
},
rich_pids
=
rich_pids
[
'
Upstream
'
],
calo_pids
=
calo_pids
,
muon_pids
=
None
,
track_types
=
[
'
Upstream
'
],
...
...
@@ -246,7 +253,7 @@ def make_light_reconstruction(usePatPVFuture=False,
output
=
{
"
AllTrackHandles
"
:
hlt2_tracks
,
"
Tracks
"
:
best_tracks
[
"
v1
"
],
"
Upstream
Tracks
"
:
upstream_tracks
[
"
v1
"
]
,
"
Upstream
"
:
upstream_tracks
,
"
VeloTracks
"
:
velo_tracks
[
"
v1
"
],
"
PVs
"
:
pvs
[
"
v3
"
],
"
PVs_v1
"
:
pvs
[
"
v1
"
],
...
...
@@ -277,7 +284,10 @@ def make_light_reconstruction(usePatPVFuture=False,
output
.
update
(
caloDict
)
if
not
skipRich
:
richDict
=
{
"
RichPIDs
"
:
rich_pids
}
richDict
=
{
"
RichPIDs
"
:
rich_pids
[
'
Merged
'
],
"
UpstreamRichPIDs
"
:
rich_pids
[
'
Upstream
'
],
}
output
.
update
(
richDict
)
if
not
skipMuon
:
...
...
This diff is collapsed.
Click to expand it.
Hlt/RecoConf/python/RecoConf/rich_reconstruction.py
+
4
−
2
View file @
8745c22a
...
...
@@ -587,7 +587,8 @@ def make_rich_photons(track_name,
def
make_rich_pids
(
track_name
,
input_tracks
,
options
,
make_raw
=
default_raw_banks
):
make_raw
=
default_raw_banks
,
location
=
None
):
"""
Return RICH PID data.
...
...
@@ -723,7 +724,8 @@ def make_rich_pids(track_name,
TracksLocation
=
track_conf
[
"
InputTracks
"
],
SummaryTracksLocation
=
recSum
.
SummaryTracksLocation
,
TrackPIDHyposInputLocation
=
PIDs
[
options
[
"
nLikelihoodIterations
"
]],
TrackDLLsInputLocation
=
DLLs
[
options
[
"
nLikelihoodIterations
"
]])
TrackDLLsInputLocation
=
DLLs
[
options
[
"
nLikelihoodIterations
"
]],
outputs
=
{
'
RichPIDsLocation
'
:
location
})
results
[
"
RichPIDs
"
]
=
writePIDs
.
RichPIDsLocation
# return the final dict
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment