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
fc1176bf
Commit
fc1176bf
authored
3 years ago
by
miguelignacio
Browse files
Options
Downloads
Patches
Plain Diff
adding HCal endcap clusters, fixing scale factors for both barrel and endcal HCAL
parent
b758f28c
No related branches found
Branches containing commit
No related tags found
1 merge request
!111
adding HCal endcap clusters, fixing scale factors for both barrel and endcal HCAL
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/clustering/options/full_cal_clustering.py
+47
-1
47 additions, 1 deletion
benchmarks/clustering/options/full_cal_clustering.py
with
47 additions
and
1 deletion
benchmarks/clustering/options/full_cal_clustering.py
+
47
−
1
View file @
fc1176bf
...
...
@@ -13,7 +13,9 @@ compact_path = os.path.join(detector_path, detector_name)
# get sampling fractions from system environment variable, 1.0 by default
ce_ecal_sf
=
float
(
os
.
environ
.
get
(
"
CE_ECAL_SAMP_FRAC
"
,
0.253
))
cb_ecal_sf
=
float
(
os
.
environ
.
get
(
"
CB_ECAL_SAMP_FRAC
"
,
0.01324
))
cb_hcal_sf
=
float
(
os
.
environ
.
get
(
"
CB_HCAL_SAMP_FRAC
"
,
1.0
))
cb_hcal_sf
=
float
(
os
.
environ
.
get
(
"
CB_HCAL_SAMP_FRAC
"
,
0.038
))
hcal_hadronendcap_sf
=
float
(
os
.
environ
.
get
(
"
CE_HCAL_HADRONENDCAP_SAMP_FRAC
"
,
0.025
))
# input and output
input_sims
=
[
f
.
strip
()
for
f
in
str
.
split
(
os
.
environ
[
"
FULL_CAL_SIM_FILE
"
],
"
,
"
)
if
f
.
strip
()]
...
...
@@ -46,6 +48,7 @@ sim_coll = [
"
EcalEndcapHits
"
,
"
EcalBarrelHits
"
,
"
HcalBarrelHits
"
,
"
HcalEndcapHits
"
,
]
# input and output
...
...
@@ -202,6 +205,47 @@ cb_hcal_clreco = RecoCoG("cb_hcal_clreco",
logWeightBase
=
6.2
,
samplingFraction
=
cb_hcal_sf
)
##Hadron Endcap HCal
hcal_hadronendcap_digi
=
CalHitDigi
(
"
hcal_hadronendcap_digi
"
,
inputHitCollection
=
"
HcalEndcapHits
"
,
outputHitCollection
=
"
HcalHadronEndcapHitsDigi
"
,
dynamicRangeADC
=
50.
*
MeV
,
capacityADC
=
32768
,
pedestalMean
=
400
,
pedestalSigma
=
10
)
hcal_hadronendcap_reco
=
CalHitReco
(
"
hcal_hadronendcap_reco
"
,
inputHitCollection
=
"
HcalHadronEndcapHitsDigi
"
,
outputHitCollection
=
"
HcalHadronEndcapHitsReco
"
,
dynamicRangeADC
=
50.
*
MeV
,
capacityADC
=
32768
,
pedestalMean
=
400
,
pedestalSigma
=
10
,
thresholdFactor
=
5.0
)
hcal_hadronendcap_merger
=
CalHitsMerger
(
"
hcal_hadronendcap_merger
"
,
inputHitCollection
=
"
HcalHadronEndcapHitsReco
"
,
outputHitCollection
=
"
HcalHadronEndcapHitsRecoXY
"
,
readoutClass
=
"
HcalEndcapHits
"
,
fields
=
[
"
layer
"
,
"
slice
"
],
fieldRefNumbers
=
[
1
,
0
])
hcal_hadronendcap_cl
=
IslandCluster
(
"
hcal_hadronendcap_cl
"
,
inputHitCollection
=
"
HcalHadronEndcapHitsRecoXY
"
,
outputClusterCollection
=
"
HcalHadronEndcapClusters
"
,
splitHitCollection
=
"
HcalHadronEndcapHitsSplit
"
,
splitCluster
=
False
,
minClusterCenterEdep
=
30.
*
MeV
,
groupRanges
=
[
15.
*
cm
,
15.
*
cm
])
hcal_hadronendcap_clreco
=
RecoCoG
(
"
hcal_hadronendcap_clreco
"
,
clusterCollection
=
"
HcalHadronEndcapClusters
"
,
logWeightBase
=
6.2
,
samplingFraction
=
hcal_hadronendcap_sf
)
podout
.
outputCommands
=
[
"
keep *
"
]
ApplicationMgr
(
...
...
@@ -210,6 +254,8 @@ ApplicationMgr(
ce_ecal2_digi
,
ce_ecal2_reco
,
ce_ecal2_merger
,
ce_ecal2_cl
,
ce_ecal2_clreco
,
cb_ecal_digi
,
cb_ecal_reco
,
cb_ecal_cl
,
cb_ecal_clreco
,
cb_hcal_digi
,
cb_hcal_reco
,
cb_hcal_merger
,
cb_hcal_cl
,
cb_hcal_clreco
,
hcal_hadronendcap_digi
,
hcal_hadronendcap_reco
,
hcal_hadronendcap_merger
,
hcal_hadronendcap_cl
,
hcal_hadronendcap_clreco
,
podout
],
EvtSel
=
'
NONE
'
,
EvtMax
=
n_events
,
...
...
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