4from JetRecConfig.StandardSmallRJets
import AntiKt4EMPFlow, AntiKt4LCTopo, AntiKt4EMTopo, AntiKt4Truth
5from JetRecConfig.StandardLargeRJets
import AntiKt10LCTopo_tau, AntiKt10UFOCSSKSoftDrop_trigger
9 result = ComponentAccumulator()
11 jetdefs = [
"InTimeAntiKt4TruthJets",
"OutOfTimeAntiKt4TruthJets"]
14 for jetdef
in jetdefs:
15 if f
"xAOD::JetContainer#{jetdef}" in flags.Input.TypedCollections:
16 jetList += [ f
"xAOD::JetContainer#{jetdef}" ,
17 f
"xAOD::AuxContainerBase!#{jetdef}Aux.-PseudoJet.-constituentLinks.-constituentWeights"]
19 from OutputStreamAthenaPool.OutputStreamConfig
import addToESD, addToAOD
21 result.merge(addToESD(flags, jetList))
23 result.merge(addToAOD(flags, jetList))
29 """Write out the jet containers as defined by jetdefs (a list of JetDefinition).
31 In Run3 we don't write out jets in AOD : this function is left for convenience and testing purpose.
33 result = ComponentAccumulator()
40 for jetdef
in jetdefs:
41 jetList += [ f
"xAOD::JetContainer#{jetdef.fullname()}" ,
42 f
"xAOD::JetAuxContainer#{jetdef.fullname()}Aux.-PseudoJet.-numConstit"]
49 jetList += [
"xAOD::EventShape#Kt4EMPFlowEventShape",
50 "xAOD::EventShapeAuxInfo#Kt4EMPFlowEventShapeAux.",
51 "xAOD::EventShape#Kt4EMPFlowNeutEventShape",
52 "xAOD::EventShapeAuxInfo#Kt4EMPFlowNeutEventShapeAux.",
53 "xAOD::EventShape#Kt4EMTopoOriginEventShape",
54 "xAOD::EventShapeAuxInfo#Kt4EMTopoOriginEventShapeAux.",
55 "xAOD::EventShape#Kt4LCTopoOriginEventShape",
56 "xAOD::EventShapeAuxInfo#Kt4LCTopoOriginEventShapeAux."]
58 from OutputStreamAthenaPool.OutputStreamConfig
import addToESD, addToAOD
60 result.merge(addToESD(flags, jetList))
62 result.merge(addToAOD(flags, jetList))
67 result = ComponentAccumulator()
70 jetdefs = [AntiKt4EMTopo, AntiKt4EMPFlow, AntiKt4LCTopo, AntiKt4Truth, AntiKt10LCTopo_tau, AntiKt10UFOCSSKSoftDrop_trigger]
79 result.merge(JetRecCfg(flags, jd))
81 if flags.Output.doWriteAOD
and flags.Jet.WriteToAOD:
83 if flags.Output.doWriteESD:
84 jetdefs.remove(AntiKt10UFOCSSKSoftDrop_trigger)
88 if flags.Beam.Type
is not BeamType.Cosmics:
89 from JetRecConfig.JetRecConfig
import getConstitPJGAlg
90 from JetRecConfig.StandardJetConstits
import stdConstitDic
as cst
91 from JetRecConfig.JetInputConfig
import buildEventShapeAlg
92 result.addEventAlgo(getConstitPJGAlg(cst.GPFlow, suffix=
'Neut'))
93 result.addEventAlgo(buildEventShapeAlg(cst.GPFlow,
'', suffix =
'Neut' ))
100 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
101 flags = initConfigFlags()
103 from AthenaConfiguration.TestDefaults
import defaultTestFiles, defaultConditionsTags
104 flags.Input.Files = defaultTestFiles.AOD_RUN3_MC
105 flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
108 from AthenaConfiguration.Enums
import ProductionStep
109 flags.Common.ProductionStep=ProductionStep.Derivation
114 from AthenaConfiguration.MainServicesConfig
import MainServicesCfg
115 acc = MainServicesCfg(flags)
117 from AthenaPoolCnvSvc.PoolReadConfig
import PoolReadCfg
118 acc.merge(PoolReadCfg(flags))
121 from LArGeoAlgsNV.LArGMConfig
import LArGMCfg
122 acc.merge(LArGMCfg(flags))
124 from TileGeoModel.TileGMConfig
import TileGMCfg
125 acc.merge(TileGMCfg(flags))
132 from eflowRec.PFCfg
import PFGlobalFlowElementLinkingCfg
133 acc.merge(PFGlobalFlowElementLinkingCfg(flags))