Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
Manage
Activity
Members
Labels
Plan
Issues
22
Issue boards
Milestones
Wiki
Code
Merge requests
21
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
Merge requests
!89
adding fullcalo_clustering, which is based on calo_clustering.py but adds HCal hits and clusters
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
adding fullcalo_clustering, which is based on calo_clustering.py but adds HCal hits and clusters
my-new-branch
into
master
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
Miguel Arratia
requested to merge
my-new-branch
into
master
3 years ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
for debugging, since this is crashing at the first HcalReco step
👍
0
👎
0
Merge request reports
Compare
master
version 2
953ae1ed
3 years ago
version 1
bd79cf11
3 years ago
master (base)
and
latest version
latest version
5b58ee73
2 commits,
3 years ago
version 2
953ae1ed
2 commits,
3 years ago
version 1
bd79cf11
1 commit,
3 years ago
2 files
+
146
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
benchmarks/clustering/options/fullcalo_clustering.py
0 → 100644
+
135
−
0
Options
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
"
])
if
"
JUGGLER_DETECTOR_PATH
"
in
os
.
environ
:
detector_name
=
str
(
os
.
environ
[
"
JUGGLER_DETECTOR_PATH
"
])
+
"
/
"
+
detector_name
# get sampling fraction from system environment variable, 1.0 by default
sf
=
1.0
if
"
CB_EMCAL_SAMP_FRAC
"
in
os
.
environ
:
sf
=
str
(
os
.
environ
[
"
CB_EMCAL_SAMP_FRAC
"
])
# todo add checks
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
])
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__HadronicCalDigi
as
HadCalorimeterDigi
from
Configurables
import
Jug__Digi__EMCalorimeterDigi
as
EMCalorimeterDigi
from
Configurables
import
Jug__Digi__CrystalEndcapsDigi
as
CrystalEndcapsDigi
from
Configurables
import
Jug__Reco__CrystalEndcapsReco
as
CrystalEndcapsReco
from
Configurables
import
Jug__Reco__EMCalReconstruction
as
EMCalReconstruction
from
Configurables
import
Jug__Reco__HCalReconstruction
as
HCalReconstruction
from
Configurables
import
Jug__Reco__SimpleClustering
as
SimpleClustering
from
Configurables
import
Jug__Reco__CalorimeterIslandCluster
as
IslandCluster
from
Configurables
import
Jug__Reco__ClusterRecoCoG
as
RecoCoG
podioinput
=
PodioInput
(
"
PodioReader
"
,
collections
=
[
"
mcparticles
"
,
"
CrystalEcalHits
"
,
"
EcalBarrelHits
"
,
"
HcalBarrelHits
"
],
OutputLevel
=
DEBUG
)
## copiers to get around input --> output copy bug. Note the "2" appended to the output collection.
copier
=
MCCopier
(
"
MCCopier
"
,
inputCollection
=
"
mcparticles
"
,
outputCollection
=
"
mcparticles2
"
)
calcopier
=
CalCopier
(
"
CalCopier
"
,
inputCollection
=
"
CrystalEcalHits
"
,
outputCollection
=
"
CrystalEcalHits2
"
)
##raw hits
emcaldigi
=
CrystalEndcapsDigi
(
"
ecal_digi
"
,
inputHitCollection
=
"
CrystalEcalHits
"
,
outputHitCollection
=
"
RawDigiEcalHits
"
)
ecdigi
=
EMCalorimeterDigi
(
"
ec_barrel_digi
"
,
inputHitCollection
=
"
EcalBarrelHits
"
,
outputHitCollection
=
"
RawEcalBarrelHits
"
)
hcaldigi
=
HadCalorimeterDigi
(
"
hcal_barrel_digi
"
,
inputHitCollection
=
"
HcalBarrelHits
"
,
outputHitCollection
=
"
RawHcalBarrelHits
"
)
#digitized hits
crystal_ec_reco
=
CrystalEndcapsReco
(
"
crystal_ec_reco
"
,
inputHitCollection
=
"
RawDigiEcalHits
"
,
outputHitCollection
=
"
RecoEcalHits
"
,
minModuleEdep
=
1.0
*
units
.
MeV
)
ecal_reco
=
EMCalReconstruction
(
"
ecal_reco
"
,
inputHitCollection
=
"
RawEcalBarrelHits
"
,
outputHitCollection
=
"
RecEcalBarrelHits
"
,
samplingFraction
=
0.25
,
minModuleEdep
=
0.0
*
units
.
MeV
)
hcal_reco
=
HCalReconstruction
(
"
hcal_reco
"
,
inputHitCollection
=
"
RawHcalBarrelHits
"
,
outputHitCollection
=
"
RecHcalBarrelHits
"
,
samplingFraction
=
0.25
,
minModuleEdep
=
0.0
*
units
.
MeV
)
#clusters
ec_barrel_cluster
=
IslandCluster
(
"
ec_barrel_cluster
"
,
inputHitCollection
=
"
RecEcalBarrelHits
"
,
outputClusterCollection
=
"
EcalBarrelClusters
"
,
splitHitCollection
=
"
splitEcalBarrelHitCollection
"
,
minClusterCenterEdep
=
1
*
units
.
MeV
,
groupRange
=
2.0
,
OutputLevel
=
DEBUG
)
crystal_ec_cluster
=
IslandCluster
(
"
crystal_ec_cluster
"
,
inputHitCollection
=
"
RecoEcalHits
"
,
outputClusterCollection
=
"
EcalClusters
"
,
minClusterCenterEdep
=
30
*
units
.
MeV
,
groupRange
=
2.0
,
OutputLevel
=
DEBUG
)
simple_cluster
=
SimpleClustering
(
"
simple_cluster
"
,
inputHitCollection
=
"
RecEcalBarrelHits
"
,
outputClusters
=
"
SimpleClusters
"
,
OutputLevel
=
DEBUG
)
# finalizing clustering (center-of-gravity step)
ec_barrel_clusterreco
=
RecoCoG
(
"
ec_barrel_clusterreco
"
,
clusterCollection
=
"
EcalBarrelClusters
"
,
logWeightBase
=
6.2
,
samplingFraction
=
sf
)
clusterreco
=
RecoCoG
(
"
cluster_reco
"
,
clusterCollection
=
"
EcalClusters
"
,
logWeightBase
=
4.2
,
moduleDimZName
=
"
CrystalBox_z_length
"
,
samplingFraction
=
sf
,
OutputLevel
=
DEBUG
)
out
=
PodioOutput
(
"
out
"
,
filename
=
output_rec_file
)
out
.
outputCommands
=
[
"
keep *
"
]
ApplicationMgr
(
TopAlg
=
[
podioinput
,
copier
,
calcopier
,
ecdigi
,
emcaldigi
,
hcaldigi
,
crystal_ec_reco
,
ecal_reco
,
hcal_reco
,
#ec_barrel_cluster, crystal_ec_cluster, ec_barrel_clusterreco, clusterreco,
#simple_cluster,
out
],
EvtSel
=
'
NONE
'
,
EvtMax
=
n_events
,
ExtSvc
=
[
podioevent
],
OutputLevel
=
DEBUG
)
Loading