ATLAS Offline Software
LArCollisionTimeD3PDObject.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 #
3 # @file CaloD3PDMaker/python/LArCollisionTimeD3PDObject.py
4 # @author scott snyder <snyder@bnl.gov>
5 # @date Mar, 2010
6 # @brief D3PD object for LAr collision time variables.
7 #
8 
9 
10 from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags, configFlags
11 from D3PDMakerCoreComps.D3PDObject import make_SG_D3PDObject
12 from AthenaConfiguration.ComponentFactory import CompFactory
13 
14 D3PD = CompFactory.D3PD
15 
16 _haveCells = 'AllCalo' in configFlags.Input.Collections
17 
18 LArCollisionTimeD3PDObject = \
19  make_SG_D3PDObject ('LArCollisionTime',
20  D3PDMakerFlags.LArCollisionTimeSGKey,
21  'lar_', 'LArCollisionTimeD3PDObject',
22  default_allowMissing = not _haveCells)
23 
24 if _haveCells:
25  def _larCollTimeAlgHook (c, flags, acc,
26  *args, **kw):
27  from TileGeoModel.TileGMConfig import TileGMCfg
28  acc.merge (TileGMCfg (flags))
29  from LArCellRec.LArCollisionTimeConfig import LArCollisionTimeCfg
30  acc.merge (LArCollisionTimeCfg (flags))
31  return
32  LArCollisionTimeD3PDObject.defineHook (_larCollTimeAlgHook)
33 
34 
35  LArCollisionTimeD3PDObject.defineBlock \
36  (0, 'LArCollisionTime',
38 
39 else:
40  from AthenaCommon.Logging import logging
41  mlog = logging.getLogger( 'LArCollisionTimeD3PDObject' )
42  mlog.warning ('No AllCalo cell container; skipping.')
python.LArCollisionTimeD3PDObject._larCollTimeAlgHook
def _larCollTimeAlgHook(c, flags, acc, *args, **kw)
Definition: LArCollisionTimeD3PDObject.py:25
D3PD::LArCollisionTimeFillerTool
Block filler tool for collision time information.
Definition: LArCollisionTimeFillerTool.h:29