10 from D3PDMakerConfig.D3PDMakerFlags
import D3PDMakerFlags, configFlags
11 from D3PDMakerCoreComps.D3PDObject
import make_SG_D3PDObject
12 from AthenaConfiguration.ComponentFactory
import CompFactory
14 D3PD = CompFactory.D3PD
16 _haveCells =
'AllCalo' in configFlags.Input.Collections
18 LArCollisionTimeD3PDObject = \
19 make_SG_D3PDObject (
'LArCollisionTime',
20 D3PDMakerFlags.LArCollisionTimeSGKey,
21 'lar_',
'LArCollisionTimeD3PDObject',
22 default_allowMissing =
not _haveCells)
27 from TileGeoModel.TileGMConfig
import TileGMCfg
28 acc.merge (TileGMCfg (flags))
29 from LArCellRec.LArCollisionTimeConfig
import LArCollisionTimeCfg
30 acc.merge (LArCollisionTimeCfg (flags))
32 LArCollisionTimeD3PDObject.defineHook (_larCollTimeAlgHook)
35 LArCollisionTimeD3PDObject.defineBlock \
36 (0,
'LArCollisionTime',
40 from AthenaCommon.Logging
import logging
41 mlog = logging.getLogger(
'LArCollisionTimeD3PDObject' )
42 mlog.warning (
'No AllCalo cell container; skipping.')