Skip to content
Snippets Groups Projects
Commit 113b6697 authored by Nick Barlow's avatar Nick Barlow Committed by Graeme Stewart
Browse files

changes for AthSimulation releases (SCT_GeoModel-00-12-07)

	* Changes obo John Chapman to reduce dependencies, for use in
	AthSimulation releases
	* Tag as SCT_GeoModel-00-12-07
parent f5bb1ba7
No related branches found
No related tags found
No related merge requests found
...@@ -25,8 +25,5 @@ use InDetCondServices InDetCondServices-* InnerDetector/InDetConditions ...@@ -25,8 +25,5 @@ use InDetCondServices InDetCondServices-* InnerDetector/InDetConditions
use GeoModelInterfaces GeoModelInterfaces-* DetectorDescription/GeoModel use GeoModelInterfaces GeoModelInterfaces-* DetectorDescription/GeoModel
public public
apply_pattern declare_python_modules files="*.py"
apply_pattern dual_use_library files=*.cxx apply_pattern dual_use_library files=*.cxx
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from AthenaCommon import CfgMgr
def getSCT_DetectorTool(name="SCT_DetectorTool", **kwargs):
kwargs.setdefault("DetectorName", "SCT");
kwargs.setdefault("InitialLayout", False);
kwargs.setdefault("Alignable", True);
kwargs.setdefault("RDBAccessSvc", "RDBAccessSvc");
kwargs.setdefault("GeometryDBSvc", "InDetGeometryDBSvc");
kwargs.setdefault("GeoModelSvc", "GeoModelSvc");
from AthenaCommon.DetFlags import DetFlags
if DetFlags.digitize.SCT_on() or DetFlags.haveRDO.SCT_on() or DetFlags.haveRIO.SCT_on():
# SCTLorentzAngleSvc needed for digi and reco
from AthenaCommon.AppMgr import ServiceMgr
if not hasattr(ServiceMgr,'SCTLorentzAngleSvc'):
from SiLorentzAngleSvc.SiLorentzAngleSvcConf import SiLorentzAngleSvc
SCTLorentzAngleSvc = SiLorentzAngleSvc(name = "SCTLorentzAngleSvc",
SiConditionsServices = None,
UseMagFieldSvc = False,
DetectorName = "SCT")
ServiceMgr+=SCTLorentzAngleSvc
kwargs.setdefault("LorentzAngleSvc", "SCTLorentzAngleSvc");
else:
# SCTLorentzAngleSvc not needed for simulation
kwargs.setdefault("LorentzAngleSvc", "");
return CfgMgr.SCT_DetectorTool(name, **kwargs)
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
from AthenaCommon.CfgGetter import addAlgorithm,addTool
# add tools and algorithms to the ConfiguredFactory, see:
# https://twiki.cern.ch/twiki/bin/viewauth/AtlasComputing/ConfiguredFactory
addTool("SCT_GeoModel.SCT_GeoModelConfig.getSCT_DetectorTool","SCT_DetectorTool")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment