ATLAS Offline Software
CaloCalibHitD3PDObject.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 
4 from D3PDMakerCoreComps.D3PDObject import D3PDObject
5 from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
6 from AthenaConfiguration.ComponentFactory import CompFactory
7 
8 D3PD = CompFactory.D3PD
9 
10 def makeD3PDObject (name, prefix, object_name, getter = None,
11  sgkey = None,
12  label = None):
13  if sgkey is None: sgkey = "LArCalibrationHitActive"
14  if label is None: label = prefix
15 
16  if prefix=="laract_" :
17  sgkey = "LArCalibrationHitActive"
18  elif prefix=="larinact_" :
19  sgkey = "LArCalibrationHitInactive"
20  elif prefix=="lardm_" :
21  sgkey = "LArCalibrationHitDeadMaterial"
22  elif prefix=="tile_" :
23  sgkey = "TileCalibrationCellHitCnt"
24  elif prefix=="tileact_" :
25  sgkey = "TileCalibHitActiveCell"
26  elif prefix=="tileinact_" :
27  sgkey = "TileCalibHitInactiveCell"
28  elif prefix=="tiledm_" :
29  sgkey = "TileCalibHitDeadMaterial"
30  elif prefix=="tiledmo_" :
31  sgkey = "TileCalibrationDMHitCnt"
32 
33  if not getter:
35  (name + '_Getter',
36  TypeName = 'CaloCalibrationHitContainer',
37  SGKey = sgkey,
38  Label = label)
39 
40  return D3PD.VectorFillerTool (name,
41  Prefix = prefix,
42  Getter = getter,
43  ObjectName = object_name,
44  SaveMetadata = \
45  D3PDMakerFlags.SaveObjectMetadata)
46 
47 LArActiveCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject, 'laract_', 'LArActiveCaloCalibHitD3PDObject')
48 
49 LArActiveCaloCalibHitD3PDObject.defineBlock (1, 'Hits', D3PD.CaloCalibHitFillerTool)
50 LArActiveCaloCalibHitD3PDObject.defineBlock (2, 'FullIDHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = True)
51 LArActiveCaloCalibHitD3PDObject.defineBlock (5, 'FullIDAllEnHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = False, SaveAllEnergies = True)
52 
53 
54 LArInactiveCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject, 'larinact_', 'LArInactiveCaloCalibHitD3PDObject')
55 
56 LArInactiveCaloCalibHitD3PDObject.defineBlock (1, 'Hits', D3PD.CaloCalibHitFillerTool)
57 LArInactiveCaloCalibHitD3PDObject.defineBlock (2, 'FullIDHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = True)
58 LArInactiveCaloCalibHitD3PDObject.defineBlock (5, 'FullIDAllEnHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = False, SaveAllEnergies = True)
59 
60 
61 LArDMCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject, 'lardm_', 'LArDMCaloCalibHitD3PDObject')
62 
63 LArDMCaloCalibHitD3PDObject.defineBlock (1, 'Hits', D3PD.CaloCalibHitFillerTool,isDeadMaterial = True)
64 LArDMCaloCalibHitD3PDObject.defineBlock (2, 'FullIDHits', D3PD.CaloCalibHitFillerTool,isDeadMaterial = True, isBasic = False, SaveFullCellID = True)
65 LArDMCaloCalibHitD3PDObject.defineBlock (5, 'FullIDAllEnHits', D3PD.CaloCalibHitFillerTool,isDeadMaterial = True, isBasic = False, SaveFullCellID = False, SaveAllEnergies = True)
66 
67 
68 TileCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject, 'tile_', 'TileCaloCalibHitD3PDObject')
69 
70 TileCaloCalibHitD3PDObject.defineBlock (1, 'Hits', D3PD.CaloCalibHitFillerTool)
71 TileCaloCalibHitD3PDObject.defineBlock (2, 'FullIDHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = True)
72 TileCaloCalibHitD3PDObject.defineBlock (5, 'FullIDAllEnHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = False, SaveAllEnergies = True)
73 
74 
75 TileDMOCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject, 'tiledmo_', 'TileDMOCaloCalibHitD3PDObject')
76 
77 TileDMOCaloCalibHitD3PDObject.defineBlock (1, 'Hits', D3PD.CaloCalibHitFillerTool, isDeadMaterial = True)
78 TileDMOCaloCalibHitD3PDObject.defineBlock (2, 'FullIDHits', D3PD.CaloCalibHitFillerTool, isDeadMaterial = True, isBasic = False, SaveFullCellID = True )
79 TileDMOCaloCalibHitD3PDObject.defineBlock (5, 'FullIDAllEnHits', D3PD.CaloCalibHitFillerTool, isDeadMaterial = True, isBasic = False, SaveFullCellID = False, SaveAllEnergies = True )
80 
81 
82 TileActiveCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject, 'tileact_', 'TileActiveCaloCalibHitD3PDObject')
83 
84 TileActiveCaloCalibHitD3PDObject.defineBlock (1, 'Hits', D3PD.CaloCalibHitFillerTool)
85 TileActiveCaloCalibHitD3PDObject.defineBlock (2, 'FullIDHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = True)
86 TileActiveCaloCalibHitD3PDObject.defineBlock (5, 'FullIDAllEnHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = False, SaveAllEnergies = True)
87 
88 TileInactiveCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject, 'tileinact_', 'TileInactiveCaloCalibHitD3PDObject')
89 
90 TileInactiveCaloCalibHitD3PDObject.defineBlock (1, 'Hits', D3PD.CaloCalibHitFillerTool)
91 TileInactiveCaloCalibHitD3PDObject.defineBlock (2, 'FullIDHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = True)
92 TileInactiveCaloCalibHitD3PDObject.defineBlock (5, 'FullIDAllEnHits', D3PD.CaloCalibHitFillerTool, isBasic = False, SaveFullCellID = False, SaveAllEnergies = True)
93 
94 
95 TileDMCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject, 'tiledm_', 'TileDMCaloCalibHitD3PDObject')
96 
97 TileDMCaloCalibHitD3PDObject.defineBlock (1, 'Hits', D3PD.CaloCalibHitFillerTool, isDeadMaterial = True)
98 TileDMCaloCalibHitD3PDObject.defineBlock (2, 'FullIDHits', D3PD.CaloCalibHitFillerTool, isDeadMaterial = True, isBasic = False, SaveFullCellID = True)
99 TileDMCaloCalibHitD3PDObject.defineBlock (5, 'FullIDAllEnHits', D3PD.CaloCalibHitFillerTool, isDeadMaterial = True, isBasic = False, SaveFullCellID = False, SaveAllEnergies = True)
100 
101 
python.CaloCalibHitD3PDObject.makeD3PDObject
def makeD3PDObject(name, prefix, object_name, getter=None, sgkey=None, label=None)
Definition: CaloCalibHitD3PDObject.py:10
D3PD::CaloCalibrationHitContainerGetterTool
define a special getter
Definition: CaloCalibHitFillerTool.h:32
D3PD::CaloCalibHitFillerTool
Block filler tool for EM samplings from a CaloCluster.
Definition: CaloCalibHitFillerTool.h:50
D3PD::VectorFillerTool
Object filler tool for a collection of objects, saved as vectors.
Definition: VectorFillerTool.h:70