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
cfe2aba7
Commit
cfe2aba7
authored
4 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of eicweb.phy.anl.gov:EIC/benchmarks/physics_benchmarks
parents
d0f81908
3af26458
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dvmp/config.yml
+4
-2
4 additions, 2 deletions
dvmp/config.yml
options/tracker_reconstruction.py
+205
-0
205 additions, 0 deletions
options/tracker_reconstruction.py
util/start_dev_shell.sh
+1
-1
1 addition, 1 deletion
util/start_dev_shell.sh
with
210 additions
and
3 deletions
dvmp/config.yml
+
4
−
2
View file @
cfe2aba7
...
@@ -24,10 +24,12 @@ dvmp:jpsi_central:process:
...
@@ -24,10 +24,12 @@ dvmp:jpsi_central:process:
-
dvmp:generate
-
dvmp:generate
timeout
:
1 hour
timeout
:
1 hour
script
:
script
:
-
mkdir -p results/data/dvmp
-
mkdir -p results/plots/dvmp
-
echo "Running the detector simulation"
-
echo "Running the detector simulation"
-
touch results/dvmp/sim-stub
-
touch results/
data/
dvmp/sim-stub
-
echo "Running the reconstruction"
-
echo "Running the reconstruction"
-
touch results/dvmp/rec-stub
-
touch results/
data/
dvmp/rec-stub
artifacts
:
artifacts
:
paths
:
paths
:
-
results
-
results
...
...
This diff is collapsed.
Click to expand it.
options/tracker_reconstruction.py
0 → 100644
+
205
−
0
View file @
cfe2aba7
from
Gaudi.Configuration
import
*
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
"
])
# 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
],
OutputLevel
=
DEBUG
)
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__Base__InputCopier_dd4pod__TrackerHitCollection_dd4pod__TrackerHitCollection_
as
TrkCopier
from
Configurables
import
Jug__Digi__ExampleCaloDigi
as
ExampleCaloDigi
from
Configurables
import
Jug__Digi__UFSDTrackerDigi
as
UFSDTrackerDigi
from
Configurables
import
Jug__Digi__EMCalorimeterDigi
as
EMCalorimeterDigi
from
Configurables
import
Jug__Reco__TrackerHitReconstruction
as
TrackerHitReconstruction
from
Configurables
import
Jug__Reco__TrackerSourceLinker
as
TrackerSourceLinker
from
Configurables
import
Jug__Reco__TrackingHitsSourceLinker
as
TrackingHitsSourceLinker
from
Configurables
import
Jug__Reco__TrackParamTruthInit
as
TrackParamTruthInit
from
Configurables
import
Jug__Reco__TrackParamClusterInit
as
TrackParamClusterInit
from
Configurables
import
Jug__Reco__TrackParamVertexClusterInit
as
TrackParamVertexClusterInit
from
Configurables
import
Jug__Reco__TrackFindingAlgorithm
as
TrackFindingAlgorithm
from
Configurables
import
Jug__Reco__ParticlesFromTrackFit
as
ParticlesFromTrackFit
from
Configurables
import
Jug__Reco__EMCalReconstruction
as
EMCalReconstruction
from
Configurables
import
Jug__Reco__SimpleClustering
as
SimpleClustering
podioinput
=
PodioInput
(
"
PodioReader
"
,
collections
=
[
"
mcparticles
"
,
"
SiTrackerBarrelHits
"
,
"
SiVertexBarrelHits
"
,
"
EcalBarrelHits
"
])
#, 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
"
)
trkcopier
=
TrkCopier
(
"
TrkCopier
"
,
inputCollection
=
"
SiTrackerBarrelHits
"
,
outputCollection
=
"
SiTrackerBarrelHits2
"
)
ecal_digi
=
EMCalorimeterDigi
(
"
ecal_digi
"
,
inputHitCollection
=
"
EcalBarrelHits
"
,
outputHitCollection
=
"
RawEcalBarrelHits
"
)
ufsd_digi
=
UFSDTrackerDigi
(
"
ufsd_digi
"
,
inputHitCollection
=
"
SiTrackerBarrelHits
"
,
outputHitCollection
=
"
SiTrackerBarrelRawHits
"
,
timeResolution
=
8
)
vtx_digi
=
UFSDTrackerDigi
(
"
vtx_digi
"
,
inputHitCollection
=
"
SiVertexBarrelHits
"
,
outputHitCollection
=
"
SiVertexBarrelRawHits
"
,
timeResolution
=
8
)
ecal_reco
=
EMCalReconstruction
(
"
ecal_reco
"
,
inputHitCollection
=
"
RawEcalBarrelHits
"
,
outputHitCollection
=
"
RecEcalBarrelHits
"
,
minModuleEdep
=
0.0
*
units
.
MeV
,
OutputLevel
=
DEBUG
)
simple_cluster
=
SimpleClustering
(
"
simple_cluster
"
,
inputHitCollection
=
"
RecEcalBarrelHits
"
,
outputClusters
=
"
SimpleClusters
"
,
minModuleEdep
=
1.0
*
units
.
MeV
,
maxDistance
=
50.0
*
units
.
cm
,
OutputLevel
=
DEBUG
)
trk_barrel_reco
=
TrackerHitReconstruction
(
"
trk_barrel_reco
"
,
inputHitCollection
=
"
SiTrackerBarrelRawHits
"
,
outputHitCollection
=
"
TrackerBarrelRecHits
"
)
vtx_barrel_reco
=
TrackerHitReconstruction
(
"
vtx_barrel_reco
"
,
inputHitCollection
=
vtx_digi
.
outputHitCollection
,
outputHitCollection
=
"
VertexBarrelRecHits
"
)
# Source linker
sourcelinker
=
TrackerSourceLinker
(
"
trk_srclinker
"
,
inputHitCollection
=
"
TrackerBarrelRecHits
"
,
outputSourceLinks
=
"
BarrelTrackSourceLinks
"
,
OutputLevel
=
DEBUG
)
trk_hits_srclnkr
=
TrackingHitsSourceLinker
(
"
trk_hits_srclnkr
"
,
inputTrackerCollections
=
[
"
TrackerBarrelRecHits
"
,
"
VertexBarrelRecHits
"
],
outputSourceLinks
=
"
BarrelSourceLinks
"
,
OutputLevel
=
DEBUG
)
## Track param init
truth_trk_init
=
TrackParamTruthInit
(
"
truth_trk_init
"
,
inputMCParticles
=
"
mcparticles
"
,
outputInitialTrackParameters
=
"
InitTrackParams
"
,
OutputLevel
=
DEBUG
)
clust_trk_init
=
TrackParamClusterInit
(
"
clust_trk_init
"
,
inputClusters
=
"
SimpleClusters
"
,
outputInitialTrackParameters
=
"
InitTrackParamsFromClusters
"
,
OutputLevel
=
DEBUG
)
vtxcluster_trk_init
=
TrackParamVertexClusterInit
(
"
vtxcluster_trk_init
"
,
inputVertexHits
=
"
VertexBarrelRecHits
"
,
inputClusters
=
"
SimpleClusters
"
,
outputInitialTrackParameters
=
"
InitTrackParamsFromVtxClusters
"
,
maxHitRadius
=
40.0
*
units
.
mm
,
OutputLevel
=
DEBUG
)
# Tracking algorithms
trk_find_alg
=
TrackFindingAlgorithm
(
"
trk_find_alg
"
,
inputSourceLinks
=
"
BarrelSourceLinks
"
,
inputInitialTrackParameters
=
"
InitTrackParams
"
,
#"InitTrackParamsFromClusters",
outputTrajectories
=
"
trajectories
"
,
OutputLevel
=
DEBUG
)
parts_from_fit
=
ParticlesFromTrackFit
(
"
parts_from_fit
"
,
inputTrajectories
=
"
trajectories
"
,
outputParticles
=
"
ReconstructedParticles
"
,
outputTrackParameters
=
"
outputTrackParameters
"
,
OutputLevel
=
DEBUG
)
trk_find_alg1
=
TrackFindingAlgorithm
(
"
trk_find_alg1
"
,
inputSourceLinks
=
"
BarrelSourceLinks
"
,
inputInitialTrackParameters
=
"
InitTrackParamsFromClusters
"
,
outputTrajectories
=
"
trajectories1
"
,
OutputLevel
=
DEBUG
)
parts_from_fit1
=
ParticlesFromTrackFit
(
"
parts_from_fit1
"
,
inputTrajectories
=
"
trajectories1
"
,
outputParticles
=
"
ReconstructedParticles1
"
,
outputTrackParameters
=
"
outputTrackParameters1
"
,
OutputLevel
=
DEBUG
)
trk_find_alg2
=
TrackFindingAlgorithm
(
"
trk_find_alg2
"
,
inputSourceLinks
=
"
BarrelSourceLinks
"
,
inputInitialTrackParameters
=
"
InitTrackParamsFromVtxClusters
"
,
outputTrajectories
=
"
trajectories2
"
,
OutputLevel
=
DEBUG
)
parts_from_fit2
=
ParticlesFromTrackFit
(
"
parts_from_fit2
"
,
inputTrajectories
=
"
trajectories2
"
,
outputParticles
=
"
ReconstructedParticles2
"
,
outputTrackParameters
=
"
outputTrackParameters2
"
,
OutputLevel
=
DEBUG
)
#types = []
## this printout is useful to check that the type information is passed to python correctly
#print("---------------------------------------\n")
#print("---\n# List of input and output types by class")
#for configurable in sorted([ PodioInput, EICDataSvc, PodioOutput,
# TrackerHitReconstruction,ExampleCaloDigi,
# UFSDTrackerDigi, TrackerSourceLinker,
# PodioOutput],
# key=lambda c: c.getType()):
# print("\"{}\":".format(configurable.getType()))
# props = configurable.getDefaultProperties()
# for propname, prop in sorted(props.items()):
# print(" prop name: {}".format(propname))
# if isinstance(prop, DataObjectHandleBase):
# types.append(prop.type())
# print(" {}: \"{}\"".format(propname, prop.type()))
#print("---")
out
=
PodioOutput
(
"
out
"
,
filename
=
output_rec_file
)
out
.
outputCommands
=
[
"
keep *
"
,
"
drop BarrelTrackSourceLinks
"
,
"
drop InitTrackParams
"
,
"
drop trajectories
"
,
"
drop outputSourceLinks
"
,
"
drop outputInitialTrackParameters
"
,
"
drop mcparticles
"
]
ApplicationMgr
(
TopAlg
=
[
podioinput
,
copier
,
trkcopier
,
ecal_digi
,
ufsd_digi
,
vtx_digi
,
ecal_reco
,
simple_cluster
,
trk_barrel_reco
,
vtx_barrel_reco
,
sourcelinker
,
trk_hits_srclnkr
,
clust_trk_init
,
truth_trk_init
,
vtxcluster_trk_init
,
trk_find_alg
,
parts_from_fit
,
trk_find_alg1
,
parts_from_fit1
,
trk_find_alg2
,
parts_from_fit2
,
out
],
EvtSel
=
'
NONE
'
,
EvtMax
=
n_events
,
ExtSvc
=
[
podioevent
,
geo_service
],
OutputLevel
=
DEBUG
)
This diff is collapsed.
Click to expand it.
util/start_dev_shell.sh
+
1
−
1
View file @
cfe2aba7
...
@@ -15,7 +15,7 @@ elif [ "${OS}" = "Darwin" ]; then
...
@@ -15,7 +15,7 @@ elif [ "${OS}" = "Darwin" ]; then
echo
"Syncing docker container"
echo
"Syncing docker container"
docker pull sly2j/juggler:latest
docker pull sly2j/juggler:latest
echo
"Launching dev shell (through docker)..."
echo
"Launching dev shell (through docker)..."
docker run
-i
-t
--rm
sly2j/juggler:latest eic-shell
docker run
-v
/Users:/Users
-w
=
$PWD
-i
-t
--rm
sly2j/juggler:latest eic-shell
else
else
echo
"ERROR: dev shell not available for this OS (
${
OS
}
)"
echo
"ERROR: dev shell not available for this OS (
${
OS
}
)"
fi
fi
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