ATLAS Offline Software
Loading...
Searching...
No Matches
GepPi0AlgConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5
7 flags,
8 name,
9 caloCellsProducer="EMB1CellsFromCaloClusters",
10 dump=False,
11 OutputLevel=None):
12
13 cfg = ComponentAccumulator()
14
15 alg = CompFactory.GepPi0Alg(name)
16 if caloCellsProducer == "EMB1CellsFromCaloCells":
17 alg.caloCellsProducer = CompFactory.EMB1CellsFromCaloCells()
18 else:
19 alg.caloCellsProducer = CompFactory.EMB1CellsFromCaloClusters()
20
21 if OutputLevel is not None:
22 alg.OutputLevel = OutputLevel
23
24 alg.dump = dump
25 cfg.addEventAlgo(alg)
26
27 return cfg
28
29
GepPi0AlgCfg(flags, name, caloCellsProducer="EMB1CellsFromCaloClusters", dump=False, OutputLevel=None)