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
Commits
26a1c96e
Commit
26a1c96e
authored
6 years ago
by
John Chapman
Browse files
Options
Downloads
Patches
Plain Diff
Extend MuonGeoModelCfg to support geometry building for simulation jobs
parent
a76734f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MuonSpectrometer/MuonConfig/python/MuonGeometryConfig.py
+34
-3
34 additions, 3 deletions
MuonSpectrometer/MuonConfig/python/MuonGeometryConfig.py
with
34 additions
and
3 deletions
MuonSpectrometer/MuonConfig/python/MuonGeometryConfig.py
+
34
−
3
View file @
26a1c96e
# Copyright (C) 2002-201
8
CERN for the benefit of the ATLAS collaboration
# Copyright (C) 2002-201
9
CERN for the benefit of the ATLAS collaboration
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AtlasGeoModel.GeoModelConfig
import
GeoModelCfg
from
AtlasGeoModel.GeoModelConfig
import
GeoModelCfg
from
MuonGeoModel.MuonGeoModelConf
import
MuonDetectorTool
from
MuonGeoModel.MuonGeoModelConf
import
MuonDetectorTool
from
MuonIdHelpers.MuonIdHelpersConf
import
Muon__MuonIdHelperTool
from
MuonIdHelpers.MuonIdHelpersConf
import
Muon__MuonIdHelperTool
from
AGDD2GeoSvc.AGDD2GeoSvcConf
import
AGDDtoGeoSvc
from
MuonAGDD.MuonAGDDConf
import
MuonAGDDTool
,
NSWAGDDTool
from
StoreGate.StoreGateConf
import
StoreGateSvc
from
StoreGate.StoreGateConf
import
StoreGateSvc
import
os
def
MuonGeoModelCfg
(
flags
):
def
MuonGeoModelCfg
(
flags
):
acc
=
ComponentAccumulator
()
acc
=
ComponentAccumulator
()
...
@@ -15,7 +18,35 @@ def MuonGeoModelCfg(flags):
...
@@ -15,7 +18,35 @@ def MuonGeoModelCfg(flags):
detTool
=
MuonDetectorTool
()
detTool
=
MuonDetectorTool
()
detTool
.
UseConditionDb
=
1
detTool
.
UseConditionDb
=
1
detTool
.
UseIlinesFromGM
=
1
detTool
.
UseIlinesFromGM
=
1
if
(
(
not
flags
.
Detector
.
SimulateMuon
or
flags
.
Detector
.
OverlayMuon
)
and
"
AthSimulation_DIR
"
not
in
os
.
environ
):
# Needs configuration from MuonSpectrometer/MuonReconstruction/MuonRecExample/python/MuonAlignConfig.py to be migrated
#detTool.TheMuonAlignmentTool = "MuonAlignmentDbTool/MGM_AlignmentDbTool"
pass
else
:
detTool
.
TheMuonAlignmentTool
=
""
detTool
.
UseConditionDb
=
0
detTool
.
UseAsciiConditionData
=
0
if
flags
.
Detector
.
SimulateMuon
:
detTool
.
FillCacheInitTime
=
0
if
flags
.
GeoModel
.
Run
==
"
RUN3
"
or
flags
.
GeoModel
.
Run
==
"
RUN4
"
:
MuonDetectorTool
.
StationSelection
=
2
MuonDetectorTool
.
SelectedStations
=
[
"
EIL1
"
,
"
EIL2
"
,
"
EIL6
"
,
"
EIL7
"
,
"
EIS*
"
,
"
EIL10
"
,
"
EIL11
"
,
"
EIL12
"
,
"
EIL17
"
,
"
CSS*
"
,
"
CSL*
"
,
"
T4E*
"
,
"
T4F*
"
]
## Additional material in the muon system
AGDD2Geo
=
AGDDtoGeoSvc
()
muonAGDDTool
=
MuonAGDDTool
(
"
MuonSpectrometer
"
,
BuildNSW
=
False
)
acc
.
addPublicTool
(
muonAGDDTool
)
AGDD2Geo
.
Builders
+=
[
muonAGDDTool
]
if
flags
.
GeoModel
.
Run
==
"
RUN3
"
or
flags
.
GeoModel
.
Run
==
"
RUN4
"
:
nswAGDDTool
=
NSWAGDDTool
(
"
NewSmallWheel
"
,
Locked
=
False
)
nswAGDDTool
.
Volumes
=
[
"
NewSmallWheel
"
]
nswAGDDTool
.
DefaultDetector
=
"
Muon
"
acc
.
addPublicTool
(
nswAGDDTool
)
acc
.
addService
(
AGDD2Geo
)
gms
.
DetectorTools
+=
[
detTool
]
gms
.
DetectorTools
+=
[
detTool
]
acc
.
addService
(
gms
)
acc
.
addService
(
gms
)
...
...
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