ATLAS Offline Software
Loading...
Searching...
No Matches
PhotosppConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4from AthenaConfiguration.ComponentFactory import CompFactory
5from GeneratorConfig.Sequences import EvgenSequence, EvgenSequenceFactory
6
7# Get logger
8from AthenaCommon.Logging import logging
9log = logging.getLogger("PhotosppConfig")
10
11
12def PhotosppCfg(flags, name="Photospp_i", **kwargs):
13 """
14 The main Photos configuration fragment that sets up the
15 algorithm and returns a CA instance.
16 """
17
18 # Set default Photos++ QED config
19 kwargs.setdefault("InfraRedCutOff", 1E-7)
20
21 # Create CA object
22 ca = ComponentAccumulator(EvgenSequenceFactory(EvgenSequence.Generator))
23 ca.addEventAlgo(
24 CompFactory.Photospp_i(name, **kwargs)
25 )
26
27 # Announce generator to service
28 from GeneratorConfig.GeneratorInfoSvcConfig import GeneratorInfoSvcCfg
29 ca.merge(GeneratorInfoSvcCfg(flags, Generators=["Photospp"]), sequenceName=EvgenSequence.Generator.value)
30
31 return ca
PhotosppCfg(flags, name="Photospp_i", **kwargs)