5 if __name__ ==
"__main__":
9 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
12 flags.Exec.MaxEvents = 50
15 from AthenaConfiguration.TestDefaults
import defaultTestFiles
16 flags.Input.Files = defaultTestFiles.AOD_RUN3_MC
23 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
26 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
30 from InDetConfig.InDetSecVtxFinderConfig
import InDetSecVtxFinderAlgCfg
32 name =
"InDetSecVtxFinder",
34 useTrackParticles =
True,
35 inputTrackParticles =
"InDetTrackParticles",
36 outputSecondaryVertices =
"RecoSecVtx",
37 doVertexMerging =
False,
38 OutputLevel = Lvl.INFO))
41 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
42 TRUTH0SlimmingHelper =
SlimmingHelper(
"TRUTH0SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
43 TRUTH0SlimmingHelper.AppendToDictionary = {
'EventInfo':
'xAOD::EventInfo',
'EventInfoAux':
'xAOD::EventAuxInfo',
44 'TruthEvents':
'xAOD::TruthEventContainer',
'TruthEventsAux':
'xAOD::TruthEventAuxContainer',
45 'TruthVertices':
'xAOD::TruthVertexContainer',
'TruthVerticesAux':
'xAOD::TruthVertexAuxContainer',
46 'TruthParticles':
'xAOD::TruthParticleContainer',
'TruthParticlesAux':
'xAOD::TruthParticleAuxContainer'}
48 TRUTH0SlimmingHelper.AllVariables = [
'EventInfo',
54 TRUTH0MetaDataItems = [
"xAOD::TruthMetaDataContainer#TruthMetaData",
"xAOD::TruthMetaDataAuxContainer#TruthMetaDataAux." ]
57 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
58 TRUTH0ItemList = TRUTH0SlimmingHelper.GetItemList()
59 TRUTH0ItemList+=[
"xAOD::VertexContainer#RecoSecVtx",
"xAOD::VertexContainer#RecoSecVtxAux."]
60 acc.merge(
OutputStreamCfg(flags,
"SecondayVertexOutput", ItemList=TRUTH0ItemList))
63 acc.printConfig(withDetails=
True, summariseProps=
True)
70 sys.exit(
not status.isSuccess())