7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from IOVDbSvc.IOVDbSvcConfig
import addFolders
10 from TrigEDMConfig.TriggerEDM
import recordable
18 acc.merge(
addFolders(flags,
"/FWD/AFP/ToFParameters/Vertex<tag>AFPMCToFVtx-ideal-01</tag>",
'FWD_OFL', className=
'CondAttrListCollection', db=
'OFLP200'))
19 tofVtxParamTool = CompFactory.getComp(
"AFP::ToFVtxParamDBTool")(
"ToFVtxParamDBTool", vtx_param_key=
"/FWD/AFP/ToFParameters/Vertex")
21 acc.merge(
addFolders(flags,
"/FWD/Onl/AFP/ToFParameters/Vertex<tag>AFPToFVtx-01</tag>",
'FWD_ONL', className=
'CondAttrListCollection', db=
'CONDBR2'))
22 tofVtxParamTool = CompFactory.getComp(
"AFP::ToFVtxParamDBTool")(
"ToFVtxParamDBTool", vtx_param_key=
"/FWD/Onl/AFP/ToFParameters/Vertex")
24 afpVertexRecoTool = CompFactory.AFP_VertexRecoBasic(
"AFP_VertexRecoBasic", TrackDistance=0.5, tofVtxParamDBTool=tofVtxParamTool, **kwargs)
26 verticesToolsList=[afpVertexRecoTool]
30 for vertexTool
in verticesToolsList:
31 contName=getattr(vertexTool,
"verticesContainerName", vertexTool.getDefaultProperty(
"verticesContainerName"))
32 if contName
not in outputVertexList:
33 outputVertexList.append(contName)
36 vertexRecoTool = CompFactory.AFP_VertexRecoTool(
"AFP_VertexRecoTool", RecoToolsList=verticesToolsList, AFPVertexContainerList=outputVertexList )
39 acc.addEventAlgo(CompFactory.AFP_VertexReco(
"AFP_VertexReco", recoTool = vertexRecoTool))
45 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
48 acc.merge(
AFP_VertexReco_Cfg(flags, {
"AFPToFTrackContainerKey":
"HLT_AFPToFTrackContainer",
"AFPProtonContainerKey":
"HLT_AFPProtonContainer",
"verticesContainerName":
recordable(
"HLT_AFPVertexContainer")}))