Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
detector_benchmarks
Merge requests
!19
Resolve "Move sampling detector benchmarks to reconstruction_benchmarks"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "Move sampling detector benchmarks to reconstruction_benchmarks"
12-move-sampling-detector-benchmarks-to-reconstruction_benchmarks
into
master
Overview
0
Commits
3
Pipelines
0
Changes
5
Merged
Resolve "Move sampling detector benchmarks to reconstruction_benchmarks"
Jihee Kim
requested to merge
12-move-sampling-detector-benchmarks-to-reconstruction_benchmarks
into
master
Apr 9, 2021
Overview
0
Commits
3
Pipelines
0
Changes
5
Closes
#12 (closed)
Edited
Apr 9, 2021
by
Jihee Kim
0
0
Merge request reports
Compare
master
version 2
7e92567d
Apr 9, 2021
version 1
062910a0
Apr 9, 2021
master (base)
and
latest version
latest version
f390356d
3 commits,
Apr 9, 2021
version 2
7e92567d
2 commits,
Apr 9, 2021
version 1
062910a0
1 commit,
Apr 9, 2021
5 files
+
68
−
795
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
calorimeters/options/emcal_barrel_reco.py
+
1
−
50
View file @ f390356d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -37,13 +37,6 @@ from Configurables import PodioInput
from
Configurables
import
Jug__Base__InputCopier_dd4pod__Geant4ParticleCollection_dd4pod__Geant4ParticleCollection_
as
MCCopier
from
Configurables
import
Jug__Base__InputCopier_dd4pod__CalorimeterHitCollection_dd4pod__CalorimeterHitCollection_
as
CalCopier
from
Configurables
import
Jug__Digi__EcalTungstenSamplingDigi
as
EcalTungstenSamplingDigi
from
Configurables
import
Jug__Reco__EcalTungstenSamplingReco
as
EcalTungstenSamplingReco
from
Configurables
import
Jug__Reco__SamplingECalHitsMerger
as
SamplingECalHitsMerger
from
Configurables
import
Jug__Reco__CalorimeterIslandCluster
as
IslandCluster
from
Configurables
import
Jug__Reco__ClusterRecoCoG
as
RecoCoG
podioinput
=
PodioInput
(
"
PodioReader
"
,
collections
=
[
"
mcparticles
"
,
"
EcalBarrelAstroPixHits
"
],
OutputLevel
=
DEBUG
)
# Thrown Information
@@ -56,55 +49,13 @@ embarrelcopier = CalCopier("CalBarrelCopier",
inputCollection
=
"
EcalBarrelAstroPixHits
"
,
outputCollection
=
"
EcalBarrelAstroPixHits2
"
,
OutputLevel
=
DEBUG
)
# Digitization
embarreldigi
=
EcalTungstenSamplingDigi
(
"
ecal_barrel_digi
"
,
inputHitCollection
=
"
EcalBarrelAstroPixHits
"
,
outputHitCollection
=
"
RawEcalBarrelAstroPixHits
"
,
inputEnergyUnit
=
units
.
GeV
,
inputTimeUnit
=
units
.
ns
,
dynamicRangeADC
=
700
*
units
.
keV
,
energyResolutions
=
[
0.
,
0.02
,
0.
],
pedestalSigma
=
40
,
OutputLevel
=
DEBUG
)
# Reconstruction
embarrelreco
=
EcalTungstenSamplingReco
(
"
ecal_barrel_reco
"
,
inputHitCollection
=
"
RawEcalBarrelAstroPixHits
"
,
outputHitCollection
=
"
RecoEcalBarrelAstroPixHits
"
,
dynamicRangeADC
=
700
*
units
.
keV
,
pedestalSigma
=
40
,
OutputLevel
=
DEBUG
)
# 2D+1 Clusterings
# readout id definition for barrel ecal
# <id>system:8,barrel:3,module:4,layer:10,slice:5,x:32:-16,y:-16</id>
# xy_merger sum layers/slices, masking (8+3+4, 8+3+4+5+10-1)
embarrelxymerger
=
SamplingECalHitsMerger
(
"
ecal_barrel_xy_merger
"
,
cellIDMaskRanges
=
[(
15
,
29
)],
inputHitCollection
=
"
RecoEcalBarrelAstroPixHits
"
,
outputHitCollection
=
"
RecoEcalBarrelAstroPixHitsXY
"
)
# xy_merger sum modules, masking (8+3+4+5+10, 8+3+4+5+10+32-1)
embarrelzmerger
=
SamplingECalHitsMerger
(
"
ecal_barrel_z_merger
"
,
cellIDMaskRanges
=
[(
30
,
61
)],
inputHitCollection
=
"
RecoEcalBarrelAstroPixHits
"
,
outputHitCollection
=
"
RecoEcalBarrelAstroPixHitsZ
"
)
# Clustering
embarrelcluster
=
IslandCluster
(
"
ecal_barrel_cluster
"
,
inputHitCollection
=
"
RecoEcalBarrelAstroPixHitsXY
"
,
outputClusterCollection
=
"
EcalBarrelAstroPixClusters
"
,
minClusterCenterEdep
=
0.5
*
units
.
MeV
,
splitCluster
=
False
,
groupRanges
=
[
2.0
*
units
.
cm
,
2.0
*
units
.
cm
,
2.0
*
units
.
cm
])
# Reconstruct the cluster with Center of Gravity method
embarrelclusterreco
=
RecoCoG
(
"
ecal_barrel_clusterreco
"
,
clusterCollection
=
"
EcalBarrelAstroPixClusters
"
,
logWeightBase
=
6.2
)
out
=
PodioOutput
(
"
out
"
,
filename
=
output_rec_file
)
out
.
outputCommands
=
[
"
keep *
"
]
ApplicationMgr
(
TopAlg
=
[
podioinput
,
copier
,
embarrelcopier
,
embarreldigi
,
embarrelreco
,
embarrelxymerger
,
embarrelzmerger
,
embarrelcluster
,
embarrelclusterreco
,
out
],
TopAlg
=
[
podioinput
,
copier
,
embarrelcopier
,
out
],
EvtSel
=
'
NONE
'
,
EvtMax
=
n_events
,
ExtSvc
=
[
podioevent
],
Loading