Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
athena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue 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
John Derek Chapman
athena
Commits
39078aa8
Commit
39078aa8
authored
6 years ago
by
John Chapman
Browse files
Options
Downloads
Patches
Plain Diff
Initial implementation of ForwardDetector Geometry building
parent
c94b4872
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DetectorDescription/GeoModel/AtlasGeoModel/python/ForDetGeoModelConfig.py
+55
-0
55 additions, 0 deletions
...ion/GeoModel/AtlasGeoModel/python/ForDetGeoModelConfig.py
with
55 additions
and
0 deletions
DetectorDescription/GeoModel/AtlasGeoModel/python/ForDetGeoModelConfig.py
0 → 100644
+
55
−
0
View file @
39078aa8
# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
from
AthenaConfiguration.AthConfigFlags
import
AthConfigFlags
from
IOVDbSvc.IOVDbSvcConfig
import
addFoldersSplitOnline
# TODO This isn't used yet anywhere and the new style ConfigFlag
# equivalents of the DetFlags used here have yet to be created.
def
ForDetGeometryCfg
(
flags
):
from
AtlasGeoModel.GeoModelConfig
import
GeoModelCfg
acc
,
geoModelSvc
=
GeoModelCfg
(
flags
)
from
GeometryDBSvc.GeometryDBSvcConf
import
GeometryDBSvc
acc
.
addService
(
GeometryDBSvc
(
"
InDetGeometryDBSvc
"
))
# LUCID
if
True
:
#( DetFlags.detdescr.Lucid_on() ):
from
LUCID_GeoModel.LUCID_GeoModelConf
import
LUCID_DetectorTool
geoModelSvc
.
DetectorTools
+=
[
LUCID_DetectorTool
()
]
# ALFA
if
True
:
#( DetFlags.detdescr.ALFA_on() ):
from
ALFA_GeoModel.ALFA_GeoModel_joboption
import
getALFA_DetectorTool
#from ALFA_GeoModel.ALFA_GeoModelConf import ALFA_DetectorTool
theALFA_DetectorTool
=
ALFA_DetectorTool
(
name
)
theALFA_DetectorTool
.
MetrologyType
=
3
theALFA_DetectorTool
.
B7L1U_MDGeometryType
=
2
theALFA_DetectorTool
.
B7L1U_ODGeometryType
=
2
theALFA_DetectorTool
.
B7L1L_MDGeometryType
=
2
theALFA_DetectorTool
.
B7L1L_ODGeometryType
=
2
theALFA_DetectorTool
.
A7L1U_MDGeometryType
=
2
theALFA_DetectorTool
.
A7L1U_ODGeometryType
=
2
theALFA_DetectorTool
.
A7L1L_MDGeometryType
=
2
theALFA_DetectorTool
.
A7L1L_ODGeometryType
=
2
theALFA_DetectorTool
.
A7R1U_MDGeometryType
=
2
theALFA_DetectorTool
.
A7R1U_ODGeometryType
=
2
theALFA_DetectorTool
.
A7R1L_MDGeometryType
=
2
theALFA_DetectorTool
.
A7R1L_ODGeometryType
=
2
theALFA_DetectorTool
.
B7R1U_MDGeometryType
=
2
theALFA_DetectorTool
.
B7R1U_ODGeometryType
=
2
theALFA_DetectorTool
.
B7R1L_MDGeometryType
=
2
theALFA_DetectorTool
.
B7R1L_ODGeometryType
=
2
geoModelSvc
.
DetectorTools
+=
[
thALFA_DetectorTool
]
acc
.
merge
(
addFoldersSplitOnline
(
flags
,
'
FWD
'
,
'
/FWD/Onl/ALFA/position_calibration
'
,
'
/FWD/ALFA/position_calibration
'
))
# ForwardRegion
if
True
:
#( DetFlags.detdescr.FwdRegion_on() ):
from
ForwardRegionGeoModel.ForwardRegionGeoModelConf
import
ForwardRegionGeoModelTool
geoModelSvc
.
DetectorTools
+=
[
ForwardRegionGeoModelTool
()
]
# ZDC
if
True
:
#( DetFlags.detdescr.ZDC_on() ):
from
ZDC_GeoM.ZDC_GeoMConf
import
ZDC_DetTool
geoModelSvc
.
DetectorTools
+=
[
ZDC_DetTool
()
]
# AFP
if
True
:
#( DetFlags.detdescr.AFP_on() ):
from
AFP_GeoModel.AFP_GeoModelConf
import
AFP_GeoModelTool
geoModelSvc
.
DetectorTools
+=
[
AFP_GeoModelTool
()
]
acc
.
addService
(
geoModelSvc
)
return
acc
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