2 from AthenaConfiguration.ComponentAccumulator 
import ComponentAccumulator
 
    3 from JetRecConfig.StandardSmallRJets 
import AntiKt4EMPFlow, AntiKt4LCTopo, AntiKt4EMTopo, AntiKt4Truth
 
    4 from JetRecConfig.StandardLargeRJets 
import AntiKt10LCTopo_noVR, AntiKt10UFOCSSKSoftDrop_trigger
 
    5 from JetRecConfig.JetRecConfig 
import JetRecCfg
 
   10     jetdefs = [
"InTimeAntiKt4TruthJets", 
"OutOfTimeAntiKt4TruthJets"]
 
   13     for jetdef 
in jetdefs:
 
   14         if f
"xAOD::JetContainer#{jetdef}" in flags.Input.TypedCollections:
 
   15             jetList += [ f
"xAOD::JetContainer#{jetdef}" ,
 
   16                          f
"xAOD::AuxContainerBase!#{jetdef}Aux.-PseudoJet.-constituentLinks.-constituentWeights"]
 
   18     from OutputStreamAthenaPool.OutputStreamConfig 
import addToESD, addToAOD
 
   20         result.merge(
addToESD(flags, jetList))
 
   22         result.merge(
addToAOD(flags, jetList))
 
   28     """Write out the jet containers as defined by jetdefs (a list of JetDefinition). 
   30     In Run3 we don't write out jets in AOD : this function is left for convenience and testing purpose. 
   39     for jetdef 
in jetdefs:
 
   40         jetList += [ f
"xAOD::JetContainer#{jetdef.fullname()}" ,
 
   41                      f
"xAOD::JetAuxContainer#{jetdef.fullname()}Aux.-PseudoJet"]
 
   48     jetList += [
"xAOD::EventShape#Kt4EMPFlowEventShape",
 
   49                 "xAOD::EventShapeAuxInfo#Kt4EMPFlowEventShapeAux.",
 
   50                 "xAOD::EventShape#Kt4EMPFlowNeutEventShape",
 
   51                 "xAOD::EventShapeAuxInfo#Kt4EMPFlowNeutEventShapeAux.",
 
   52                 "xAOD::EventShape#Kt4EMPFlowPUSBEventShape",
 
   53                 "xAOD::EventShapeAuxInfo#Kt4EMPFlowPUSBEventShapeAux.",
 
   54                 "xAOD::EventShape#Kt4EMTopoOriginEventShape",
 
   55                 "xAOD::EventShapeAuxInfo#Kt4EMTopoOriginEventShapeAux.",
 
   56                 "xAOD::EventShape#Kt4LCTopoOriginEventShape",
 
   57                 "xAOD::EventShapeAuxInfo#Kt4LCTopoOriginEventShapeAux."]
 
   59     from OutputStreamAthenaPool.OutputStreamConfig 
import addToESD, addToAOD
 
   61         result.merge(
addToESD(flags, jetList))
 
   63         result.merge(
addToAOD(flags, jetList))
 
   71     jetdefs = [AntiKt4EMTopo, AntiKt4EMPFlow, AntiKt4LCTopo, AntiKt4Truth, AntiKt10LCTopo_noVR, AntiKt10UFOCSSKSoftDrop_trigger]
 
   82     if flags.Output.doWriteAOD 
and flags.Jet.WriteToAOD:
 
   84     if flags.Output.doWriteESD:
 
   85         jetdefs.remove(AntiKt10UFOCSSKSoftDrop_trigger)
 
   93         from AthenaConfiguration.AllConfigFlags 
import initConfigFlags
 
   96         from AthenaConfiguration.TestDefaults 
import defaultTestFiles, defaultConditionsTags
 
   97         flags.Input.Files = defaultTestFiles.AOD_RUN3_MC
 
   98         flags.IOVDb.GlobalTag = defaultConditionsTags.RUN3_MC
 
  101         from AthenaConfiguration.Enums 
import ProductionStep
 
  102         flags.Common.ProductionStep=ProductionStep.Derivation
 
  107     from AthenaConfiguration.MainServicesConfig 
import MainServicesCfg
 
  110     from AthenaPoolCnvSvc.PoolReadConfig 
import PoolReadCfg
 
  114     from LArGeoAlgsNV.LArGMConfig 
import LArGMCfg
 
  117     from TileGeoModel.TileGMConfig 
import TileGMCfg
 
  125     from eflowRec.PFCfg 
import PFGlobalFlowElementLinkingCfg
 
  130 if __name__==
"__main__":