4 from D3PDMakerCoreComps.D3PDObject
import D3PDObject
5 from D3PDMakerConfig.D3PDMakerFlags
import D3PDMakerFlags
6 from AthenaConfiguration.ComponentFactory
import CompFactory
8 D3PD = CompFactory.D3PD
13 if sgkey
is None: sgkey =
"LArCalibrationHitActive"
14 if label
is None: label = prefix
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"
36 TypeName =
'CaloCalibrationHitContainer',
43 ObjectName = object_name,
45 D3PDMakerFlags.SaveObjectMetadata)
47 LArActiveCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject,
'laract_',
'LArActiveCaloCalibHitD3PDObject')
51 LArActiveCaloCalibHitD3PDObject.defineBlock (5,
'FullIDAllEnHits',
D3PD.CaloCalibHitFillerTool, isBasic =
False, SaveFullCellID =
False, SaveAllEnergies =
True)
54 LArInactiveCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject,
'larinact_',
'LArInactiveCaloCalibHitD3PDObject')
57 LArInactiveCaloCalibHitD3PDObject.defineBlock (2,
'FullIDHits',
D3PD.CaloCalibHitFillerTool, isBasic =
False, SaveFullCellID =
True)
58 LArInactiveCaloCalibHitD3PDObject.defineBlock (5,
'FullIDAllEnHits',
D3PD.CaloCalibHitFillerTool, isBasic =
False, SaveFullCellID =
False, SaveAllEnergies =
True)
61 LArDMCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject,
'lardm_',
'LArDMCaloCalibHitD3PDObject')
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)
68 TileCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject,
'tile_',
'TileCaloCalibHitD3PDObject')
72 TileCaloCalibHitD3PDObject.defineBlock (5,
'FullIDAllEnHits',
D3PD.CaloCalibHitFillerTool, isBasic =
False, SaveFullCellID =
False, SaveAllEnergies =
True)
75 TileDMOCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject,
'tiledmo_',
'TileDMOCaloCalibHitD3PDObject')
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 )
82 TileActiveCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject,
'tileact_',
'TileActiveCaloCalibHitD3PDObject')
86 TileActiveCaloCalibHitD3PDObject.defineBlock (5,
'FullIDAllEnHits',
D3PD.CaloCalibHitFillerTool, isBasic =
False, SaveFullCellID =
False, SaveAllEnergies =
True)
88 TileInactiveCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject,
'tileinact_',
'TileInactiveCaloCalibHitD3PDObject')
91 TileInactiveCaloCalibHitD3PDObject.defineBlock (2,
'FullIDHits',
D3PD.CaloCalibHitFillerTool, isBasic =
False, SaveFullCellID =
True)
92 TileInactiveCaloCalibHitD3PDObject.defineBlock (5,
'FullIDAllEnHits',
D3PD.CaloCalibHitFillerTool, isBasic =
False, SaveFullCellID =
False, SaveAllEnergies =
True)
95 TileDMCaloCalibHitD3PDObject = D3PDObject (makeD3PDObject,
'tiledm_',
'TileDMCaloCalibHitD3PDObject')
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)