42 if flags.Detector.EnablePixel:
43 from PixelGeoModel.PixelGeoModelConfig
import PixelReadoutGeometryCfg
46 kwargs.setdefault(
"PixelDetEleCollKey",
"")
48 if flags.Detector.EnableSCT:
49 from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
52 kwargs.setdefault(
"SCTDetEleCollKey",
"")
54 if flags.Detector.EnableTRT:
55 from TRT_GeoModel.TRT_GeoModelConfig
import TRT_ReadoutGeometryCfg
58 kwargs.setdefault(
"TRTDetEleCollKey",
"")
60 from InDetAlignGenTools.InDetAlignGenToolsConfig
import InDetAlignDBTool
61 dbTool = result.popToolsAndMerge(
InDetAlignDBTool(flags,setAlignmentFolderName=setAlignmentFolderName))
63 histoSvc = CompFactory.THistSvc(Output = [
"IDENTIFIERTREE DATAFILE='InDetIdentifierTree.root' TYPE='ROOT' OPT='RECREATE'"])
64 result.addService( histoSvc )
65 ntupSvc = CompFactory.NTupleSvc(Output = [
"CREATEMISALIGN DATAFILE='CreateMisalignmentInDet.root' TYP='ROOT' OPT='NEW'"])
66 result.addService( ntupSvc )
67 result.setAppProperty(
"HistogramPersistency",
"ROOT")
69 kwargs.setdefault(
"IDAlignDBTool",dbTool)
70 result.addEventAlgo(CompFactory.InDetAlignment.CreateMisalignAlg(name,**kwargs))