ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
TileCalorimeter
TileRecAlgs
python
MBTSTimeDiffEventInfoAlgConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
2
3
"""Define method to construct configured MBTS time difference algorithm"""
4
5
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
6
from
AthenaConfiguration.ComponentFactory
import
CompFactory
7
from
AthenaConfiguration.Enums
import
ProductionStep
8
from
TileConfiguration.TileConfigFlags
import
TileRunType
9
10
def
MBTSTimeDiffEventInfoAlgCfg
(flags, **kwargs):
11
"""Return component accumulator with configured MBTS time difference algorithm
12
13
Arguments:
14
flags -- Athena configuration flags
15
"""
16
17
acc = ComponentAccumulator()
18
19
from
TileConditions.TileCablingSvcConfig
import
TileCablingSvcCfg
20
acc.merge( TileCablingSvcCfg(flags) )
21
22
from
TileGeoModel.TileGMConfig
import
TileGMCfg
23
acc.merge(TileGMCfg(flags))
24
25
from
LArGeoAlgsNV.LArGMConfig
import
LArGMCfg
26
acc.merge(LArGMCfg(flags))
27
28
if
flags.Common.ProductionStep
is
ProductionStep.MinbiasPreprocessing:
29
kwargs.setdefault(
'EventInfo'
, flags.Overlay.BkgPrefix +
"EventInfo"
)
30
31
MBTSTimeDiffEventInfoAlg=CompFactory.MBTSTimeDiffEventInfoAlg
32
acc.addEventAlgo(
MBTSTimeDiffEventInfoAlg
(**kwargs), primary =
True
)
33
34
return
acc
35
36
37
38
if
__name__ ==
"__main__"
:
39
40
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
41
from
AthenaConfiguration.TestDefaults
import
defaultTestFiles
42
from
AthenaCommon.Logging
import
log
43
from
AthenaCommon.Constants
import
DEBUG
44
45
# Test setup
46
log.setLevel(DEBUG)
47
48
flags = initConfigFlags()
49
flags.Input.Files = defaultTestFiles.AOD_RUN2_DATA
50
flags.Tile.RunType = TileRunType.PHY
51
flags.lock()
52
53
from
AthenaConfiguration.MainServicesConfig
import
MainServicesCfg
54
acc = MainServicesCfg(flags)
55
56
from
AthenaPoolCnvSvc.PoolReadConfig
import
PoolReadCfg
57
acc.merge(PoolReadCfg(flags))
58
59
acc.merge(
MBTSTimeDiffEventInfoAlgCfg
(flags) )
60
61
flags.dump()
62
acc.printConfig(withDetails =
True
, summariseProps =
True
)
63
acc.store( open(
'MBTSTimeDiffEventInfoAlg.pkl'
,
'wb'
) )
64
65
sc = acc.run(maxEvents = 3)
66
67
import
sys
68
# Success should be 0
69
sys.exit(
not
sc.isSuccess())
70
MBTSTimeDiffEventInfoAlg
Definition
MBTSTimeDiffEventInfoAlg.h:20
Constants
MBTSTimeDiffEventInfoAlgConfig.MBTSTimeDiffEventInfoAlgCfg
MBTSTimeDiffEventInfoAlgCfg(flags, **kwargs)
Definition
MBTSTimeDiffEventInfoAlgConfig.py:10
Generated on
for ATLAS Offline Software by
1.17.0