ATLAS Offline Software
LArAlignDbRead.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 if __name__=="__main__":
4 
5  from AthenaConfiguration.ComponentFactory import CompFactory
6  from AthenaConfiguration.MainServicesConfig import MainServicesCfg
7  from AthenaConfiguration.AllConfigFlags import initConfigFlags
9 
10  from AthenaConfiguration.TestDefaults import defaultGeometryTags
11  flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
12 
13  flags.Input.Files=[]
14 
15  #flags.IOVDb.DBConnection = 'sqlite://;schema=LArAlign-2025-v0.db;dbname=CONDBR2'
16  flags.IOVDb.DBConnection = "COOLONL_LAR/CONDBR2"
17 
18  flags.lock()
19 
20  cfg=MainServicesCfg(flags)
21 
22  from McEventSelector.McEventSelectorConfig import McEventSelectorCfg
23  cfg.merge(McEventSelectorCfg(flags,
24  RunNumber=999999,
25  EventsPerRun=1,
26  FirstEvent=1,
27  EventsPerLB=1,
28  InitialTimeStamp=0,
29  TimeStampInterval=1))
30 
31  from IOVDbSvc.IOVDbSvcConfig import addFolders
32  cfg.merge(addFolders(flags,"/LAR/Align<tag>LARAlign-RUN2-UPD1-01</tag>"))
33 
34  cfg.addEventAlgo(CompFactory.LArAlignDbAlg())
35 
36  cfg.getService("PoolSvc").ReadCatalog += ["xmlcatalog_file:/afs/cern.ch/atlas/conditions/poolcond/catalogue/poolcond/PoolCat_comcond.xml"]
37 
38  cfg.run(1)
python.MainServicesConfig.MainServicesCfg
def MainServicesCfg(flags, LoopMgr='AthenaEventLoopMgr')
Definition: MainServicesConfig.py:312
python.McEventSelectorConfig.McEventSelectorCfg
def McEventSelectorCfg(flags, **kwargs)
Definition: McEventSelectorConfig.py:5
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:86
python.AllConfigFlags.initConfigFlags
def initConfigFlags()
Definition: AllConfigFlags.py:19