ATLAS Offline Software
CreateLumiBlockCollectionFromFileConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 
5 
7  result = ComponentAccumulator()
8  createlb = CompFactory.CreateLumiBlockCollectionFromFile()
9  try:
10  createlb.streamName = configFlags.Input.TriggerStream.split("_")[1]
11  except IndexError:
12  pass
13  if not configFlags.Input.isMC and not configFlags.Common.isOnline:
14  from IOVDbSvc.IOVDbSvcConfig import addFolders
15 
16  result.merge(
17  addFolders(
18  configFlags,
19  ["/GLOBAL/FILECOUNT/PROMPT"],
20  tag="GlobalFileCountPrompt-Tier0",
21  detDb="GLOBAL_OFL",
22  className="CondAttrListCollection",
23  )
24  )
25  result.addEventAlgo(createlb)
26  return result
python.CreateLumiBlockCollectionFromFileConfig.CreateLumiBlockCollectionFromFileCfg
def CreateLumiBlockCollectionFromFileCfg(configFlags)
Definition: CreateLumiBlockCollectionFromFileConfig.py:6
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72