ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArAlignment
LArAlignmentAlgs
python
LArAlignDbWrite.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3
4
if
__name__==
"__main__"
:
5
6
from
AthenaConfiguration.ComponentFactory
import
CompFactory
7
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
8
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
9
flags=initConfigFlags()
10
11
from
AthenaConfiguration.TestDefaults
import
defaultGeometryTags
12
flags.GeoModel.AtlasVersion = defaultGeometryTags.RUN3
13
14
flags.Input.Files=[]
15
16
flags.IOVDb.DBConnection =
'sqlite://;schema=LArAlign-2025-v0.db;dbname=CONDBR2'
17
18
flags.lock()
19
20
cfg=MainServicesCfg(flags)
21
from
McEventSelector.McEventSelectorConfig
import
McEventSelectorCfg
22
cfg.merge(McEventSelectorCfg(flags,
23
RunNumber=1,
24
EventsPerRun=1,
25
FirstEvent=1,
26
EventsPerLB=1,
27
InitialTimeStamp=0,
28
TimeStampInterval=1))
29
30
from
IOVDbSvc.IOVDbSvcConfig
import
IOVDbSvcCfg
31
cfg.merge (IOVDbSvcCfg (flags))
32
33
from
AthenaPoolCnvSvc.PoolWriteConfig
import
PoolWriteCfg
34
cfg.merge( PoolWriteCfg(flags) )
35
36
cfg.addEventAlgo(CompFactory.LArAlignDbAlg(
37
WriteCondObjs =
True
,
38
RegisterIOV =
True
,
39
InpFile =
"LArAlign-2025-v0.inp"
,
40
TagName =
"LArAlign-2025-v0"
,
41
OutpFile =
"LArAlign-2025-v0.pool.root"
))
42
43
cfg.addService(CompFactory.IOVRegistrationSvc(RecreateFolders =
True
))
44
45
46
cfg.run(1)
Generated on
for ATLAS Offline Software by
1.17.0