ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
JetD3PDMaker
python
JetD3PDObject.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
D3PDMakerCoreComps.D3PDObject
import
make_SGDataVector_D3PDObject
4
from
D3PDMakerConfig.D3PDMakerFlags
import
D3PDMakerFlags
5
from
AthenaConfiguration.ComponentFactory
import
CompFactory
6
7
D3PD = 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
22
def
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'
,
29
D3PD.FourMomFillerTool
,
30
WriteE =
True
)
31
32
object.defineBlock (
33
1,
'DQMoments'
,
34
D3PD.AuxDataFillerTool
,
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'
,
55
D3PD.AuxDataFillerTool
,
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
65
JetD3PDObject =
getJetD3PDObject
()
D3PD::AuxDataFillerTool
Copy aux data to D3PD.
Definition
AuxDataFillerTool.h:35
D3PD::FourMomFillerTool
Block filler tool for a four-momentum.
Definition
FourMomFillerTool.h:56
JetD3PDObject.getJetD3PDObject
getJetD3PDObject(objectname='JetD3PDObject', prefix='jet_', btagleveloffset=7)
Definition
JetD3PDObject.py:22
Generated on
for ATLAS Offline Software by
1.17.0