ATLAS Offline Software
Loading...
Searching...
No Matches
JetD3PDObject.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from D3PDMakerCoreComps.D3PDObject import make_SGDataVector_D3PDObject
4from D3PDMakerConfig.D3PDMakerFlags import D3PDMakerFlags
5from AthenaConfiguration.ComponentFactory import CompFactory
6
7D3PD = CompFactory.D3PD
8
9#
10# Useful options:
11# Specify ConstitIndex_Target to fill a list of indices of jet constituents.
12# Target should be target collection for the association.
13#
14# Specify JetVertexFraction_FromUD=True to get JVF information
15# from UserData rather than from jet moments.
16#
17# Specify JetVertexFraction_FillFullJVF=True to fill JVF info for
18# all vertices (and force taking JVF from UserData).
19#
20
21
22def getJetD3PDObject(objectname='JetD3PDObject', prefix='jet_', btagleveloffset=7):
23
24 object = make_SGDataVector_D3PDObject ('DataVector<xAOD::Jet_v1>',
25 D3PDMakerFlags.JetSGKey,
26 prefix, objectname)
27
28 object.defineBlock(0, 'Kinematics',
30 WriteE = True)
31
32 object.defineBlock (
33 1, 'DQMoments',
35 Vars = ['n90 = N90Cells < int: 0',
36 'Timing < float: 0',
37 'LArQuality < float: 0',
38 'OriginIndex < float: 0',
39 'HECQuality < float: 0',
40 'NegativeE < float: 0',
41 'AverageLArQF < float: 0',
42 'BCH_CORR_CELL = BchCorrCell < float:0',
43 'BCH_CORR_DOTX = BchCorrDotx < int:0',
44 'BCH_CORR_JET = BchCorrJet < int:0',
45 'BCH_CORR_JET_FORCELL = BchCorrJetForCell < int:0',
46 'NumTowers < float: 0',
47 'ootFracCells5 < float: 0',
48 'ootFracCells10 < float: 0',
49 'ootFracClusters5 < float: 0',
50 'ootFracClusters10 < float: 0',
51 ])
52
53 object.defineBlock (
54 1, 'JetQual',
56 Vars = ['isBadLoose < int: 0',
57 'isBadMedium < int: 0',
58 'isBadTight < int: 0',
59 'isUgly < int: 0',
60 'hecf = HECFrac < float: 0',
61 ])
62
63 return object
64
65JetD3PDObject = getJetD3PDObject()
Copy aux data to D3PD.
Block filler tool for a four-momentum.
getJetD3PDObject(objectname='JetD3PDObject', prefix='jet_', btagleveloffset=7)