Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
EIC
benchmarks
reconstruction_benchmarks
Commits
472f42cb
Commit
472f42cb
authored
2 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
Use has_ecal_barrel_scfi
parent
abcdc1f8
No related branches found
No related tags found
1 merge request
!252
Fixes to benchmarks to run with ecce:main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/imaging_ecal/options/hybrid_cluster.py
+10
-2
10 additions, 2 deletions
benchmarks/imaging_ecal/options/hybrid_cluster.py
with
10 additions
and
2 deletions
benchmarks/imaging_ecal/options/hybrid_cluster.py
+
10
−
2
View file @
472f42cb
...
@@ -16,10 +16,18 @@ from Configurables import Jug__Reco__ImagingTopoCluster as ImagingTopoCluster
...
@@ -16,10 +16,18 @@ from Configurables import Jug__Reco__ImagingTopoCluster as ImagingTopoCluster
from
Configurables
import
Jug__Reco__ImagingClusterReco
as
ImagingClusterReco
from
Configurables
import
Jug__Reco__ImagingClusterReco
as
ImagingClusterReco
detector_name
=
str
(
os
.
environ
.
get
(
"
JUGGLER_DETECTOR
"
,
"
athena
"
))
detector_name
=
str
(
os
.
environ
.
get
(
"
JUGGLER_DETECTOR
"
,
"
athena
"
))
detector_config
=
str
(
os
.
environ
.
get
(
"
JUGGLER_DETECTOR_CONFIG
"
,
detector_name
))
detector_version
=
str
(
os
.
environ
.
get
(
"
JUGGLER_DETECTOR_VERSION
"
,
"
master
"
))
detector_version
=
str
(
os
.
environ
.
get
(
"
JUGGLER_DETECTOR_VERSION
"
,
"
master
"
))
detector_path
=
str
(
os
.
environ
.
get
(
"
DETECTOR_PATH
"
,
"
.
"
))
detector_path
=
str
(
os
.
environ
.
get
(
"
DETECTOR_PATH
"
,
"
.
"
))
# Detector features that affect reconstruction
has_ecal_barrel_scfi
=
False
if
'
athena
'
in
detector_name
:
has_ecal_barrel_scfi
=
True
if
'
ecce
'
in
detector_name
and
'
imaging
'
in
detector_config
:
has_ecal_barrel_scfi
=
True
# input arguments from calibration file
# input arguments from calibration file
with
open
(
f
'
{
detector_path
}
/calibrations/emcal_barrel_calibration.json
'
)
as
f
:
with
open
(
f
'
{
detector_path
}
/calibrations/emcal_barrel_calibration.json
'
)
as
f
:
calib_data
=
json
.
load
(
f
)[
'
electron
'
]
calib_data
=
json
.
load
(
f
)[
'
electron
'
]
...
@@ -57,7 +65,7 @@ ecal_barrel_scfi_collections = [
...
@@ -57,7 +65,7 @@ ecal_barrel_scfi_collections = [
'
EcalBarrelScFiHits
'
,
'
EcalBarrelScFiHits
'
,
'
EcalBarrelScFiHitsContributions
'
'
EcalBarrelScFiHitsContributions
'
]
]
if
'
athena
'
in
detector_name
:
if
has_ecal_barrel_scfi
:
sim_colls
+=
ecal_barrel_scfi_collections
sim_colls
+=
ecal_barrel_scfi_collections
# list of algorithms
# list of algorithms
...
@@ -68,7 +76,7 @@ algorithms.append(podin)
...
@@ -68,7 +76,7 @@ algorithms.append(podin)
# Central Barrel Ecal
# Central Barrel Ecal
if
'
athena
'
in
detector_name
:
if
has_ecal_barrel_scfi
:
# Central ECAL Imaging Calorimeter
# Central ECAL Imaging Calorimeter
# use the same daq_setting for digi/reco pair
# use the same daq_setting for digi/reco pair
...
...
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