13 from D3PDMakerCoreComps.D3PDObject
import make_SGDataVector_D3PDObject
14 from D3PDMakerConfig.D3PDMakerFlags
import D3PDMakerFlags
15 from D3PDMakerCoreComps.SimpleAssociation
import SimpleAssociation
16 from AthenaConfiguration.ComponentFactory
import CompFactory
18 D3PD = CompFactory.D3PD
22 egammaTruth_sgkey =
'egammaTruth'
25 egammaTruthD3PDObject = make_SGDataVector_D3PDObject \
26 (
'DataVector<xAOD::TruthParticle_v1>',
29 'egammaTruthD3PDObject')
32 from egammaD3PDAnalysis.egammaTruthParticleConfig \
33 import egammaTruthParticleCfg
34 acc.merge (egammaTruthParticleCfg (flags))
36 egammaTruthD3PDObject.defineHook (_egammaTruthAlgHook)
38 egammaTruthD3PDObject.defineBlock (0,
'TruthKin',
42 egammaTruthD3PDObject.defineBlock (0,
'TruthInfo',
45 egammaTruthD3PDObject.defineBlock (
48 AuxPrefix = D3PDMakerFlags.EgammaUserDataPrefix,
49 Vars = [
'etaCalo #Eta position of the impact of the track in calorimeter sampling 2',
50 'phiCalo #Phi position of the impact of the track in calorimeter sampling 2'])
51 egammaTruthD3PDObject.defineBlock (
54 AuxPrefix = D3PDMakerFlags.EgammaUserDataPrefix,
58 ProdVertexAssoc = SimpleAssociation \
59 (egammaTruthD3PDObject,
64 blockname =
'ProdVert')
65 ProdVertexAssoc.defineBlock (
68 Vars = [
'x',
'y',
'z',
'barcode'])