1 """ComponentAccumulator BarcodeServices configurations 
    3 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration 
    5 from AthenaConfiguration.ComponentAccumulator 
import ComponentAccumulator
 
    6 from AthenaConfiguration.ComponentFactory 
import CompFactory
 
   10     """Return the MCxBarcodeSvcCfg config flagged by Sim.TruthStrategy""" 
   11     from SimulationConfig.SimEnums 
import TruthStrategy
 
   13         TruthStrategy.MC12: MC12BarcodeSvcCfg,
 
   14         TruthStrategy.MC12LLP: MC12LLPBarcodeSvcCfg,
 
   15         TruthStrategy.MC12Plus: MC12PlusBarcodeSvcCfg,
 
   16         TruthStrategy.MC15: MC15aBarcodeSvcCfg,
 
   17         TruthStrategy.MC15a: MC15aBarcodeSvcCfg,
 
   18         TruthStrategy.MC15aPlus: MC15aPlusBarcodeSvcCfg,
 
   19         TruthStrategy.MC15aPlusLLP: MC15aPlusLLPBarcodeSvcCfg,
 
   20         TruthStrategy.Validation: ValidationBarcodeSvcCfg,
 
   23     MCxCfg = stratmap[flags.Sim.TruthStrategy]
 
   24     return MCxCfg(flags, name=
"BarcodeSvc", **kwargs)
 
   29     svc = CompFactory.Barcode.LegacyBarcodeSvc(name, **kwargs)
 
   30     result.addService(svc, primary=
True)
 
   56     svc = CompFactory.Barcode.ValidationBarcodeSvc(name, **kwargs)
 
   57     result.addService(svc, primary=
True)