70 """Configure the TCAL1 derivation framework"""
72 TCAL2Prefix =
'TCAL2_'
75 acc.merge(
TCAL2KernelCfg(flags, name=
"TCAL2Kernel", StreamName =
"StreamDAOD_TCAL2", Prefix=TCAL2Prefix))
77 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
78 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
79 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
80 TCAL2SlimmingHelper =
SlimmingHelper(
"TCAL2SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
81 TCAL2SlimmingHelper.SmartCollections = [
"EventInfo"]
83 if flags.GeoModel.Run
in [LHCPeriod.Run1, LHCPeriod.Run2, LHCPeriod.Run3]:
84 mbtsItems = [f
'std::vector<float>#TCAL2_mbts_{item}' for item
in [
'energy',
'time',
'eta',
'phi']]
85 mbtsItems += [f
'std::vector<int>#TCAL2_mbts_{item}' for item
in [
'quality',
'module',
'channel',
'type']]
86 TCAL2SlimmingHelper.StaticContent = mbtsItems
87 if flags.GeoModel.Run
is LHCPeriod.Run2:
88 e4prItems = [f
'std::vector<float>#TCAL2_e4pr_{item}' for item
in [
'energy',
'time']]
89 e4prItems += [
'std::vector<int>#TCAL2_e4pr_{item}' for item
in [
'quality',
'module',
'channel',
'type']]
90 TCAL2SlimmingHelper.StaticContent += e4prItems
91 TCAL2ItemList = TCAL2SlimmingHelper.GetItemList()
93 acc.merge(
OutputStreamCfg(flags,
"DAOD_TCAL2", ItemList=TCAL2ItemList, AcceptAlgs=[
"TCAL2Kernel"]))
94 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_TCAL2", AcceptAlgs=[
"TCAL2Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))