ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Generators
Photospp_i
python
PhotosppConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
from
GeneratorConfig.Sequences
import
EvgenSequence, EvgenSequenceFactory
6
7
# Get logger
8
from
AthenaCommon.Logging
import
logging
9
log = logging.getLogger(
"PhotosppConfig"
)
10
11
12
def
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
PhotosppConfig.PhotosppCfg
PhotosppCfg(flags, name="Photospp_i", **kwargs)
Definition
PhotosppConfig.py:12
Generated on
for ATLAS Offline Software by
1.17.0