ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LumiBlock
LumiBlockComps
python
CreateLumiBlockCollectionFromFileConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
3
from
AthenaConfiguration.ComponentFactory
import
CompFactory
4
from
AthenaConfiguration.Enums
import
LHCPeriod
5
6
7
def
CreateLumiBlockCollectionFromFileCfg
(configFlags):
8
result = ComponentAccumulator()
9
createlb = CompFactory.CreateLumiBlockCollectionFromFile()
10
11
if
configFlags.GeoModel.Run < LHCPeriod.Run3:
12
try
:
13
createlb.streamName = configFlags.Input.TriggerStream.split(
"_"
)[1]
14
except
IndexError:
15
pass
16
if
not
configFlags.Input.isMC
and
not
configFlags.Common.isOnline:
17
from
IOVDbSvc.IOVDbSvcConfig
import
addFolders
18
19
result.merge(
20
addFolders(
21
configFlags,
22
[
"/GLOBAL/FILECOUNT/PROMPT"
],
23
tag=
"GlobalFileCountPrompt-Tier0"
,
24
detDb=
"GLOBAL_OFL"
,
25
className=
"CondAttrListCollection"
,
26
)
27
)
28
result.addEventAlgo(createlb)
29
return
result
python.CreateLumiBlockCollectionFromFileConfig.CreateLumiBlockCollectionFromFileCfg
CreateLumiBlockCollectionFromFileCfg(configFlags)
Definition
CreateLumiBlockCollectionFromFileConfig.py:7
Generated on
for ATLAS Offline Software by
1.17.0