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
Commits
98999279
Commit
98999279
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
imaging_ml_data.py: no more mcparticles
parent
4d525202
No related branches found
No related tags found
1 merge request
!241
imaging_ml_data.py: no more mcparticles
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmarks/imaging_shower_ML/options/imaging_ml_data.py
+1
-7
1 addition, 7 deletions
benchmarks/imaging_shower_ML/options/imaging_ml_data.py
benchmarks/imaging_shower_ML/scripts/prepare_tf_dataset.py
+2
-2
2 additions, 2 deletions
benchmarks/imaging_shower_ML/scripts/prepare_tf_dataset.py
with
3 additions
and
9 deletions
benchmarks/imaging_shower_ML/options/imaging_ml_data.py
+
1
−
7
View file @
98999279
...
@@ -6,7 +6,6 @@ from GaudiKernel import SystemOfUnits as units
...
@@ -6,7 +6,6 @@ from GaudiKernel import SystemOfUnits as units
from
Configurables
import
ApplicationMgr
,
EICDataSvc
,
PodioInput
,
PodioOutput
,
GeoSvc
from
Configurables
import
ApplicationMgr
,
EICDataSvc
,
PodioInput
,
PodioOutput
,
GeoSvc
from
GaudiKernel.SystemOfUnits
import
MeV
,
GeV
,
mm
,
cm
,
mrad
from
GaudiKernel.SystemOfUnits
import
MeV
,
GeV
,
mm
,
cm
,
mrad
from
Configurables
import
Jug__Base__InputCopier_dd4pod__Geant4ParticleCollection_dd4pod__Geant4ParticleCollection_
as
MCCopier
from
Configurables
import
Jug__Digi__CalorimeterHitDigi
as
CalHitDigi
from
Configurables
import
Jug__Digi__CalorimeterHitDigi
as
CalHitDigi
from
Configurables
import
Jug__Reco__CalorimeterHitReco
as
CalHitReco
from
Configurables
import
Jug__Reco__CalorimeterHitReco
as
CalHitReco
from
Configurables
import
Jug__Reco__CalorimeterHitsMerger
as
CalHitsMerger
from
Configurables
import
Jug__Reco__CalorimeterHitsMerger
as
CalHitsMerger
...
@@ -38,11 +37,6 @@ podev = EICDataSvc('EventDataSvc', inputs=[f.strip() for f in kwargs['input'].sp
...
@@ -38,11 +37,6 @@ podev = EICDataSvc('EventDataSvc', inputs=[f.strip() for f in kwargs['input'].sp
podin
=
PodioInput
(
'
PodioReader
'
,
collections
=
[
'
mcparticles
'
,
'
EcalBarrelHits
'
,
'
EcalBarrelScFiHits
'
])
podin
=
PodioInput
(
'
PodioReader
'
,
collections
=
[
'
mcparticles
'
,
'
EcalBarrelHits
'
,
'
EcalBarrelScFiHits
'
])
podout
=
PodioOutput
(
'
out
'
,
filename
=
kwargs
[
'
output
'
])
podout
=
PodioOutput
(
'
out
'
,
filename
=
kwargs
[
'
output
'
])
copier
=
MCCopier
(
'
MCCopier
'
,
OutputLevel
=
WARNING
,
inputCollection
=
'
mcparticles
'
,
outputCollection
=
'
mcparticles2
'
)
# Central Barrel Ecal (Imaging Cal.)
# Central Barrel Ecal (Imaging Cal.)
becal_img_daq
=
dict
(
becal_img_daq
=
dict
(
dynamicRangeADC
=
3
*
MeV
,
dynamicRangeADC
=
3
*
MeV
,
...
@@ -139,7 +133,7 @@ podout.outputCommands = [
...
@@ -139,7 +133,7 @@ podout.outputCommands = [
]
]
ApplicationMgr
(
ApplicationMgr
(
TopAlg
=
[
podin
,
copier
,
TopAlg
=
[
podin
,
becal_img_digi
,
becal_img_reco
,
becal_img_merger
,
becal_img_sorter
,
becal_img_digi
,
becal_img_reco
,
becal_img_merger
,
becal_img_sorter
,
becal_scfi_digi
,
becal_scfi_reco
,
becal_scfi_merger
,
becal_scfi_sorter
,
becal_scfi_digi
,
becal_scfi_reco
,
becal_scfi_merger
,
becal_scfi_sorter
,
becal_combiner
,
becal_combiner
,
...
...
This diff is collapsed.
Click to expand it.
benchmarks/imaging_shower_ML/scripts/prepare_tf_dataset.py
+
2
−
2
View file @
98999279
...
@@ -85,8 +85,8 @@ if __name__ == '__main__':
...
@@ -85,8 +85,8 @@ if __name__ == '__main__':
df
.
loc
[:,
'
rc
'
]
=
rc
df
.
loc
[:,
'
rc
'
]
=
rc
df
.
loc
[:,
'
eta
'
]
=
eta
df
.
loc
[:,
'
eta
'
]
=
eta
dfm
=
flatten_collection
(
rdf
,
'
mcparticles
2
'
,
[
'
genStatus
'
,
'
pdgID
'
,
'
ps.x
'
,
'
ps.y
'
,
'
ps.z
'
,
'
mass
'
])
dfm
=
flatten_collection
(
rdf
,
'
mcparticles
'
,
[
'
genStatus
'
,
'
pdgID
'
,
'
ps.x
'
,
'
ps.y
'
,
'
ps.z
'
,
'
mass
'
])
dfm
.
rename
(
columns
=
{
c
:
c
.
replace
(
'
mcparticles
2
.
'
,
''
)
for
c
in
dfm
.
columns
},
inplace
=
True
)
dfm
.
rename
(
columns
=
{
c
:
c
.
replace
(
'
mcparticles.
'
,
''
)
for
c
in
dfm
.
columns
},
inplace
=
True
)
# selete incident particles
# selete incident particles
dfm
=
dfm
[
dfm
[
'
genStatus
'
].
isin
([
0
,
1
])]
dfm
=
dfm
[
dfm
[
'
genStatus
'
].
isin
([
0
,
1
])]
# NOTE: assumed single particles
# NOTE: assumed single particles
...
...
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