3 from D3PDMakerCoreComps.D3PDObject
import D3PDObject
4 from AthenaConfiguration.ComponentFactory
import CompFactory
6 D3PD = CompFactory.D3PD
11 basFiller = c.BlockFillers[0]
12 print(
"getattr(c, c.name()) / Type= ",
type(basFiller))
13 if "CaloEtaCut" in list(kw.keys()):
14 basFiller.CaloEtaCut = kw[
"CaloEtaCut"]
15 if "CaloPhiCut" in list(kw.keys()):
16 basFiller.CaloPhiCut = kw[
"CaloPhiCut"]
17 if "CaloLayers" in list(kw.keys()):
18 basFiller.CaloLayers = kw[
"CaloLayers"]
19 if "CaloDetectors" in list(kw.keys()):
20 basFiller.CaloDetectors = kw[
"CaloDetectors"]
22 print(
"%s - CaloEtaCut = " % (basFiller.name), basFiller.CaloEtaCut)
23 print(
"%s - CaloPhiCut = " % (basFiller.name), basFiller.CaloPhiCut)
24 print(
"%s - CaloLayersCut = " % (basFiller.name), basFiller.CaloLayers)
25 print(
"%s - CaloDetectors = " % (basFiller.name), basFiller.CaloDetectors)
35 from D3PDMakerConfig.D3PDMakerFlags
import D3PDMakerFlags
37 typeName =
"LArHitContainer"
50 ObjectName = object_name,
52 D3PDMakerFlags.SaveObjectMetadata
58 object_name="LArSCHitD3PDObject",
61 obj = D3PDObject(_makeLArSCHit_obj_, prefix, object_name,
62 allow_args=[
"CaloEtaCut",
"CaloPhiCut",
63 "CaloLayers",
"CaloDetectors"],
67 obj.defineHook( _hookForLArSCHitD3PDObject_ )