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
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
Peter Sherwood
athena
Commits
09d83fbc
Commit
09d83fbc
authored
5 years ago
by
Nicolas Koehler
Committed by
Adam Edward Barton
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add vp1NSWAGDDFiles option to VP1 to allow reading from local AGDD xml file
parent
6c6e51d6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
graphics/VP1/VP1Algs/share/vp1.py
+14
-0
14 additions, 0 deletions
graphics/VP1/VP1Algs/share/vp1.py
with
14 additions
and
0 deletions
graphics/VP1/VP1Algs/share/vp1.py
+
14
−
0
View file @
09d83fbc
...
...
@@ -36,6 +36,7 @@ if not 'vp1Cavern' in dir(): vp1Cavern=False
if
not
'
vp1NoAutoConf
'
in
dir
():
vp1NoAutoConf
=
False
if
not
'
vp1Trig
'
in
dir
():
vp1Trig
=
False
if
not
'
vp1NSW
'
in
dir
():
vp1NSW
=
False
if
not
'
vp1NSWAGDDFiles
'
in
dir
():
vp1NSWAGDDFiles
=
[]
def
vp1CfgErr
(
s
):
print
"
VP1 CONFIGURATION ERROR: %s
"
%
s
...
...
@@ -272,6 +273,19 @@ DetFlags.Print()
# --- GeoModel
from
AtlasGeoModel
import
SetGeometryVersion
from
AtlasGeoModel
import
GeoModelInit
from
AthenaCommon.AppMgr
import
ToolSvc
if
vp1Muon
and
len
(
vp1NSWAGDDFiles
)
>
0
:
print
"
*** VP1 NOTE *** You specified custom vp1NSWAGDDFiles, creating NSWAGDDTool to read NSWAGDD information from custom file(s) instead from built-in geometry
"
from
AthenaCommon.AppMgr
import
theApp
from
AGDD2GeoSvc.AGDD2GeoSvcConf
import
AGDDtoGeoSvc
AGDD2Geo
=
AGDDtoGeoSvc
()
theApp
.
CreateSvc
+=
[
"
AGDDtoGeoSvc
"
]
svcMgr
+=
AGDD2Geo
from
AthenaCommon
import
CfgMgr
from
MuonAGDD.MuonAGDDConf
import
NSWAGDDTool
NSWAGDDTool
=
CfgMgr
.
NSWAGDDTool
(
"
NewSmallWheel
"
,
DefaultDetector
=
"
Muon
"
,
ReadAGDD
=
False
,
XMLFiles
=
vp1NSWAGDDFiles
,
Volumes
=
[
"
NewSmallWheel
"
])
AGDD2Geo
.
Builders
+=
[
NSWAGDDTool
]
from
AthenaCommon.AppMgr
import
ServiceMgr
as
svcMgr
...
...
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