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
95e2e86d
Commit
95e2e86d
authored
2 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
feat: rename ReconstructedChargedParticlesAssoc to ReconstructedChargedParticlesAssociations
parent
2e1be449
Branches
Branches containing commit
No related tags found
1 merge request
!197
feat: rename ReconstructedChargedParticlesAssoc to ReconstructedChargedParticlesAssociations
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/dis/analysis/truth_reconstruction.py
+9
-9
9 additions, 9 deletions
benchmarks/dis/analysis/truth_reconstruction.py
options/reconstruction.py
+14
-14
14 additions, 14 deletions
options/reconstruction.py
with
23 additions
and
23 deletions
benchmarks/dis/analysis/truth_reconstruction.py
+
9
−
9
View file @
95e2e86d
...
...
@@ -22,16 +22,16 @@ Dconfig = 'epic' + args.config.split('_epic')[1].strip() #Detector config
config
=
args
.
config
.
split
(
'
_epic
'
)[
0
].
strip
()
for
array
in
ur
.
iterate
(
rec_file
+
'
:events
'
,[
'
MCParticles/MCParticles.generatorStatus
'
,
'
MCParticles/MCParticles.PDG
'
,
'
MCParticles/MCParticles.momentum.x
'
,
'
MCParticles/MCParticles.momentum.y
'
,
'
MCParticles/MCParticles.momentum.z
'
,
'
ReconstructedChargedParticles/ReconstructedChargedParticles.PDG
'
,
'
MCParticles/MCParticles.PDG
'
,
'
MCParticles/MCParticles.momentum.x
'
,
'
MCParticles/MCParticles.momentum.y
'
,
'
MCParticles/MCParticles.momentum.z
'
,
'
ReconstructedChargedParticles/ReconstructedChargedParticles.PDG
'
,
'
ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.x
'
,
'
ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.y
'
,
'
ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.z
'
,
'
ReconstructedChargedParticlesAssoc/ReconstructedChargedParticlesAssoc.simID
'
,
'
ReconstructedChargedParticlesAssoc/ReconstructedChargedParticlesAssoc.recID
'
],
step_size
=
Nevents
):
'
ReconstructedChargedParticlesAssoc
iations
/ReconstructedChargedParticlesAssoc
iations
.simID
'
,
'
ReconstructedChargedParticlesAssoc
iations
/ReconstructedChargedParticlesAssoc
iations
.recID
'
],
step_size
=
Nevents
):
PDG_mc
=
array
[
'
MCParticles/MCParticles.PDG
'
]
#Monte Carlo (MC) particle numbering scheme.
px_mc
=
array
[
'
MCParticles/MCParticles.momentum.x
'
]
py_mc
=
array
[
'
MCParticles/MCParticles.momentum.y
'
]
...
...
@@ -40,8 +40,8 @@ for array in ur.iterate(rec_file + ':events',['MCParticles/MCParticles.generator
px_rc
=
array
[
'
ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.x
'
]
py_rc
=
array
[
'
ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.y
'
]
pz_rc
=
array
[
'
ReconstructedChargedParticles/ReconstructedChargedParticles.momentum.z
'
]
simID
=
array
[
'
ReconstructedChargedParticlesAssoc/ReconstructedChargedParticlesAssoc.simID
'
]
recID
=
array
[
'
ReconstructedChargedParticlesAssoc/ReconstructedChargedParticlesAssoc.recID
'
]
simID
=
array
[
'
ReconstructedChargedParticlesAssoc
iations
/ReconstructedChargedParticlesAssoc
iations
.simID
'
]
recID
=
array
[
'
ReconstructedChargedParticlesAssoc
iations
/ReconstructedChargedParticlesAssoc
iations
.recID
'
]
#SimID and recID contain the indices of the MCParticles and ReconstructedParticles entry for that event.
### MCParticles Variables
...
...
This diff is collapsed.
Click to expand it.
options/reconstruction.py
+
14
−
14
View file @
95e2e86d
...
...
@@ -484,7 +484,7 @@ ce_ecal_clreco = RecoCoG(
mcHits
=
"
EcalEndcapNHits
"
,
# to create truth associations
inputProtoClusterCollection
=
ce_ecal_cl
.
outputProtoClusters
,
outputClusterCollection
=
"
EcalEndcapNClusters
"
,
outputAssociations
=
"
EcalEndcapNClustersAssoc
"
,
outputAssociations
=
"
EcalEndcapNClustersAssoc
iations
"
,
logWeightBase
=
4.6
,
)
algorithms
.
append
(
ce_ecal_clreco
)
...
...
@@ -494,7 +494,7 @@ ce_ecal_clmerger = ClusterMerger(
inputClusters
=
ce_ecal_clreco
.
outputClusterCollection
,
inputAssociations
=
ce_ecal_clreco
.
outputAssociations
,
outputClusters
=
"
EcalEndcapNMergedClusters
"
,
outputAssociations
=
"
EcalEndcapNMergedClustersAssoc
"
,
outputAssociations
=
"
EcalEndcapNMergedClustersAssoc
iations
"
,
)
algorithms
.
append
(
ce_ecal_clmerger
)
...
...
@@ -558,7 +558,7 @@ ci_ecal_clreco = RecoCoG(
mcHits
=
ci_ecal_cl
.
mcHits
,
inputProtoClusterCollection
=
ci_ecal_cl
.
outputProtoClusters
,
outputClusterCollection
=
"
EcalEndcapPClusters
"
,
outputAssociations
=
"
EcalEndcapPClustersAssoc
"
,
outputAssociations
=
"
EcalEndcapPClustersAssoc
iations
"
,
enableEtaBounds
=
True
,
logWeightBase
=
6.2
,
)
...
...
@@ -569,7 +569,7 @@ ci_ecal_clmerger = ClusterMerger(
inputClusters
=
ci_ecal_clreco
.
outputClusterCollection
,
inputAssociations
=
ci_ecal_clreco
.
outputAssociations
,
outputClusters
=
"
EcalEndcapPMergedClusters
"
,
outputAssociations
=
"
EcalEndcapPMergedClustersAssoc
"
,
outputAssociations
=
"
EcalEndcapPMergedClustersAssoc
iations
"
,
)
algorithms
.
append
(
ci_ecal_clmerger
)
...
...
@@ -675,7 +675,7 @@ if has_ecal_barrel_imaging:
mcHits
=
scfi_barrel_digi
.
inputHitCollection
,
inputProtoClusterCollection
=
scfi_barrel_cl
.
outputProtoClusterCollection
,
outputClusterCollection
=
"
EcalBarrelScFiClusters
"
,
outputAssociations
=
"
EcalBarrelScFiClustersAssoc
"
,
outputAssociations
=
"
EcalBarrelScFiClustersAssoc
iations
"
,
logWeightBase
=
6.2
,
)
algorithms
.
append
(
scfi_barrel_clreco
)
...
...
@@ -689,7 +689,7 @@ if has_ecal_barrel_imaging:
inputPositionClusters
=
img_barrel_clreco
.
outputClusters
,
inputPositionAssociations
=
img_barrel_clreco
.
outputAssociations
,
outputClusters
=
"
EcalBarrelMergedClusters
"
,
outputAssociations
=
"
EcalBarrelMergedClustersAssoc
"
,
outputAssociations
=
"
EcalBarrelMergedClustersAssoc
iations
"
,
)
algorithms
.
append
(
barrel_clus_merger
)
...
...
@@ -744,7 +744,7 @@ else:
mcHits
=
"
EcalBarrelSciGlassHits
"
,
inputProtoClusterCollection
=
sciglass_ecal_cl
.
outputProtoClusters
,
outputClusterCollection
=
"
EcalBarrelClusters
"
,
outputAssociations
=
"
EcalBarrelClustersAssoc
"
,
outputAssociations
=
"
EcalBarrelClustersAssoc
iations
"
,
enableEtaBounds
=
True
,
logWeightBase
=
6.2
,
)
...
...
@@ -755,7 +755,7 @@ else:
inputClusters
=
sciglass_ecal_clreco
.
outputClusterCollection
,
inputAssociations
=
sciglass_ecal_clreco
.
outputAssociations
,
outputClusters
=
"
EcalBarrelMergedClusters
"
,
outputAssociations
=
"
EcalBarrelMergedClustersAssoc
"
,
outputAssociations
=
"
EcalBarrelMergedClustersAssoc
iations
"
,
)
algorithms
.
append
(
barrel_clus_merger
)
...
...
@@ -807,7 +807,7 @@ cb_hcal_clreco = RecoCoG(
mcHits
=
cb_hcal_digi
.
inputHitCollection
,
inputProtoClusterCollection
=
cb_hcal_cl
.
outputProtoClusterCollection
,
outputClusterCollection
=
"
HcalBarrelClusters
"
,
outputAssociations
=
"
HcalBarrelClustersAssoc
"
,
outputAssociations
=
"
HcalBarrelClustersAssoc
iations
"
,
logWeightBase
=
6.2
,
)
algorithms
.
append
(
cb_hcal_clreco
)
...
...
@@ -858,7 +858,7 @@ ci_hcal_clreco = RecoCoG(
mcHits
=
ci_hcal_digi
.
inputHitCollection
,
inputProtoClusterCollection
=
ci_hcal_cl
.
outputProtoClusterCollection
,
outputClusterCollection
=
"
HcalEndcapPClusters
"
,
outputAssociations
=
"
HcalEndcapPClustersAssoc
"
,
outputAssociations
=
"
HcalEndcapPClustersAssoc
iations
"
,
logWeightBase
=
6.2
,
)
algorithms
.
append
(
ci_hcal_clreco
)
...
...
@@ -909,7 +909,7 @@ ce_hcal_clreco = RecoCoG(
mcHits
=
ce_hcal_digi
.
inputHitCollection
,
inputProtoClusterCollection
=
ce_hcal_cl
.
outputProtoClusterCollection
,
outputClusterCollection
=
"
HcalEndcapNClusters
"
,
outputAssociations
=
"
HcalEndcapNClustersAssoc
"
,
outputAssociations
=
"
HcalEndcapNClustersAssoc
iations
"
,
logWeightBase
=
6.2
,
)
algorithms
.
append
(
ce_hcal_clreco
)
...
...
@@ -1065,7 +1065,7 @@ parts_with_truth_pid = ParticlesWithTruthPID(
inputMCParticles
=
"
MCParticles
"
,
inputTrackParameters
=
parts_from_fit
.
outputTrackParameters
,
outputParticles
=
"
ReconstructedChargedParticles
"
,
outputAssociations
=
"
ReconstructedChargedParticlesAssoc
"
,
outputAssociations
=
"
ReconstructedChargedParticlesAssoc
iations
"
,
)
algorithms
.
append
(
parts_with_truth_pid
)
...
...
@@ -1091,7 +1091,7 @@ match_clusters = MatchClusters(
str
(
ci_hcal_clreco
.
outputAssociations
),
],
outputParticles
=
"
ReconstructedParticles
"
,
outputParticlesAssoc
=
"
ReconstructedParticlesAssoc
"
,
outputParticlesAssoc
=
"
ReconstructedParticlesAssoc
iations
"
,
)
algorithms
.
append
(
match_clusters
)
...
...
@@ -1100,7 +1100,7 @@ fast_ff = FFSmearedParticles(
"
fast_ff
"
,
inputMCParticles
=
"
MCParticles
"
,
outputParticles
=
"
ReconstructedFFParticles
"
,
outputAssociations
=
"
ReconstructedFFParticlesAssoc
"
,
outputAssociations
=
"
ReconstructedFFParticlesAssoc
iations
"
,
enableZDC
=
True
,
enableB0
=
True
,
enableRP
=
True
,
...
...
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