Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_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
physics_benchmarks
Commits
5aa487a2
Commit
5aa487a2
authored
3 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
properly use DAQ as defined in athena/calibrations
parent
2efd47ab
No related branches found
No related tags found
1 merge request
!127
properly use DAQ as defined in athena/calibrations
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
options/reconstruction.py
+26
-40
26 additions, 40 deletions
options/reconstruction.py
with
26 additions
and
40 deletions
options/reconstruction.py
+
26
−
40
View file @
5aa487a2
...
...
@@ -38,6 +38,21 @@ with open('config/emcal_barrel_calibration.json') as f:
print
(
calib_data
)
# input calorimeter DAQ info
calo_daq
=
{}
with
open
(
'
config/calo_digi_{}.json
'
.
format
(
'
detector_version
'
))
as
f
:
calo_config
=
json
.
load
(
f
)
## add proper ADC capacity based on bit depth
for
sys
in
calo_config
:
cfg
=
calo_config
[
sys
]
calo_daq
[
sys
]
=
{
'
dynamicRangeADC
'
:
eval
(
cfg
[
'
dynamicRange
'
]),
'
capacityADC
'
:
2
**
int
(
cfg
[
'
capacityBitsADC
'
]),
'
pedestalMean
'
:
int
(
cfg
[
'
pedestalMean
'
]),
'
pedestalSigma
'
:
float
(
cfg
[
'
pedestalSigma
'
])
}
print
(
calo_daq
)
img_barrel_sf
=
float
(
calib_data
[
'
sampling_fraction_img
'
])
scifi_barrel_sf
=
float
(
calib_data
[
'
sampling_fraction_scfi
'
])
...
...
@@ -213,17 +228,12 @@ trk_b0_reco = TrackerHitReconstruction("trk_b0_reco",
algorithms
.
append
(
trk_b0_reco
)
# Crystal Endcap Ecal
ce_ecal_daq
=
dict
(
dynamicRangeADC
=
5.
*
units
.
GeV
,
capacityADC
=
32768
,
pedestalMean
=
400
,
pedestalSigma
=
3
)
ce_calo_daq
=
calo_daq
[
'
ecal_neg_endcap
'
]
ce_ecal_digi
=
CalHitDigi
(
"
ce_ecal_digi
"
,
inputHitCollection
=
"
EcalEndcapNHits
"
,
outputHitCollection
=
"
EcalEndcapNRawHits
"
,
energyResolutions
=
[
0.
,
0.02
,
0.
],
**
ce_
e
cal_daq
)
**
ce_cal
o
_daq
)
algorithms
.
append
(
ce_ecal_digi
)
ce_ecal_reco
=
CalHitReco
(
"
ce_ecal_reco
"
,
...
...
@@ -232,7 +242,7 @@ ce_ecal_reco = CalHitReco("ce_ecal_reco",
thresholdFactor
=
4
,
# 4 sigma cut on pedestal sigma
readoutClass
=
"
EcalEndcapNHits
"
,
sectorField
=
"
sector
"
,
**
ce_
e
cal_daq
)
**
ce_cal
o
_daq
)
algorithms
.
append
(
ce_ecal_reco
)
ce_ecal_cl
=
IslandCluster
(
"
ce_ecal_cl
"
,
...
...
@@ -261,23 +271,19 @@ ce_ecal_clmerger = ClusterMerger("ce_ecal_clmerger",
algorithms
.
append
(
ce_ecal_clmerger
)
# Endcap Sampling Ecal
ci_ecal_daq
=
dict
(
dynamicRangeADC
=
50.
*
units
.
MeV
,
capacityADC
=
32768
,
pedestalMean
=
400
,
pedestalSigma
=
10
)
ci_calo_daq
=
calo_daq
[
'
ecal_pos_endcap
'
]
ci_ecal_digi
=
CalHitDigi
(
"
ci_ecal_digi
"
,
inputHitCollection
=
"
EcalEndcapPHits
"
,
outputHitCollection
=
"
EcalEndcapPRawHits
"
,
**
ci_
e
cal_daq
)
**
ci_cal
o
_daq
)
algorithms
.
append
(
ci_ecal_digi
)
ci_ecal_reco
=
CalHitReco
(
"
ci_ecal_reco
"
,
inputHitCollection
=
ci_ecal_digi
.
outputHitCollection
,
outputHitCollection
=
"
EcalEndcapPRecHits
"
,
thresholdFactor
=
5.0
,
**
ci_
e
cal_daq
)
**
ci_cal
o
_daq
)
algorithms
.
append
(
ci_ecal_reco
)
# merge hits in different layer (projection to local x-y plane)
...
...
@@ -315,11 +321,7 @@ ci_ecal_clmerger = ClusterMerger("ci_ecal_clmerger",
algorithms
.
append
(
ci_ecal_clmerger
)
# Central Barrel Ecal (Imaging Cal.)
img_barrel_daq
=
dict
(
dynamicRangeADC
=
3
*
units
.
MeV
,
capacityADC
=
8192
,
pedestalMean
=
400
,
pedestalSigma
=
20
)
# about 6 keV
img_barrel_daq
=
calo_daq
[
'
ecal_barrel_imaging
'
]
img_barrel_digi
=
CalHitDigi
(
"
img_barrel_digi
"
,
inputHitCollection
=
"
EcalBarrelHits
"
,
...
...
@@ -357,11 +359,7 @@ img_barrel_clreco = ImagingClusterReco("img_barrel_clreco",
algorithms
.
append
(
img_barrel_clreco
)
# Central ECAL SciFi
scfi_barrel_daq
=
dict
(
dynamicRangeADC
=
50.
*
MeV
,
capacityADC
=
32768
,
pedestalMean
=
400
,
pedestalSigma
=
10
)
scfi_barrel_daq
=
calo_daq
[
'
ecal_barrel_scfi
'
]
scfi_barrel_digi
=
CalHitDigi
(
"
scfi_barrel_digi
"
,
inputHitCollection
=
"
EcalBarrelScFiHits
"
,
...
...
@@ -417,11 +415,7 @@ algorithms.append(barrel_clus_merger)
# Central Barrel Hcal
cb_hcal_daq
=
dict
(
dynamicRangeADC
=
50.
*
units
.
MeV
,
capacityADC
=
32768
,
pedestalMean
=
400
,
pedestalSigma
=
10
)
cb_hcal_daq
=
calo_daq
[
'
hcal_barrel
'
]
cb_hcal_digi
=
CalHitDigi
(
"
cb_hcal_digi
"
,
inputHitCollection
=
"
HcalBarrelHits
"
,
...
...
@@ -465,11 +459,7 @@ cb_hcal_clreco = RecoCoG("cb_hcal_clreco",
algorithms
.
append
(
cb_hcal_clreco
)
# Hcal Hadron Endcap
ci_hcal_daq
=
dict
(
dynamicRangeADC
=
50.
*
units
.
MeV
,
capacityADC
=
32768
,
pedestalMean
=
400
,
pedestalSigma
=
10
)
ci_hcal_daq
=
calo_daq
[
'
hcal_pos_endcap
'
]
ci_hcal_digi
=
CalHitDigi
(
"
ci_hcal_digi
"
,
inputHitCollection
=
"
HcalEndcapPHits
"
,
...
...
@@ -510,11 +500,7 @@ ci_hcal_clreco = RecoCoG("ci_hcal_clreco",
algorithms
.
append
(
ci_hcal_clreco
)
# Hcal Electron Endcap
ce_hcal_daq
=
dict
(
dynamicRangeADC
=
50.
*
units
.
MeV
,
capacityADC
=
32768
,
pedestalMean
=
400
,
pedestalSigma
=
10
)
ce_hcal_daq
=
calo_daq
[
'
hcal_neg_endcap
'
]
ce_hcal_digi
=
CalHitDigi
(
"
ce_hcal_digi
"
,
inputHitCollection
=
"
HcalEndcapNHits
"
,
...
...
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