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
Merge requests
!14
Tracking electrons in central region
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Tracking electrons in central region
tracking
into
master
Overview
0
Commits
8
Pipelines
0
Changes
5
Merged
Whitney Armstrong
requested to merge
tracking
into
master
4 years ago
Overview
0
Commits
8
Pipelines
0
Changes
5
Expand
Looking at "barrel" electrons
Edited
4 years ago
by
Whitney Armstrong
0
0
Merge request reports
Compare
master
version 7
c80e0050
4 years ago
version 6
096edb19
4 years ago
version 5
871e50ee
4 years ago
version 4
1e306fab
4 years ago
version 3
cef6a6e4
4 years ago
version 2
26958cd5
4 years ago
version 1
f849c9b0
4 years ago
master (base)
and
latest version
latest version
1dfe47ac
8 commits,
4 years ago
version 7
c80e0050
7 commits,
4 years ago
version 6
096edb19
6 commits,
4 years ago
version 5
871e50ee
5 commits,
4 years ago
version 4
1e306fab
4 commits,
4 years ago
version 3
cef6a6e4
3 commits,
4 years ago
version 2
26958cd5
2 commits,
4 years ago
version 1
f849c9b0
1 commit,
4 years ago
5 files
+
235
−
42
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
tracking/options/tracker_reconstruction.py
0 → 100644
+
86
−
0
Options
from
Gaudi.Configuration
import
*
from
GaudiKernel.DataObjectHandleBase
import
DataObjectHandleBase
from
Configurables
import
ApplicationMgr
,
EICDataSvc
,
PodioOutput
,
GeoSvc
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__Digi__ExampleCaloDigi
as
ExampleCaloDigi
from
Configurables
import
Jug__Digi__UFSDTrackerDigi
as
UFSDTrackerDigi
from
Configurables
import
Jug__Reco__TrackerHitReconstruction
as
TrackerHitReconstruction
from
Configurables
import
Jug__Reco__TrackerSourceLinker
as
TrackerSourceLinker
from
Configurables
import
Jug__Reco__TrackParamTruthInit
as
TrackParamTruthInit
from
Configurables
import
Jug__Reco__TrackFindingAlgorithm
as
TrackFindingAlgorithm
from
Configurables
import
Jug__Reco__ParticlesFromTrackFit
as
ParticlesFromTrackFit
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
podioinput
=
PodioInput
(
"
PodioReader
"
,
collections
=
[
"
mcparticles
"
,
"
SiTrackerBarrelHits
"
])
#, 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
"
,
OutputLevel
=
DEBUG
)
trkcopier
=
TrkCopier
(
"
TrkCopier
"
,
inputCollection
=
"
SiTrackerBarrelHits
"
,
outputCollection
=
"
SiTrackerBarrelHits2
"
,
OutputLevel
=
DEBUG
)
#caldigi = ExampleCaloDigi(inputHitCollection="FAEC_ShHits",outputHitCollection="RawFAECShowerHits")
#ufsd_digi = UFSDTrackerDigi("ufsd_digi", inputHitCollection="SiVertexBarrelHits",outputHitCollection="VertexRawHits",timeResolution=8)
ufsd_digi
=
UFSDTrackerDigi
(
"
ufsd_digi
"
,
inputHitCollection
=
"
SiTrackerBarrelHits
"
,
outputHitCollection
=
"
SiTrackerBarrelRawHits
"
,
timeResolution
=
8
)
trackpartruth
=
TrackParamTruthInit
(
"
trk_par_init
"
,
inputMCParticles
=
"
mcparticles
"
,
outputInitialTrackParameters
=
"
InitTrackParams
"
)
#,OutputLevel=DEBUG)
trackerhit
=
TrackerHitReconstruction
(
"
trk_hit_reco
"
,
inputHitCollection
=
"
SiTrackerBarrelRawHits
"
,
outputHitCollection
=
"
TrackerBarrelRecHits
"
,
OutputLevel
=
DEBUG
)
sourcelinker
=
TrackerSourceLinker
(
"
trk_srclinker
"
,
inputHitCollection
=
"
TrackerBarrelRecHits
"
,
outputSourceLinks
=
"
BarrelTrackSourceLinks
"
,
OutputLevel
=
DEBUG
)
trk_find_alg
=
TrackFindingAlgorithm
(
"
trk_find_alg
"
,
inputSourceLinks
=
"
BarrelTrackSourceLinks
"
,
inputInitialTrackParameters
=
"
InitTrackParams
"
,
outputTrajectories
=
"
trajectories
"
,
OutputLevel
=
DEBUG
)
parts_from_fit
=
ParticlesFromTrackFit
(
"
parts_from_fit
"
,
inputTrajectories
=
"
trajectories
"
,
outputParticles
=
"
ReconstructedParticles
"
)
#,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
"
]
ApplicationMgr
(
TopAlg
=
[
podioinput
,
copier
,
trkcopier
,
ufsd_digi
,
trackerhit
,
sourcelinker
,
trackpartruth
,
trk_find_alg
,
parts_from_fit
,
out
],
EvtSel
=
'
NONE
'
,
EvtMax
=
n_events
,
ExtSvc
=
[
podioevent
,
geo_service
],
OutputLevel
=
DEBUG
)
Loading