ATLAS Offline Software
Loading...
Searching...
No Matches
GlobalSimulationConfig.py
Go to the documentation of this file.
1#!/usr/bin/env python
2# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
4from GlobalSimulation.GlobalSimAlgCfg_local import GlobalSimulationAlgCfg
5from GlobalSimulation.LArCellPreparationAlgConfig import LArCellPreparationAlgCfg
6from GlobalSimulation.Egamma1_OnlineMapNbhoodConfig import Egamma1_OnlineMapNbhoodCfg
7from PathResolver import PathResolver
8from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
9from TriggerJobOpts.TriggerHistSvcConfig import TriggerHistSvcConfig
10
11def GlobalSimulationCfg(flags, algLogLevel=None):
12
13 cfg = ComponentAccumulator()
14
15 if algLogLevel is None:
16 algLogLevel = flags.Exec.OutputLevel
17
18 cfg.merge(LArCellPreparationAlgCfg(
19 flags,
20 numberOfEnergyBits=6,
21 valueLeastSignificantBit=40,
22 valueGainFactor=4,
23 GlobalLArCellsKey="GlobalLArCells",
24 caloCells="SeedLessFS",
25 OutputLevel=algLogLevel
26 ))
27
28 cfg.merge(Egamma1_OnlineMapNbhoodCfg(flags, OutputLevel=algLogLevel))
29
30 cfg_fn = PathResolver.FindCalibFile("GlobalSimulation/globalSim_AllChainsCfg.xml")
31 cfg.merge(GlobalSimulationAlgCfg(flags, fn=cfg_fn, dump=False, OutputLevel=algLogLevel))
32
33 cfg.merge(TriggerHistSvcConfig(flags))
34
35 return cfg
static std::string FindCalibFile(const std::string &logical_file_name)
GlobalSimulationCfg(flags, algLogLevel=None)