ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
D3PDMaker
D3PDMakerConfig
python
D3PDMakerFlags.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
#
4
# @file D3PDMakerConfig/python/D3PDMakerFlags.py
5
# @author scott snyder <snyder@bnl.gov>
6
# @date Aug, 2009
7
# @brief Configuration flags for D3PD making.
8
#
9
10
from
AthenaConfiguration.AllConfigFlags
import
initConfigFlags
11
12
13
configFlags = initConfigFlags()
14
configFlags.addFlag (
'D3PD.DoTruth'
,
lambda
f: f.Input.isMC)
15
D3PDMakerFlags = configFlags.D3PD
16
17
18
def
_string_prop
(p, v):
19
configFlags.addFlag (
'D3PD.'
+ p, v)
20
return
21
22
23
26
27
_string_prop (
'EventInfoSGKey'
,
'EventInfo'
)
28
_string_prop (
'ElectronSGKey'
,
'AllElectrons'
)
29
_string_prop (
'GSFTrackAssocSGKey'
,
'GSFTrackAssociation'
)
30
_string_prop (
'PhotonSGKey'
,
'Photons,PhotonCollection'
)
31
_string_prop (
'MuonSGKey'
,
'Muons'
)
32
_string_prop (
'JetSGKey'
,
'AntiKt4EMPFlowJets'
)
33
_string_prop (
'TruthJetSGKey'
,
'AntiKt4H1TruthJets,'
+
34
#'Cone4TruthJets,' +
35
'AntiKt4TruthJets'
)
36
_string_prop (
'MissingETSGKey'
,
'MET_Reference_AntiKt4EMTopo,MET_RefFinal'
)
37
_string_prop (
'TauSGKey'
,
'TauRecContainer'
)
38
_string_prop (
'CellsSGKey'
,
'AllCalo'
)
39
_string_prop (
'ClusterSGKey'
,
'CaloCalTopoClusters,CaloCalTopoCluster'
)
40
_string_prop (
'EMTopoClusterSGKey'
,
'EMTopoCluster430,'
+
41
'EMTopoSW35'
)
42
_string_prop (
'TrackSGKey'
,
'TrackParticleCandidate'
)
43
_string_prop (
'VertexSGKey'
,
'PrimaryVertices'
)
44
_string_prop (
'MBTSSGKey'
,
'MBTSContainer'
)
45
_string_prop (
'TruthSGKey'
,
'TruthParticles'
)
46
_string_prop (
'TruthParticlesSGKey'
,
'TruthParticles'
)
47
_string_prop (
'TruthEventSGKey'
,
'TruthEvents'
)
48
_string_prop (
'RawClustersSGKeySuffix'
,
'_D3PDRawClusters'
)
49
_string_prop (
'RawClustersAssocSGKeySuffix'
,
'_D3PDRawClustersAssoc'
)
50
_string_prop (
'LArCollisionTimeSGKey'
,
'LArCollisionTime'
)
51
52
53
54
_string_prop (
'OutputFile'
,
'd3pd.root'
)
55
56
59
60
_string_prop (
'egammaL1TrigPattern'
,
'L1_2?EM.*'
)
61
_string_prop (
'ElectronL2TrigPattern'
,
'L2_2?e.*|L2_L1ItemStreamer_L1_2?EM.*|L2_SeededStreamerL1Calo|L2_SeededStreamerL1CaloEM'
)
62
_string_prop (
'PhotonL2TrigPattern'
,
'L2_2?g.*|L2_L1ItemStreamer_L1_2?EM.*|L2_SeededStreamerL1Calo|L2_SeededStreamerL1CaloEM'
)
63
_string_prop (
'ElectronEFTrigPattern'
,
'EF_2?e.*|EF_L1ItemStreamer_L1_EM.*|EF_SeededStreamerL1Calo|EF_SeededStreamerL1CaloEM'
)
64
_string_prop (
'PhotonEFTrigPattern'
,
'EF_2?g.*|EF_L1ItemStreamer_L1_EM.*|EF_SeededStreamerL1Calo|EF_SeededStreamerL1CaloEM'
)
65
66
_string_prop (
'MuonL1TrigPattern'
,
'L1_2?MU.*'
)
67
_string_prop (
'MuonL2TrigPattern'
,
'L2_2?mu.*|L2_L1ItemStreamer_L1_2?MU.*'
)
68
_string_prop (
'MuonEFTrigPattern'
,
'EF_2?mu.*|EF_L1ItemStreamer_L1_2?MU.*'
)
69
70
71
74
75
configFlags.addFlag (
'D3PD.Muons.doSingleMuons'
,
False
)
76
configFlags.addFlag (
'D3PD.Muons.doNewChainOnly'
,
True
)
77
configFlags.addFlag (
'D3PD.Muons.doSegmentTruth'
,
False
)
78
79
80
83
84
# General flags
85
86
configFlags.addFlag (
'D3PD.Track.doTruth'
,
True
,
87
help =
"""Turn on filling of truth branches."""
)
88
89
configFlags.addFlag (
'D3PD.Track.storeDiagonalCovarianceAsErrors'
,
False
,
90
help =
"""store diagonal covariance matrix elements as errors ( err[i] = sqrt(cov[i][i]) )"""
)
91
92
# TrackD3PDObject flags
93
94
configFlags.addFlag (
'D3PD.Track.storeHitTruthMatching'
,
True
,
95
help =
"""Turn on filling of hit truth matching branches"""
)
96
97
configFlags.addFlag (
'D3PD.Track.storeDetailedTruth'
,
False
,
98
help =
"""Turn on filling of detailed truth branches"""
)
99
100
configFlags.addFlag (
'D3PD.Track.trackParametersAtGlobalPerigeeLevelOfDetails'
, 0,
101
help =
""" Set level of details for track parameter at global perigee branches
102
0: Don't store
103
1: Store parameters only
104
2: Store diagonal elements of the covariance matrix
105
3: Store off diagonal elements of the covariance matrix
106
"""
)
107
108
configFlags.addFlag (
'D3PD.Track.trackParametersAtPrimaryVertexLevelOfDetails'
, 2,
109
help =
""" Set level of details for track parameter at primary vertex branches
110
0: Don't store
111
1: Store parameters only
112
2: Store diagonal elements of the covariance matrix
113
3: Store off diagonal elements of the covariance matrix
114
"""
)
115
116
configFlags.addFlag (
'D3PD.Track.trackParametersAtBeamSpotLevelOfDetails'
, 3,
117
help =
""" Set level of details for track parameter at beam spot branches
118
0: Don't store
119
1: Store parameters only
120
2: Store diagonal elements of the covariance matrix
121
3: Store off diagonal elements of the covariance matrix
122
"""
)
123
124
configFlags.addFlag (
'D3PD.Track.trackParametersAtBeamLineLevelOfDetails'
, 3,
125
help =
""" Set level of details for track parameter at beam spot branches
126
0: Don't store
127
1: Store parameters only
128
2: Store diagonal elements of the covariance matrix
129
3: Store off diagonal elements of the covariance matrix
130
"""
)
131
132
configFlags.addFlag (
'D3PD.Track.storeTrackParametersAtCalo'
,
False
,
133
help =
""" Turn on filling of track parameters at Calo """
)
134
135
configFlags.addFlag (
'D3PD.Track.storeTrackParametersAtCalo2ndLayer'
,
False
,
136
help =
""" Turn on filling of track parameters at Calo 2ndLayer """
)
137
138
configFlags.addFlag (
'D3PD.Track.storeTrackUnbiasedIPAtPV'
,
False
,
139
help =
""" Turn on filling of track unbiased impact parameters at primary vertex branches """
)
140
141
configFlags.addFlag (
'D3PD.Track.storeTrackMomentum'
,
True
,
142
help =
""" Turn on filling of track momentum branches """
)
143
144
configFlags.addFlag (
'D3PD.Track.storeTrackInfo'
,
True
,
145
help =
""" Turn on filling of track info (fitter and pattern reco info) branches """
)
146
147
configFlags.addFlag (
'D3PD.Track.storeTrackFitQuality'
,
True
,
148
help =
""" Turn on filling of track fit quality (chi2 and ndof) branches """
)
149
150
configFlags.addFlag (
'D3PD.Track.storeTrackSummary'
,
True
,
151
help =
""" Turn on filling of track summary branches """
)
152
153
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.FullInfo'
,
False
)
154
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.IDHits'
,
True
)
155
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.IDHoles'
,
True
)
156
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.IDSharedHits'
,
True
)
157
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.IDOutliers'
,
False
)
158
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.PixelInfoPlus'
,
False
)
159
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.SCTInfoPlus'
,
False
)
160
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.TRTInfoPlus'
,
False
)
161
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.InfoPlus'
,
False
)
162
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.MuonHits'
,
True
)
163
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.DBMHits'
,
False
)
164
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.ExpectBLayer'
,
True
)
165
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.HitSum'
,
True
)
166
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.HoleSum'
,
True
)
167
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.PixeldEdx'
,
False
)
168
configFlags.addFlag (
'D3PD.Track.storeTrackSummaryFlags.ElectronPID'
,
False
)
169
170
configFlags.addFlag (
'D3PD.Track.storePullsAndResiduals'
,
False
,
171
help =
""" Turn on filling of pulls and residuals of hits and outliers on track branches """
)
172
173
configFlags.addFlag (
'D3PD.Track.storeBLayerHitsOnTrack'
,
False
,
174
help =
""" Turn on filling of Pixel hits on track branches """
)
175
176
configFlags.addFlag (
'D3PD.Track.storePixelHitsOnTrack'
,
False
,
177
help =
""" Turn on filling of Pixel hits on track branches """
)
178
179
configFlags.addFlag (
'D3PD.Track.storeSCTHitsOnTrack'
,
False
,
180
help =
""" Turn on filling of SCT hits on track branches """
)
181
182
configFlags.addFlag (
'D3PD.Track.storeTRTHitsOnTrack'
,
False
,
183
help =
""" Turn on filling of TRT hits on track branches """
)
184
185
configFlags.addFlag (
'D3PD.Track.storeMDTHitsOnTrack'
,
False
,
186
help =
""" Turn on filling of MDT hits on track branches """
)
187
188
configFlags.addFlag (
'D3PD.Track.storeCSCHitsOnTrack'
,
False
,
189
help =
""" Turn on filling of CSC hits on track branches """
)
190
191
configFlags.addFlag (
'D3PD.Track.storeRPCHitsOnTrack'
,
False
,
192
help =
""" Turn on filling of TRT hits on track branches """
)
193
194
configFlags.addFlag (
'D3PD.Track.storeTGCHitsOnTrack'
,
False
,
195
help =
""" Turn on filling of TGC hits on track branches """
)
196
197
configFlags.addFlag (
'D3PD.Track.storeBLayerOutliersOnTrack'
,
False
,
198
help =
""" Turn on filling of Pixel outliers on track branches """
)
199
200
configFlags.addFlag (
'D3PD.Track.storePixelOutliersOnTrack'
,
False
,
201
help =
""" Turn on filling of Pixel outliers on track branches """
)
202
203
configFlags.addFlag (
'D3PD.Track.storeSCTOutliersOnTrack'
,
False
,
204
help =
""" Turn on filling of SCT outliers on track branches """
)
205
206
configFlags.addFlag (
'D3PD.Track.storeTRTOutliersOnTrack'
,
False
,
207
help =
""" Turn on filling of TRT outliers on track branches """
)
208
209
configFlags.addFlag (
'D3PD.Track.storeMDTOutliersOnTrack'
,
False
,
210
help =
""" Turn on filling of MDT outliers on track branches """
)
211
212
configFlags.addFlag (
'D3PD.Track.storeCSCOutliersOnTrack'
,
False
,
213
help =
""" Turn on filling of CSC outliers on track branches """
)
214
215
configFlags.addFlag (
'D3PD.Track.storeRPCOutliersOnTrack'
,
False
,
216
help =
""" Turn on filling of RPC outliers on track branches """
)
217
218
configFlags.addFlag (
'D3PD.Track.storeTGCOutliersOnTrack'
,
False
,
219
help =
""" Turn on filling of TGC outliers on track branches """
)
220
221
configFlags.addFlag (
'D3PD.Track.storeBLayerHolesOnTrack'
,
False
,
222
help =
""" Turn on filling of Pixel holes on track branches """
)
223
224
configFlags.addFlag (
'D3PD.Track.storePixelHolesOnTrack'
,
False
,
225
help =
""" Turn on filling of Pixel holes on track branches """
)
226
227
configFlags.addFlag (
'D3PD.Track.storeSCTHolesOnTrack'
,
False
,
228
help =
""" Turn on filling of SCT holes on track branches """
)
229
230
configFlags.addFlag (
'D3PD.Track.storeTRTHolesOnTrack'
,
False
,
231
help =
""" Turn on filling of TRT holes on track branches """
)
232
233
configFlags.addFlag (
'D3PD.Track.storeMDTHolesOnTrack'
,
False
,
234
help =
""" Turn on filling of MDT holes on track branches """
)
235
236
configFlags.addFlag (
'D3PD.Track.storeCSCHolesOnTrack'
,
False
,
237
help =
""" Turn on filling of CSC holes on track branches """
)
238
239
configFlags.addFlag (
'D3PD.Track.storeRPCHolesOnTrack'
,
False
,
240
help =
""" Turn on filling of RPC holes on track branches """
)
241
242
configFlags.addFlag (
'D3PD.Track.storeTGCHolesOnTrack'
,
False
,
243
help =
""" Turn on filling of TGC holes on track branches """
)
244
245
configFlags.addFlag (
'D3PD.Track.storeVertexAssociation'
,
False
,
246
help =
""" Turn on filling of track to vertex association """
)
247
248
configFlags.addFlag (
'D3PD.Track.storeTrackPredictionAtBLayer'
,
True
,
249
help =
""" Turn on filling of track prediction at the B-Layer branches """
)
250
251
configFlags.addFlag (
'D3PD.Track.storeTruthInfo'
,
False
,
252
help =
""" Turn on filling truth perigee and classification information. """
)
253
254
# VertexD3PDObject flags
255
256
configFlags.addFlag (
'D3PD.Track.vertexPositionLevelOfDetails'
, 3,
257
help =
""" Set level of details for vertex vertex position branches
258
0: Don't store
259
1: Store position only
260
2: Store diagonal elements of the covariance matrix
261
3: Store off diagonal elements of the covariance matrix
262
"""
)
263
264
configFlags.addFlag (
'D3PD.Track.storeVertexType'
,
True
,
265
help =
""" Turn on filling of vertex type as defined here
266
https://svnweb.cern.ch/trac/atlasoff/browser/Tracking/TrkEvent/TrkEventPrimitives/trunk/TrkEventPrimitives/VertexType.h
267
"""
)
268
269
configFlags.addFlag (
'D3PD.Track.storeVertexFitQuality'
,
True
,
270
help =
""" Turn on filling of vertex fit quality (chi2 and ndof) branches """
)
271
272
configFlags.addFlag (
'D3PD.Track.storeVertexKinematics'
,
True
,
273
help =
""" Turn on filling of vertex kinematics (sumPT, ...) branches """
)
274
275
configFlags.addFlag (
'D3PD.Track.storeVertexPurity'
,
False
,
276
help =
""" Turn on filling of vertex purity (truth matching) branches """
)
277
278
configFlags.addFlag (
'D3PD.Track.storeVertexTrackAssociation'
,
False
,
279
help =
""" Turn on filling of vertex track association branches """
)
280
281
configFlags.addFlag (
'D3PD.Track.storeVertexTrackIndexAssociation'
,
True
,
282
help =
""" Turn on filling of vertex track index association branches """
)
283
284
285
286
287
288
289
configFlags.addFlag (
'D3PD.AutoFlush'
, -30000000,
None
,
290
"""Value to set for ROOT's AutoFlush parameter.
291
(For ROOT trees only; tells how often the tree baskets will be flushed.)
292
0 disables flushing.
293
-1 makes no changes to what THistSvc did.
294
Any other negative number gives the number of bytes after which to flush.
295
A positive number gives the number of entries after which to flush."""
)
296
297
298
configFlags.addFlag (
'D3PD.HaveEgammaUserData'
,
False
,
None
,
299
'If true, access results of egamma analysis stored in UserData.'
)
300
301
302
configFlags.addFlag (
'D3PD.MakeEgammaUserData'
,
True
,
None
,
303
'If true, run egamma analysis to make UserData if not already done.'
)
304
305
306
configFlags.addFlag (
'D3PD.EgammaUserDataPrefix'
,
'egammaD3PDAnalysis_'
,
None
,
307
'Prefix to use for UserData labels for egamma.'
)
308
309
310
configFlags.addFlag (
'D3PD.TruthDoPileup'
,
False
,
None
,
311
'Set to true to include pileup in truth information.'
)
312
313
314
configFlags.addFlag (
'D3PD.TruthWriteExtraJets'
,
False
,
None
,
315
'Set to true to include additional truth jet collections.'
)
316
317
318
configFlags.addFlag (
'D3PD.PreD3PDAlgSeqName'
,
'PreD3PDAlgorithms'
,
None
,
319
'Sequence of algorithms to run before the D3PD maker.'
)
320
321
322
configFlags.addFlag (
'D3PD.FilterAlgSeqSuffix'
,
'_FilterAlgorithms'
,
None
,
323
"""Suffix for a sequence of algorithms to filter D3PD making.
324
325
The sequence name is formed by adding this string to the name of the
326
D3PD making algorithm. If any of the algorithms in this sequence fail
327
their filter decision, then no D3PD entry will be made for this event.
328
329
The filter sequence may also be referenced by the filterSeq property
330
of the D3PD algorithm.
331
"""
)
332
333
334
configFlags.addFlag (
'D3PD.SaveObjectMetadata'
,
True
,
None
,
335
'Control whether metadata about the D3PDObjects should be saved.'
)
336
337
338
configFlags.addFlag (
'D3PD.CompressionLevel'
, 6,
None
,
339
'Controls the compression level of the ROOT file produced.'
)
python.D3PDMakerFlags._string_prop
_string_prop(p, v)
Definition
D3PDMakerFlags.py:18
Generated on
for ATLAS Offline Software by
1.17.0