101) -> None:
102 """Add the flavour-tagging content and augmentations to the slimming helper."""
103
104
105 add_baseline_slimming_smartcollections(slimming_helper=slimming_helper)
106 add_baseline_slimming_allvariables(slimming_helper=slimming_helper)
107 add_truth_to_slimming_helper(slimming_helper=slimming_helper)
108
109
110 add_common_augmentation(
111 flags=flags,
112 acc=acc,
113 slimming_helper=slimming_helper,
114 )
115
116
117
118
119 add_truth_vertex_decorations(
120 flags=flags,
121 acc=acc,
122 slimming_helper=slimming_helper,
123 large_r_jet_collection=LARGE_R_JETS,
124 extra_jet_collections=[(VR_JETS, VR_JET_TRUTH_VERTEX_DR)],
125 )
126
127 add_vr_jet_truth_augmentation(
128 flags=flags,
129 acc=acc,
130 slimming_helper=slimming_helper,
131 )
132
133 slimming_helper.SmartCollections += [
134 LARGE_R_JETS,
135 "AntiKt4LCTopoJets",
136 ]
137
138 slimming_helper.AllVariables += [
139 "AntiKt4EMPFlowJets",
140 VR_JETS,
141 "CaloCalFwdTopoTowers",
142 LARGE_R_JETS,
143 "UFOCSSK",
144 "GlobalChargedParticleFlowObjects",
145 "GlobalNeutralParticleFlowObjects",
146 "CHSGChargedParticleFlowObjects",
147 "CHSGNeutralParticleFlowObjects",
148 "CSSKGChargedParticleFlowObjects",
149 "CSSKGNeutralParticleFlowObjects",
150 "CaloCalTopoClusters",
151 "JetAssociatedPixelClusters",
152 "JetAssociatedSCTClusters",
153 "PixelClusters",
154 "SCT_Clusters",
155 ]
156
157 if tau_as_smart_collection:
158 slimming_helper.SmartCollections += ["TauJets"]
159 else:
160 slimming_helper.AllVariables += [
161 "TauJets",
162 "TauNeutralParticleFlowObjects",
163 "TauShotParticleFlowObjects",
164 "TauTracks",
165 ]
166 if keep_truth_collections:
167 slimming_helper.AllVariables += [
168 "TruthEvents",
169 "TruthParticles",
170 "TruthVertices",
171 ]
172
173
174 slimming_helper.ExtraVariables += ElectronsCPDetailedContent
175 add_extra_variables_to_slimming_helper(
176 flags=flags,
177 slimming_helper=slimming_helper,
178 )
179
180 slimming_helper.ExtraVariables += ["AntiKt4TruthJets.constituentLinks"]
181
182
183 for jet_collection in ["AntiKt4EMTopoJets", "AntiKt4LCTopoJets"]:
184 slimming_helper.ExtraVariables.append(
185 ".".join(
186 [
187 jet_collection,
188 "HadronConeExclTruthLabelID",
189 "HadronGhostTruthLabelID",
190 "GhostBHadronsFinal",
191 "GhostCHadronsFinal",
192 "GhostTausFinal",
193 "ConeExclBHadronsFinal",
194 "ConeExclCHadronsFinal",
195 "ConeExclTausFinal",
196 ]
197 )
198 )
199
200
201 if flags.GeoModel.Run >= LHCPeriod.Run4:
202 slimming_helper.SmartCollections += ["MET_Baseline_AntiKt4EMTopo"]
203 slimming_helper.AllVariables += [
204 "AntiKt4EMTopoJets",
205 "AntiKt4TruthJets",
206 "ITkPixelMeasurements",
207 "ITkStripMeasurements",
208 "ITkPixelSpacePoints",
209 "ITkStripSpacePoints",
210 "ITkStripOverlapSpacePoints",
211 ]
212 slimming_helper.ExtraVariables += [
213 ".".join(["InDetTrackParticles"] + TrackingVariablesHGTD)
214 ]
215
216
217 acc.merge(InDetPoolReadCfg(flags))
218
219
220 if flags.BTagging.Pseudotrack:
221 slimming_helper.AllVariables += ["InDetPseudoTrackParticles"]
222
223
224 if flags.Trigger.EDMVersion == 3 and flags.Input.isMC:
225 acc.merge(HLTJetFTagDecorationCfg(flags))
226
227