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
!11
Resolve "CI Workflow for EM Barrel"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Resolve "CI Workflow for EM Barrel"
7-ci-workflow-for-em-barrel
into
master
Overview
1
Commits
28
Pipelines
0
Changes
7
Merged
Resolve "CI Workflow for EM Barrel"
Jihee Kim
requested to merge
7-ci-workflow-for-em-barrel
into
master
Apr 2, 2021
Overview
1
Commits
28
Pipelines
0
Changes
7
Closes
#7 (closed)
Edited
Apr 4, 2021
by
Jihee Kim
0
0
Merge request reports
Compare
master
version 27
68c61e3e
Apr 4, 2021
version 26
6e4a7867
Apr 4, 2021
version 25
ddaac9a8
Apr 3, 2021
version 24
cfc2fa61
Apr 3, 2021
version 23
cc1fd160
Apr 3, 2021
version 22
fd1079ff
Apr 3, 2021
version 21
47fe337c
Apr 3, 2021
version 20
5f085165
Apr 3, 2021
version 19
85e6c5d0
Apr 3, 2021
version 18
1a8f4f00
Apr 3, 2021
version 17
679994c9
Apr 3, 2021
version 16
f7b110cf
Apr 3, 2021
version 15
c9bbeee3
Apr 3, 2021
version 14
fde49782
Apr 3, 2021
version 13
bb52c2e0
Apr 3, 2021
version 12
e344b182
Apr 3, 2021
version 11
f70e53a3
Apr 2, 2021
version 10
7d8cd4d0
Apr 2, 2021
version 9
6b7db35a
Apr 2, 2021
version 8
1dcf7a6e
Apr 2, 2021
version 7
7afeb22a
Apr 2, 2021
version 6
679bb80b
Apr 2, 2021
version 5
ae12f216
Apr 2, 2021
version 4
c7c92fe8
Apr 2, 2021
version 3
90692b68
Apr 2, 2021
version 2
6df766e6
Apr 2, 2021
version 1
e2f2c7f9
Apr 2, 2021
master (base)
and
version 27
latest version
4c879b1b
28 commits,
Apr 4, 2021
version 27
68c61e3e
27 commits,
Apr 4, 2021
version 26
6e4a7867
26 commits,
Apr 4, 2021
version 25
ddaac9a8
25 commits,
Apr 3, 2021
version 24
cfc2fa61
24 commits,
Apr 3, 2021
version 23
cc1fd160
23 commits,
Apr 3, 2021
version 22
fd1079ff
22 commits,
Apr 3, 2021
version 21
47fe337c
21 commits,
Apr 3, 2021
version 20
5f085165
20 commits,
Apr 3, 2021
version 19
85e6c5d0
19 commits,
Apr 3, 2021
version 18
1a8f4f00
18 commits,
Apr 3, 2021
version 17
679994c9
17 commits,
Apr 3, 2021
version 16
f7b110cf
16 commits,
Apr 3, 2021
version 15
c9bbeee3
15 commits,
Apr 3, 2021
version 14
fde49782
14 commits,
Apr 3, 2021
version 13
bb52c2e0
13 commits,
Apr 3, 2021
version 12
e344b182
12 commits,
Apr 3, 2021
version 11
f70e53a3
11 commits,
Apr 2, 2021
version 10
7d8cd4d0
10 commits,
Apr 2, 2021
version 9
6b7db35a
9 commits,
Apr 2, 2021
version 8
1dcf7a6e
8 commits,
Apr 2, 2021
version 7
7afeb22a
7 commits,
Apr 2, 2021
version 6
679bb80b
6 commits,
Apr 2, 2021
version 5
ae12f216
5 commits,
Apr 2, 2021
version 4
c7c92fe8
4 commits,
Apr 2, 2021
version 3
90692b68
3 commits,
Apr 2, 2021
version 2
6df766e6
2 commits,
Apr 2, 2021
version 1
e2f2c7f9
1 commit,
Apr 2, 2021
7 files
+
634
−
90
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
calorimeters/options/emcal_barrel_reco.py
0 → 100644
+
107
−
0
View file @ 68c61e3e
Edit in single-file editor
Open in Web IDE
#######################################
# EMCAL Barrel detector Reconstruction
# J.KIM 04/02/2021
#######################################
from
Gaudi.Configuration
import
*
import
os
from
GaudiKernel.DataObjectHandleBase
import
DataObjectHandleBase
from
Configurables
import
ApplicationMgr
,
EICDataSvc
,
PodioOutput
,
GeoSvc
from
GaudiKernel
import
SystemOfUnits
as
units
detector_name
=
"
topside
"
if
"
JUGGLER_DETECTOR
"
in
os
.
environ
:
detector_name
=
str
(
os
.
environ
[
"
JUGGLER_DETECTOR
"
])
+
"
/
"
+
detector_name
input_sim_file
=
"
jug_input.root
"
if
"
JUGGLER_SIM_FILE
"
in
os
.
environ
:
input_sim_file
=
str
(
os
.
environ
[
"
JUGGLER_SIM_FILE
"
])
else
:
print
(
"
ERROR : JUGGLER_SIM_FILE not set
"
)
output_rec_file
=
"
jug_rec.root
"
if
"
JUGGLER_REC_FILE
"
in
os
.
environ
:
output_rec_file
=
str
(
os
.
environ
[
"
JUGGLER_REC_FILE
"
])
else
:
print
(
"
ERROR : JUGGLER_REC_FILE not set
"
)
n_events
=
100
if
"
JUGGLER_N_EVENTS
"
in
os
.
environ
:
n_events
=
str
(
os
.
environ
[
"
JUGGLER_N_EVENTS
"
])
geo_service
=
GeoSvc
(
"
GeoSvc
"
,
detectors
=
[
"
{}.xml
"
.
format
(
detector_name
)])
podioevent
=
EICDataSvc
(
"
EventDataSvc
"
,
inputs
=
[
"
sim_output/{}
"
.
format
(
input_sim_file
)],
OutputLevel
=
DEBUG
)
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
"
,
"
EcalBarrelHits
"
],
OutputLevel
=
DEBUG
)
# Thrown Information
copier
=
MCCopier
(
"
MCCopier
"
,
inputCollection
=
"
mcparticles
"
,
outputCollection
=
"
mcparticles2
"
,
OutputLevel
=
DEBUG
)
# Geant4 Information
embarrelcopier
=
CalCopier
(
"
CalBarrelCopier
"
,
inputCollection
=
"
EcalBarrelHits
"
,
outputCollection
=
"
EcalBarrelHits2
"
,
OutputLevel
=
DEBUG
)
# Digitization
embarreldigi
=
EcalTungstenSamplingDigi
(
"
ecal_barrel_digi
"
,
inputHitCollection
=
"
EcalBarrelHits
"
,
outputHitCollection
=
"
RawEcalBarrelHits
"
,
inputEnergyUnit
=
units
.
GeV
,
inputTimeUnit
=
units
.
ns
,
OutputLevel
=
DEBUG
)
# Reconstruction
embarrelreco
=
EcalTungstenSamplingReco
(
"
ecal_barrel_reco
"
,
inputHitCollection
=
"
RawEcalBarrelHits
"
,
outputHitCollection
=
"
RecoEcalBarrelHits
"
,
OutputLevel
=
DEBUG
)
# 2D+1 Clusterings
# readout id definition for barrel ecal
# <id>system:8,barrel:3,module:4,layer:6,slice:5,x:32:-16,y:-16</id>
# xy_merger sum layers/slices, masking (8+3+4, 8+3+4+5+6-1)
embarrelxymerger
=
SamplingECalHitsMerger
(
"
ecal_barrel_xy_merger
"
,
cellIDMaskRanges
=
[(
15
,
25
)],
inputHitCollection
=
"
RecoEcalBarrelHits
"
,
outputHitCollection
=
"
RecoEcalBarrelHitsXY
"
)
# xy_merger sum modules, masking (8+3+4+5+6, 8+3+4+5+6+32-1)
embarrelzmerger
=
SamplingECalHitsMerger
(
"
ecal_barrel_z_merger
"
,
cellIDMaskRanges
=
[(
26
,
57
)],
inputHitCollection
=
"
RecoEcalBarrelHits
"
,
outputHitCollection
=
"
RecoEcalBarrelHitsZ
"
)
# Clustering
embarrelcluster
=
IslandCluster
(
"
ecal_barrel_cluster
"
,
inputHitCollection
=
"
RecoEcalBarrelHitsXY
"
,
outputClusterCollection
=
"
EcalBarrelClusters
"
,
minClusterCenterEdep
=
5.0
*
units
.
MeV
,
splitCluster
=
False
,
groupRange
=
5.0
)
# Reconstruct the cluster with Center of Gravity method
embarrelclusterreco
=
RecoCoG
(
"
ecal_barrel_clusterreco
"
,
clusterCollection
=
"
EcalBarrelClusters
"
,
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
],
EvtSel
=
'
NONE
'
,
EvtMax
=
n_events
,
ExtSvc
=
[
podioevent
],
OutputLevel
=
DEBUG
)
Loading