Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
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
atlas
athena
Merge requests
!73573
MuonR4 - Match measurements to simHits
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
MuonR4 - Match measurements to simHits
jojungge/athena:PrdTruthMatching
into
main
Overview
28
Commits
3
Pipelines
0
Changes
10
Merged
Johannes Junggeburth
requested to merge
jojungge/athena:PrdTruthMatching
into
main
8 months ago
Overview
17
Commits
3
Pipelines
0
Changes
10
Expand
Tagging:
@goblirsc
,
@syan
0
0
Merge request reports
Compare
main
version 3
c971dfdc
8 months ago
version 2
1c5f0674
8 months ago
version 1
3fa3575c
8 months ago
main (base)
and
latest version
latest version
31a5cd11
3 commits,
8 months ago
version 3
c971dfdc
2 commits,
8 months ago
version 2
1c5f0674
1 commit,
8 months ago
version 1
3fa3575c
2 commits,
8 months ago
10 files
+
299
−
34
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
MuonSpectrometer/MuonPhaseII/MuonPatternRecognition/MuonTruthAlgsR4/python/MuonTruthAlgsConfig.py
0 → 100644
+
66
−
0
Options
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.ComponentFactory
import
CompFactory
def
TruthSegmentMakerCfg
(
flags
,
name
=
"
TruthSegmentMakerAlg
"
,
**
kwargs
):
result
=
ComponentAccumulator
()
if
not
flags
.
Input
.
isMC
:
return
result
from
ActsAlignmentAlgs.AlignmentAlgsConfig
import
ActsGeometryContextAlgCfg
result
.
merge
(
ActsGeometryContextAlgCfg
(
flags
))
containerNames
=
[]
## If the tester runs on MC add the truth information
if
flags
.
Detector
.
EnableMDT
:
containerNames
+=
[
"
xMdtSimHits
"
]
if
flags
.
Detector
.
EnableRPC
:
containerNames
+=
[
"
xRpcSimHits
"
]
if
flags
.
Detector
.
EnableTGC
:
containerNames
+=
[
"
xTgcSimHits
"
]
if
flags
.
Detector
.
EnableMM
:
containerNames
+=
[
"
xMmSimHits
"
]
if
flags
.
Detector
.
EnablesTGC
:
containerNames
+=
[
"
xStgcSimHits
"
]
kwargs
.
setdefault
(
"
SimHitKeys
"
,
containerNames
)
the_alg
=
CompFactory
.
MuonR4
.
TruthSegmentMaker
(
name
,
**
kwargs
)
result
.
addEventAlgo
(
the_alg
,
primary
=
True
)
return
result
def
MeasToSimHitAssocAlgCfg
(
flags
,
name
=
"
MeasToSimHitConvAlg
"
,
**
kwargs
):
result
=
ComponentAccumulator
()
from
ActsAlignmentAlgs.AlignmentAlgsConfig
import
ActsGeometryContextAlgCfg
result
.
merge
(
ActsGeometryContextAlgCfg
(
flags
))
the_alg
=
CompFactory
.
MuonR4
.
PrepDataToSimHitAssocAlg
(
name
,
**
kwargs
)
result
.
addEventAlgo
(
the_alg
,
primary
=
True
)
return
result
def
TruthHitAssociationCfg
(
flags
):
result
=
ComponentAccumulator
()
if
not
flags
.
Input
.
isMC
:
return
result
if
flags
.
Detector
.
EnableMDT
:
result
.
merge
(
MeasToSimHitAssocAlgCfg
(
flags
,
name
=
"
MdtPrepDataToSimHitAssoc
"
,
SimHits
=
"
xMdtSimHits
"
,
Measurements
=
"
xAODMdtCircles
"
))
if
flags
.
Detector
.
EnableRPC
:
result
.
merge
(
MeasToSimHitAssocAlgCfg
(
flags
,
name
=
"
RpcPrepDataToSimHitAssoc
"
,
SimHits
=
"
xRpcSimHits
"
,
Measurements
=
"
xRpcMeasurements
"
))
if
flags
.
Detector
.
EnableTGC
:
result
.
merge
(
MeasToSimHitAssocAlgCfg
(
flags
,
name
=
"
TgcPrepDataToSimHitAssoc
"
,
SimHits
=
"
xTgcSimHits
"
,
Measurements
=
"
xTgcStrips
"
))
if
flags
.
Detector
.
EnableMM
:
result
.
merge
(
MeasToSimHitAssocAlgCfg
(
flags
,
name
=
"
MmPrepDataToSimHitAssoc
"
,
SimHits
=
"
xMmSimHits
"
,
Measurements
=
"
xAODMMClusters
"
))
if
flags
.
Detector
.
EnablesTGC
:
result
.
merge
(
MeasToSimHitAssocAlgCfg
(
flags
,
name
=
"
sTgcPrepDataToSimHitAssoc
"
,
SimHits
=
"
xStgcSimHits
"
,
Measurements
=
"
xAODsTgcMeasurements
"
))
return
result
Loading