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
4648d0bc
Commit
4648d0bc
authored
3 years ago
by
christopher dilks
Browse files
Options
Downloads
Patches
Plain Diff
move testIRT options file to benchmarks
parent
ff75cc6c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/rich/forward_hadrons.sh
+1
-1
1 addition, 1 deletion
benchmarks/rich/forward_hadrons.sh
benchmarks/rich/options/testIRT.py
+79
-0
79 additions, 0 deletions
benchmarks/rich/options/testIRT.py
with
80 additions
and
1 deletion
benchmarks/rich/forward_hadrons.sh
+
1
−
1
View file @
4648d0bc
...
...
@@ -72,7 +72,7 @@ fi
# @TODO changeable simulation file name and detector xml file name
xenv
-x
${
JUGGLER_INSTALL_PREFIX
}
/Juggler.xenv
\
gaudirun.py benchmarks/rich/options/
rich_reco
.py
gaudirun.py benchmarks/rich/options/
testIRT
.py
if
[[
"
$?
"
-ne
"0"
]]
;
then
echo
"ERROR running juggler"
exit
1
...
...
This diff is collapsed.
Click to expand it.
benchmarks/rich/options/testIRT.py
0 → 100644
+
79
−
0
View file @
4648d0bc
from
Gaudi.Configuration
import
*
from
GaudiKernel
import
SystemOfUnits
as
units
from
Configurables
import
ApplicationMgr
,
EICDataSvc
,
PodioOutput
,
GeoSvc
detector_name
=
"
athena
"
if
"
JUGGLER_DETECTOR
"
in
os
.
environ
:
detector_name
=
str
(
os
.
environ
[
"
JUGGLER_DETECTOR
"
])
if
"
DETECTOR_PATH
"
in
os
.
environ
:
detector_name
=
str
(
os
.
environ
[
"
DETECTOR_PATH
"
])
+
"
/
"
+
detector_name
# TODO: check for arguments, and catch errors on unset env vars
input_sim_file
=
str
(
os
.
environ
[
"
JUGGLER_SIM_FILE
"
])
output_rec_file
=
str
(
os
.
environ
[
"
JUGGLER_REC_FILE
"
])
n_events
=
str
(
os
.
environ
[
"
JUGGLER_N_EVENTS
"
])
geo_service
=
GeoSvc
(
"
GeoSvc
"
,
detectors
=
[
"
{}.xml
"
.
format
(
detector_name
)])
podioevent
=
EICDataSvc
(
"
EventDataSvc
"
,
inputs
=
[
input_sim_file
],
OutputLevel
=
DEBUG
)
from
Configurables
import
PodioInput
from
Configurables
import
Jug__Digi__PhotoMultiplierDigi
as
PhotoMultiplierDigi
from
Configurables
import
Jug__Reco__PhotoMultiplierReco
as
PhotoMultiplierReco
from
Configurables
import
Jug__Reco__TestIRTAlgorithm
as
TestIRTAlgorithm
# S13660-3050AE-08 SiPM quantum efficiency [(wavelength [nm], q.e.)]
# Note: this is consistent with S13361-3050AE-08 (for eRICH)
# TODO: is this where we want these parameters?
qe_data
=
[
(
325
,
0.04
),
(
340
,
0.10
),
(
350
,
0.20
),
(
370
,
0.30
),
(
400
,
0.35
),
(
450
,
0.40
),
(
500
,
0.38
),
(
550
,
0.35
),
(
600
,
0.27
),
(
650
,
0.20
),
(
700
,
0.15
),
(
750
,
0.12
),
(
800
,
0.08
),
(
850
,
0.06
),
(
900
,
0.04
)
]
podioinput
=
PodioInput
(
"
PodioReader
"
,
collections
=
[
"
mcparticles
"
,
"
ERICHHits
"
],
OutputLevel
=
DEBUG
)
pmtdigi
=
PhotoMultiplierDigi
(
inputHitCollection
=
"
ERICHHits
"
,
outputHitCollection
=
"
DigiERICHHits
"
,
quantumEfficiency
=
[
((
1239.84
/
a
)
*
units
.
eV
,
b
)
for
a
,
b
in
qe_data
]
)
pmtreco
=
PhotoMultiplierReco
(
inputHitCollection
=
"
DigiERICHHits
"
,
outputHitCollection
=
"
RecoERICHHits
"
)
irtrec
=
TestIRTAlgorithm
(
inputHitCollection
=
"
RecoERICHHits
"
,
outputClusterCollection
=
"
ERICHClusters
"
)
out
=
PodioOutput
(
"
out
"
,
filename
=
output_rec_file
)
out
.
outputCommands
=
[
"
keep *
"
]
ApplicationMgr
(
TopAlg
=
[
podioinput
,
pmtdigi
,
pmtreco
,
irtrec
,
out
],
EvtSel
=
'
NONE
'
,
EvtMax
=
n_events
,
ExtSvc
=
[
podioevent
],
OutputLevel
=
DEBUG
,
PluginDebugLevel
=
2
)
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