7 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory
import CompFactory
9 from AthenaConfiguration.Enums
import MetadataCategory
11 streamName =
"StreamDAOD_IDTR2"
19 from DerivationFrameworkInDet.InDetToolsConfig
import InDetLRTMergeCfg
23 from VrtSecInclusive.VrtSecInclusiveConfig
import VrtSecInclusiveCfg
26 name=
"VrtSecInclusive",
27 AugmentingVersionString=
"",
28 FillIntermediateVertices=
False,
29 TrackLocation=
"InDetWithLRTTrackParticles"))
32 from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig
import (
33 MaterialSVFinderToolCfg, DVFinderToolCfg)
34 MaterialSVFinderTool = acc.popToolsAndMerge(
36 acc.addEventAlgo(CompFactory.Rec.NewVrtSecInclusiveAlg(
37 name=
"NewVrtSecInclusive_Material",
38 TrackParticleContainer=
"InDetWithLRTTrackParticles",
39 PrimaryVertexContainer=
"PrimaryVertices",
40 BVertexContainerName=
"NewVrtSecInclusive_SecondaryVertices_Material",
41 BVertexTool=MaterialSVFinderTool))
44 acc.addEventAlgo(CompFactory.Rec.NewVrtSecInclusiveAlg(
45 name=
"NewVrtSecInclusive_DV",
46 TrackParticleContainer=
"InDetWithLRTTrackParticles",
47 PrimaryVertexContainer=
"PrimaryVertices",
48 BVertexContainerName=
"NewVrtSecInclusive_SecondaryVertices_DV",
49 BVertexTool=DVFinderTool))
52 IDTR2V0ContainerName =
"IDTR2RecoV0Candidates"
53 IDTR2KshortContainerName =
"IDTR2RecoKshortCandidates"
54 IDTR2LambdaContainerName =
"IDTR2RecoLambdaCandidates"
55 IDTR2LambdabarContainerName =
"IDTR2RecoLambdabarCandidates"
57 from InDetConfig.InDetV0FinderConfig
import IDTR2_V0FinderToolCfg
60 name=
"IDTR2_V0FinderTool",
61 TrackParticleCollection=
"InDetWithLRTTrackParticles",
62 V0ContainerName=IDTR2V0ContainerName,
63 KshortContainerName=IDTR2KshortContainerName,
64 LambdaContainerName=IDTR2LambdaContainerName,
65 LambdabarContainerName=IDTR2LambdabarContainerName))
67 from DerivationFrameworkBPhys.V0ToolConfig
import BPHY_Reco_V0FinderCfg
69 flags, derivation =
"IDTR2",
70 V0ContainerName = IDTR2V0ContainerName,
71 KshortContainerName = IDTR2KshortContainerName,
72 LambdaContainerName = IDTR2LambdaContainerName,
73 LambdabarContainerName = IDTR2LambdabarContainerName,
74 CheckVertexContainers = [
'PrimaryVertices'],
75 V0FinderTool = V0FinderTool))
78 augmentationTools = [IDTR2_Reco_V0Finder]
81 from InDetTrackSystematicsTools.InDetTrackSystematicsToolsConfig
import TrackSystematicsAlgCfg
84 InputTrackContainer=
"InDetWithLRTTrackParticles",
85 OutputTrackContainer=(
86 "InDetWithLRTTrackParticles_TRK_EFF_LARGED0_GLOBAL__1down")))
90 name=
"IDTR2_V0FinderTool_Syst",
91 TrackParticleCollection=(
92 "InDetWithLRTTrackParticles_TRK_EFF_LARGED0_GLOBAL__1down"),
93 V0ContainerName=IDTR2V0ContainerName +
"Syst",
94 KshortContainerName=IDTR2KshortContainerName +
"Syst",
95 LambdaContainerName=IDTR2LambdaContainerName +
"Syst",
96 LambdabarContainerName=IDTR2LambdabarContainerName +
"Syst"))
99 flags, derivation =
"IDTR2", suffix =
"_Syst",
100 V0ContainerName = IDTR2V0ContainerName +
"Syst",
101 KshortContainerName = IDTR2KshortContainerName +
"Syst",
102 LambdaContainerName = IDTR2LambdaContainerName +
"Syst",
103 LambdabarContainerName = IDTR2LambdabarContainerName +
"Syst",
104 CheckVertexContainers = [
'PrimaryVertices'],
105 V0FinderTool = V0FinderToolSyst))
107 augmentationTools += [IDTR2_Reco_V0FinderSyst]
109 for t
in augmentationTools:
113 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
115 AugmentationTools=augmentationTools,
116 SkimmingTools=skimmingTools))
121 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
122 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
123 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
126 "IDTR2SlimmingHelper",
127 NamesAndTypes=flags.Input.TypedCollections,
130 IDTR2SlimmingHelper.AllVariables = [
133 "InDetTrackParticles",
134 "InDetLargeD0TrackParticles",
140 StaticContent += [
"xAOD::VertexContainer#VrtSecInclusive_SecondaryVertices"]
141 StaticContent += [
"xAOD::VertexAuxContainer#VrtSecInclusive_SecondaryVerticesAux."]
143 for vertexContainer
in [
"NewVrtSecInclusive_SecondaryVertices_DV",
144 "NewVrtSecInclusive_SecondaryVertices_Material",
145 "IDTR2RecoV0Candidates",
146 "IDTR2RecoKshortCandidates",
147 "IDTR2RecoLambdaCandidates",
148 "IDTR2RecoLambdabarCandidates",
149 "IDTR2RecoV0CandidatesSyst",
150 "IDTR2RecoKshortCandidatesSyst",
151 "IDTR2RecoLambdaCandidatesSyst",
152 "IDTR2RecoLambdabarCandidatesSyst"]:
153 StaticContent += [
"xAOD::VertexContainer#%s" % vertexContainer]
154 StaticContent += [
"xAOD::VertexAuxContainer#%sAux.-vxTrackAtVertex" %
157 IDTR2SlimmingHelper.StaticContent = StaticContent
159 IDTR2ItemList = IDTR2SlimmingHelper.GetItemList()
161 ItemList=IDTR2ItemList,
162 AcceptAlgs=[
"IDTR2Kernel"]))
164 AcceptAlgs=[
"IDTR2Kernel"],
165 createMetadata=[MetadataCategory.CutFlowMetaData]))