ATLAS Offline Software
Functions
python.PIXELVALID Namespace Reference

Functions

def PIXELVALID_ANDToolCfg (flags, name='PIXELVALID_ANDTool')
 
def PIXELVALID_ZTAUTAUCfg (flags, name='PIXELVALID_ZTAUTAU')
 
def PIXELVALIDKernelCommonCfg (flags, name='PIXELVALIDKernelCommon')
 
def PIXELVALIDThinningKernelCfg (flags, name="PIXELVALIDThinningKernel", StreamName="")
 
def PIXELVALIDKernelCfg (flags, name="PIXELVALIDKernel", StreamName="")
 
def PixelVALIDCfg (flags)
 

Function Documentation

◆ PIXELVALID_ANDToolCfg()

def python.PIXELVALID.PIXELVALID_ANDToolCfg (   flags,
  name = 'PIXELVALID_ANDTool' 
)

Definition at line 18 of file PIXELVALID.py.

18 def PIXELVALID_ANDToolCfg(flags, name='PIXELVALID_ANDTool'):
19  acc = ComponentAccumulator()
20 
21  sel_muon1 = 'Muons.pt > 25*GeV && Muons.ptcone40/Muons.pt < 0.3 && Muons.passesIDCuts'
22  sel_muon2 = 'Muons.pt > 20*GeV && Muons.ptcone40/Muons.pt < 0.3 && Muons.passesIDCuts'
23  draw_zmumu = '( count ( DRZmumuMass > 70*GeV && DRZmumuMass < 110*GeV ) >= 1 ) '
24  from DerivationFrameworkTools.DerivationFrameworkToolsConfig import (InvariantMassToolCfg,xAODStringSkimmingToolCfg,FilterCombinationANDCfg)
25  PIXELVALID_ZmumuMass = acc.getPrimaryAndMerge(InvariantMassToolCfg(
26  flags, name="PIXELVALID_ZmumuMass",
27  ContainerName = "Muon",
28  ObjectRequirements = sel_muon1,
29  SecondObjectRequirements = sel_muon2,
30  MassHypothesis = 105.66,
31  SecondMassHypothesis = 105.66,
32  StoreGateEntryName = "DRZmumuMass"))
33 
34  PIXELVALID_SkimmingTool = acc.getPrimaryAndMerge(xAODStringSkimmingToolCfg(
35  flags,
36  name="PIXELVALID_SkimmingTool",
37  expression=draw_zmumu))
38 
39  PIXELVALID_ANDTool = acc.getPrimaryAndMerge(FilterCombinationANDCfg(
40  flags,
41  name,
42  FilterList=[PIXELVALID_ZmumuMass,PIXELVALID_SkimmingTool]))
43 
44  acc.addPublicTool(PIXELVALID_ANDTool, primary=True)
45  return acc
46 
47 

◆ PIXELVALID_ZTAUTAUCfg()

def python.PIXELVALID.PIXELVALID_ZTAUTAUCfg (   flags,
  name = 'PIXELVALID_ZTAUTAU' 
)

Definition at line 48 of file PIXELVALID.py.

48 def PIXELVALID_ZTAUTAUCfg(flags, name='PIXELVALID_ZTAUTAU'):
49  acc = ComponentAccumulator()
50 
51 # sel_mu = '(Muons.pt > 29*GeV) && Muons.passesIDCuts'
52  sel_mu = '(Muons.pt > 10*GeV) && Muons.passesIDCuts'
53  muRequirement = '( count( '+sel_mu+' ) == 1 )'
54 # sel_tau = '(TauJets.pt > 30.0*GeV) && (TauJets.RNNJetScoreSigTrans>0.55) && ( TauJets.nTracks == 3)'
55  sel_tau = '(TauJets.pt > 10.0*GeV)'
56 # tauRequirement = '( count( '+sel_tau+' ) == 1 )'
57  tauRequirement = '( count( '+sel_tau+' ) > 0 )'
58  draw_taumuh = muRequirement+' && '+tauRequirement
59  from DerivationFrameworkTools.DerivationFrameworkToolsConfig import (xAODStringSkimmingToolCfg)
60  PIXELVALID_ZTAUTAU = acc.getPrimaryAndMerge(xAODStringSkimmingToolCfg(flags,
61  name="PIXELVALID_ZTAUTAU",
62  expression=draw_taumuh))
63 
64  acc.addPublicTool(PIXELVALID_ZTAUTAU, primary=True)
65  return acc
66 
67 

◆ PixelVALIDCfg()

def python.PIXELVALID.PixelVALIDCfg (   flags)
Main config fragment for PIXELVALID

Definition at line 189 of file PIXELVALID.py.

189 def PixelVALIDCfg(flags):
190  """Main config fragment for PIXELVALID"""
191  acc = ComponentAccumulator()
192 
193  # Main algorithm (kernel)
194  if flags.Detector.GeometryID:
195  acc.merge(PIXELVALIDKernelCfg(flags, StreamName = 'StreamDAOD_PIXELVALID'))
196 
197  # =============================
198  # Define contents of the format
199  # =============================
200  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
201  from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
202  from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
203  PIXELVALIDSlimmingHelper = SlimmingHelper(
204  "PIXELVALIDSlimmingHelper",
205  NamesAndTypes = flags.Input.TypedCollections,
206  flags = flags)
207 
208  AllVariables = []
209  StaticContent = []
210  SmartCollections = []
211  ExtraVariables = []
212 
213  PixelStoreMode = flags.InDet.PixelDumpMode
214  if flags.InDet.PixelDumpMode==3:
215  PixelStoreMode = 1
216 
217  if flags.InDet.PixelDumpMode == 4:
218  PixelStoreMode = 3
219 
220 
221  if PixelStoreMode==1:
222  PIXELVALIDSlimmingHelper.AppendToDictionary.update({
223  "EventInfo": "xAOD::EventInfo", "EventInfoAux": "xAOD::EventAuxInfo",
224  "Muons": "xAOD::MuonContainer", "MuonsAux": "xAOD::MuonAuxContainer",
225  "Electrons": "xAOD::ElectronContainer",
226  "ElectronsAux": "xAOD::ElectronAuxContainer",
227  "Photons": "xAOD::PhotonContainer",
228  "PhotonsAux": "xAOD::PhotonAuxContainer",
229  "JetETMissNeutralParticleFlowObjects": "xAOD::FlowElementContainer",
230  "JetETMissNeutralParticleFlowObjectsAux": "xAOD::FlowElementAuxContainer",
231  "JetETMissChargedParticleFlowObjects": "xAOD::FlowElementContainer",
232  "JetETMissChargedParticleFlowObjectsAux": "xAOD::FlowElementAuxContainer",
233  "TauJets": "xAOD::TauJetContainer",
234  "TauJetsAux": "xAOD::TauJetAuxContainer",
235  "InDetTrackParticles": "xAOD::TrackParticleContainer",
236  "InDetTrackParticlesAux": "xAOD::TrackParticleAuxContainer",
237  "InDetLargeD0TrackParticles": "xAOD::TrackParticleContainer",
238  "InDetLargeD0TrackParticlesAux": "xAOD::TrackParticleAuxContainer",
239  "PixelMSOSs": "xAOD::TrackStateValidationContainer",
240  "PixelMSOSsAux": "xAOD::TrackStateValidationAuxContainer",
241  "Kt4EMTopoOriginEventShape": "xAOD::EventShape",
242  "Kt4EMTopoOriginEventShapeAux": "xAOD::EventShapeAuxInfo",
243  "Kt4LCTopoOriginEventShape": "xAOD::EventShape",
244  "Kt4LCTopoOriginEventShapeAux": "xAOD::EventShapeAuxInfo",
245  "NeutralParticleFlowIsoCentralEventShape": "xAOD::EventShape",
246  "NeutralParticleFlowIsoCentralEventShapeAux": "xAOD::EventShapeAuxInfo",
247  "NeutralParticleFlowIsoForwardEventShape": "xAOD::EventShape",
248  "NeutralParticleFlowIsoForwardEventShapeAux": "xAOD::EventShapeAuxInfo",
249  "TopoClusterIsoCentralEventShape": "xAOD::EventShape",
250  "TopoClusterIsoCentralEventShapeAux": "xAOD::EventShapeAuxInfo",
251  "TopoClusterIsoForwardEventShape": "xAOD::EventShape",
252  "TopoClusterIsoForwardEventShapeAux": "xAOD::EventShapeAuxInfo",
253  "MET_Calo": "xAOD::MissingETContainer",
254  "MET_CaloAux": "xAOD::MissingETAuxContainer",
255  "MET_Track": "xAOD::MissingETContainer",
256  "MET_TrackAux": "xAOD::MissingETAuxContainer",
257  "MET_LocHadTopo": "xAOD::MissingETContainer",
258  "MET_LocHadTopoRegions": "xAOD::MissingETContainer",
259  "MET_LocHadTopoAux": "xAOD::MissingETAuxContainer",
260  "MET_LocHadTopoRegionsAux": "xAOD::MissingETAuxContainer",
261  "MET_Core_AntiKt4LCTopo": "xAOD::MissingETContainer",
262  "MET_Reference_AntiKt4LCTopo": "xAOD::MissingETContainer",
263  "MET_Core_AntiKt4LCTopoAux": "xAOD::MissingETAuxContainer",
264  "MET_Reference_AntiKt4LCTopoAux": "xAOD::MissingETAuxContainer"})
265 
266  SmartCollections += ["Muons", "Electrons", "Photons"]
267 
268  AllVariables += ["EventInfo",
269  "JetETMissNeutralParticleFlowObjects",
270  "JetETMissChargedParticleFlowObjects",
271  "InDetTrackParticles",
272  "InDetLargeD0TrackParticles",
273  "PixelMSOSs",
274  "Kt4EMTopoOriginEventShape",
275  "Kt4LCTopoOriginEventShape",
276  "NeutralParticleFlowIsoCentralEventShape",
277  "NeutralParticleFlowIsoForwardEventShape",
278  "TopoClusterIsoCentralEventShape",
279  "TopoClusterIsoForwardEventShape"]
280 
281  PIXELVALIDSlimmingHelper.AppendToDictionary.update({
282  "TauJets": "xAOD::TauJetContainer",
283  "TauJetsAux": "xAOD::TauJetAuxContainer",
284  "Kt4EMPFlowEventShape": "xAOD::EventShape",
285  "Kt4EMPFlowEventShapeAux": "xAOD::EventShapeAuxInfo",
286  "PrimaryVertices": "xAOD::VertexContainer",
287  "PrimaryVerticesAux": "xAOD::VertexAuxContainer",
288  "AntiKt4EMTopoJets": "xAOD::JetContainer",
289  "AntiKt4EMTopoJetsAux": "xAOD::JetAuxContainer",
290  "AntiKt4EMPFlowJets": "xAOD::JetContainer",
291  "AntiKt4EMPFlowJetsAux": "xAOD::JetAuxContainer",
292  "BTagging_AntiKt4EMTopo": "xAOD::BTaggingContainer",
293  "BTagging_AntiKt4EMTopoAux": "xAOD::BTaggingAuxContainer",
294  "BTagging_AntiKt4EMPFlow": "xAOD::BTaggingContainer",
295  "BTagging_AntiKt4EMPFlowAux": "xAOD::BTaggingAuxContainer"})
296 
297  ExtraVariables += ["TauJets.ABS_ETA_LEAD_TRACK.ClusterTotalEnergy.ClustersMeanCenterLambda.ClustersMeanEMProbability.ClustersMeanFirstEngDens.ClustersMeanPresamplerFrac.ClustersMeanSecondLambda.EMFRACTIONATEMSCALE_MOVEE3.EMFracFixed.GhostMuonSegmentCount.LeadClusterFrac.NNDecayMode.NNDecayModeProb_1p0n.NNDecayModeProb_1p1n.NNDecayModeProb_1pXn.NNDecayModeProb_3p0n.NNDecayModeProb_3pXn.PFOEngRelDiff.PanTau_DecayModeExtended.TAU_ABSDELTAETA.TAU_ABSDELTAPHI.TAU_SEEDTRK_SECMAXSTRIPETOVERPT.UpsilonCluster.absipSigLeadTrk.chargedFELinks.etHotShotDR1.etHotShotDR1OverPtLeadTrk.etHotShotWin.etHotShotWinOverPtLeadTrk.etaCombined.hadLeakFracFixed.leadTrackProbHT.mCombined.mu.nConversionTracks.nFakeTracks.nModifiedIsolationTracks.nVtxPU.neutralFELinks.passThinning.phiCombined.ptCombined.ptIntermediateAxisEM.rho"]
298  ExtraVariables += ["PrimaryVertices.sumPt2.x.y.z"]
299 
300  AllVariables += ["Kt4EMPFlowEventShape",
301  "AntiKt4EMTopoJets", "AntiKt4EMPFlowJets",
302  "BTagging_AntiKt4EMTopo", "BTagging_AntiKt4EMPFlow"]
303 
304  if flags.Input.isMC:
305  PIXELVALIDSlimmingHelper.AppendToDictionary.update({
306  "AntiKt4TruthJets": "xAOD::JetContainer",
307  "AntiKt4TruthJetsAux": "xAOD::JetAuxContainer",
308  "JetInputTruthParticles": "xAOD::TruthParticleContainer",
309  "JetInputTruthParticlesNoWZ": "xAOD::TruthParticleContainer",
310  "TruthEvents": "xAOD::TruthEventContainer",
311  "TruthEventsAux": "xAOD::TruthEventAuxContainer",
312  "TruthParticles": "xAOD::TruthParticleContainer",
313  "TruthParticlesAux": "xAOD::TruthParticleAuxContainer",
314  "egammaTruthParticles": "xAOD::TruthParticleContainer",
315  "egammaTruthParticlesAux": "xAOD::TruthParticleAuxContainer",
316  "MuonTruthParticles": "xAOD::TruthParticleContainer",
317  "MuonTruthParticlesAux": "xAOD::TruthParticleAuxContainer",
318  "LRTegammaTruthParticles": "xAOD::TruthParticleContainer",
319  "LRTegammaTruthParticlesAux": "xAOD::TruthParticleAuxContainer",
320  "TruthVertices": "xAOD::TruthVertexContainer",
321  "TruthVerticesAux": "xAOD::TruthVertexAuxContainer",
322  "MET_Truth": "xAOD::MissingETContainer",
323  "MET_TruthRegions": "xAOD::MissingETContainer",
324  "MET_TruthAux": "xAOD::MissingETAuxContainer",
325  "MET_TruthRegionsAux": "xAOD::MissingETAuxContainer"})
326 
327  AllVariables += ["AntiKt4TruthJets",
328  "JetInputTruthParticles",
329  "JetInputTruthParticlesNoWZ",
330  "TruthEvents",
331  "TruthParticles",
332  "egammaTruthParticles",
333  "MuonTruthParticles",
334  "LRTegammaTruthParticles",
335  "TruthVertices"]
336 
337  list_aux = ["BHadronsFinal", "BHadronsInitial", "BQuarksFinal",
338  "CHadronsFinal", "CHadronsInitial", "CQuarksFinal",
339  "HBosons", "Partons", "TQuarksFinal", "TausFinal",
340  "WBosons", "ZBosons"]
341  for item in list_aux:
342  label = "TruthLabel"+item
343  labelAux = label+"Aux"
344  PIXELVALIDSlimmingHelper.AppendToDictionary.update(
345  {label: "xAOD::TruthParticleContainer",
346  labelAux: "xAOD::TruthParticleAuxContainer"})
347  AllVariables += [label]
348  # End of isMC block
349 
350  # Trigger info is actually stored only when running on data...
351  PIXELVALIDSlimmingHelper.IncludeTriggerNavigation = True
352  PIXELVALIDSlimmingHelper.IncludeAdditionalTriggerContent = True
353 
354  if PixelStoreMode==2:
355  PIXELVALIDSlimmingHelper.AppendToDictionary.update({
356  "EventInfo": "xAOD::EventInfo", "EventInfoAux": "xAOD::EventAuxInfo",
357  "PixelMonitoringTrack": "xAOD::TrackParticleContainer",
358  "PixelMonitoringTrackAux": "xAOD::TrackParticleAuxContainer"})
359 
360  AllVariables += ["EventInfo",
361  "PixelMonitoringTrack"]
362 
363  if flags.Input.isMC:
364  PIXELVALIDSlimmingHelper.AppendToDictionary.update({
365  "TruthEvents": "xAOD::TruthEventContainer",
366  "TruthEventsAux": "xAOD::TruthEventAuxContainer",
367  "TruthParticles": "xAOD::TruthParticleContainer",
368  "TruthParticlesAux": "xAOD::TruthParticleAuxContainer"})
369 
370  AllVariables += ["TruthEvents",
371  "TruthParticles"]
372 
373  list_aux = ["BHadronsFinal", "BHadronsInitial", "BQuarksFinal",
374  "CHadronsFinal", "CHadronsInitial", "CQuarksFinal",
375  "HBosons", "Partons", "TQuarksFinal", "TausFinal",
376  "WBosons", "ZBosons"]
377  for item in list_aux:
378  label = "TruthLabel"+item
379  labelAux = label+"Aux"
380  PIXELVALIDSlimmingHelper.AppendToDictionary.update(
381  {label: "xAOD::TruthParticleContainer",
382  labelAux: "xAOD::TruthParticleAuxContainer"})
383  AllVariables += [label]
384  # End of isMC block
385 
386 
387  if PixelStoreMode == 3:
388  PIXELVALIDSlimmingHelper.AppendToDictionary.update({
389  "EventInfo": "xAOD::EventInfo", "EventInfoAux": "xAOD::EventAuxInfo",
390  "InDetTrackParticles": "xAOD::TrackParticleContainer",
391  "InDetTrackParticlesAux": "xAOD::TrackParticleAuxContainer"})
392 
393  AllVariables += ["EventInfo",
394  "InDetTrackParticles"]
395 
396  PIXELVALIDSlimmingHelper.AppendToDictionary.update({
397  "PrimaryVertices": "xAOD::VertexContainer",
398  "PrimaryVerticesAux": "xAOD::VertexAuxContainer"})
399 
400  ExtraVariables += ["PrimaryVertices.sumPt2.x.y.z"]
401 
402  if flags.Input.isMC:
403  PIXELVALIDSlimmingHelper.AppendToDictionary.update({
404  "TruthEvents": "xAOD::TruthEventContainer",
405  "TruthEventsAux": "xAOD::TruthEventAuxContainer",
406  "TruthParticles": "xAOD::TruthParticleContainer",
407  "TruthParticlesAux": "xAOD::TruthParticleAuxContainer",
408  "TruthVertices": "xAOD::TruthVertexContainer",
409  "TruthVerticesAux": "xAOD::TruthVertexAuxContainer"})
410 
411  AllVariables += ["TruthEvents",
412  "TruthParticles",
413  "TruthVertices"]
414 
415  list_aux = ["BHadronsFinal", "BHadronsInitial", "BQuarksFinal",
416  "CHadronsFinal", "CHadronsInitial", "CQuarksFinal",
417  "HBosons", "Partons", "TQuarksFinal", "TausFinal",
418  "WBosons", "ZBosons"]
419  for item in list_aux:
420  label = "TruthLabel"+item
421  labelAux = label+"Aux"
422  PIXELVALIDSlimmingHelper.AppendToDictionary.update(
423  {label: "xAOD::TruthParticleContainer",
424  labelAux: "xAOD::TruthParticleAuxContainer"})
425  AllVariables += [label]
426  # End of isMC block
427 
428  # Trigger info is actually stored only when running on data...
429  PIXELVALIDSlimmingHelper.IncludeTriggerNavigation = True
430  PIXELVALIDSlimmingHelper.IncludeAdditionalTriggerContent = True
431 
432 
433  PIXELVALIDSlimmingHelper.AllVariables = AllVariables
434  PIXELVALIDSlimmingHelper.StaticContent = StaticContent
435  PIXELVALIDSlimmingHelper.SmartCollections = SmartCollections
436  PIXELVALIDSlimmingHelper.ExtraVariables = ExtraVariables
437 
438  # Output stream
439  PIXELVALIDItemList = PIXELVALIDSlimmingHelper.GetItemList()
440  acc.merge(OutputStreamCfg(flags, "DAOD_PIXELVALID",
441  ItemList=PIXELVALIDItemList, AcceptAlgs=["PIXELVALIDKernelCommon"]))
442 
443  if flags.InDet.PixelDumpMode == 4:
444  acc.merge(SetupMetaDataForStreamCfg(
445  flags, "DAOD_PIXELVALID", AcceptAlgs=["PIXELVALIDKernelCommon"],
446  createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TriggerMenuMetaData]))
447  else:
448  acc.merge(SetupMetaDataForStreamCfg(
449  flags, "DAOD_PIXELVALID", AcceptAlgs=["PIXELVALIDKernelCommon"],
450  createMetadata=[MetadataCategory.CutFlowMetaData]))
451 
452  return acc

◆ PIXELVALIDKernelCfg()

def python.PIXELVALID.PIXELVALIDKernelCfg (   flags,
  name = "PIXELVALIDKernel",
  StreamName = "" 
)
Configure the derivation framework driving algorithm (kernel) for PIXELVALID

Definition at line 144 of file PIXELVALID.py.

144 def PIXELVALIDKernelCfg(flags, name="PIXELVALIDKernel", StreamName=""):
145  """Configure the derivation framework driving algorithm (kernel) for PIXELVALID"""
146  acc = ComponentAccumulator()
147 
148  PIXELVALIDSequenceName='PIXELVALIDSequence'
149  acc.addSequence(seqAND(PIXELVALIDSequenceName))
150 
151  acc.merge(PIXELVALIDKernelCommonCfg(flags),sequenceName=PIXELVALIDSequenceName)
152 
153  from InDetConfig.InDetPrepRawDataToxAODConfig import InDetPrepDataToxAODCfg
154  acc.merge(InDetPrepDataToxAODCfg(flags),sequenceName=PIXELVALIDSequenceName)
155 
156  # ====================================================================
157  # AUGMENTATION TOOLS
158  # ====================================================================
159  tsos_augmentationTools = []
160 
161  from DerivationFrameworkInDet.InDetToolsConfig import DFTrackStateOnSurfaceDecoratorCfg
162  DFTSOS = acc.getPrimaryAndMerge(DFTrackStateOnSurfaceDecoratorCfg(flags))
163  tsos_augmentationTools.append(DFTSOS)
164 
165  PixelStoreMode = flags.InDet.PixelDumpMode
166  if flags.InDet.PixelDumpMode==3:
167  PixelStoreMode = 1
168 
169 
170  if flags.InDet.PixelDumpMode != 4:
171  from DerivationFrameworkInDet.PixelNtupleMakerConfig import PixelNtupleMakerCfg
172  PixelMonitoringTool = acc.getPrimaryAndMerge(PixelNtupleMakerCfg(flags,
173  name = "PixelMonitoringTool",
174  StoreMode = PixelStoreMode))
175  tsos_augmentationTools.append(PixelMonitoringTool)
176 
177  # shared between IDTIDE and PIXELVALID
178  acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(
179  name,
180  AugmentationTools=tsos_augmentationTools,
181  ThinningTools=[],
182  OutputLevel=INFO))
183 
184  acc.merge(PIXELVALIDThinningKernelCfg(flags, StreamName=StreamName), sequenceName=PIXELVALIDSequenceName)
185 
186  return acc
187 
188 # Main config

◆ PIXELVALIDKernelCommonCfg()

def python.PIXELVALID.PIXELVALIDKernelCommonCfg (   flags,
  name = 'PIXELVALIDKernelCommon' 
)

Definition at line 68 of file PIXELVALID.py.

68 def PIXELVALIDKernelCommonCfg(flags, name='PIXELVALIDKernelCommon'):
69  acc = ComponentAccumulator()
70 
71  # ====================================================================
72  # AUGMENTATION TOOLS
73  # ====================================================================
74  augmentationTools = []
75 
76  # Add unbiased track parameters to track particles
77  from DerivationFrameworkInDet.InDetToolsConfig import (TrackToVertexWrapperCfg)
78  PIXELVALIDTrackToVertexWrapper = acc.getPrimaryAndMerge(TrackToVertexWrapperCfg(
79  flags,
80  name="PIXELVALIDTrackToVertexWrapper",
81  DecorationPrefix="PIXELVALID"))
82  augmentationTools.append(PIXELVALIDTrackToVertexWrapper)
83 
84  from DerivationFrameworkInDet.InDetToolsConfig import (UsedInVertexFitTrackDecoratorCfg)
85  PIXELVALIDUsedInFitDecorator = acc.getPrimaryAndMerge(UsedInVertexFitTrackDecoratorCfg(flags))
86  augmentationTools.append(PIXELVALIDUsedInFitDecorator)
87 
88  # @TODO eventually computed for other extra outputs. Possible to come up with a solution to use a common Z0AtPV if there is more than one client ?
89  from DerivationFrameworkInDet.InDetToolsConfig import TrackParametersAtPVCfg
90  DFCommonZ0AtPV = acc.getPrimaryAndMerge(TrackParametersAtPVCfg(
91  flags, name="PIXELVALID_DFCommonZ0AtPV",
92  Z0SGEntryName="PIXELVALIDInDetTrackZ0AtPV"))
93  augmentationTools.append(DFCommonZ0AtPV)
94 
95  from DerivationFrameworkInDet.PixelNtupleMakerConfig import (EventInfoPixelModuleStatusMonitoringCfg)
96  DFEI = acc.getPrimaryAndMerge(EventInfoPixelModuleStatusMonitoringCfg(flags))
97  augmentationTools.append(DFEI)
98 
99  # ====================================================================
100  # SKIMMING TOOLS
101  # ====================================================================
102  skimmingTools = []
103  if flags.InDet.DRAWZSelection:
104  PIXELVALID_ANDTool = acc.getPrimaryAndMerge(PIXELVALID_ANDToolCfg(flags))
105  skimmingTools.append(PIXELVALID_ANDTool)
106 
107  if flags.InDet.PixelDumpMode==3:
108  PIXELVALID_ZTAUTAU = acc.getPrimaryAndMerge(PIXELVALID_ZTAUTAUCfg(flags))
109  skimmingTools.append(PIXELVALID_ZTAUTAU)
110 
111  # ====================================================================
112  # CREATE THE DERIVATION KERNEL ALGORITHM AND PASS THE ABOVE TOOLS
113  # ====================================================================
114  acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(
115  name,
116  AugmentationTools = augmentationTools,
117  SkimmingTools = skimmingTools,
118  ThinningTools = [],
119  RunSkimmingFirst = True))
120 
121  return acc
122 

◆ PIXELVALIDThinningKernelCfg()

def python.PIXELVALID.PIXELVALIDThinningKernelCfg (   flags,
  name = "PIXELVALIDThinningKernel",
  StreamName = "" 
)

Definition at line 123 of file PIXELVALID.py.

123 def PIXELVALIDThinningKernelCfg(flags, name="PIXELVALIDThinningKernel", StreamName=""):
124  acc = ComponentAccumulator()
125 
126  # ====================================================================
127  # THINNING TOOLS
128  # ====================================================================
129  thinningTools = []
130 
131  # MC truth thinning
132  if flags.Input.isMC:
133  from DerivationFrameworkInDet.InDetToolsConfig import (IDTRKVALIDTruthThinningToolCfg)
134  thinningTools.append(acc.getPrimaryAndMerge(IDTRKVALIDTruthThinningToolCfg(flags, StreamName=StreamName)))
135 
136  acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(
137  name,
138  AugmentationTools=[],
139  ThinningTools=thinningTools,
140  OutputLevel=INFO))
141  return acc
142 
143 
python.InDetPrepRawDataToxAODConfig.InDetPrepDataToxAODCfg
def InDetPrepDataToxAODCfg(flags)
Definition: InDetPrepRawDataToxAODConfig.py:204
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
python.PixelNtupleMakerConfig.EventInfoPixelModuleStatusMonitoringCfg
def EventInfoPixelModuleStatusMonitoringCfg(flags, name="EventInfoPixelModuleStatusMonitoring", **kwargs)
Definition: PixelNtupleMakerConfig.py:23
python.DerivationFrameworkToolsConfig.FilterCombinationANDCfg
def FilterCombinationANDCfg(ConfigFlags, name, **kwargs)
Definition: DerivationFrameworkToolsConfig.py:59
python.PIXELVALID.PIXELVALIDThinningKernelCfg
def PIXELVALIDThinningKernelCfg(flags, name="PIXELVALIDThinningKernel", StreamName="")
Definition: PIXELVALID.py:123
python.InDetToolsConfig.TrackParametersAtPVCfg
def TrackParametersAtPVCfg(flags, name, **kwargs)
Definition: InDetToolsConfig.py:399
python.PixelNtupleMakerConfig.PixelNtupleMakerCfg
def PixelNtupleMakerCfg(flags, name="PixelMonitoringTool", **kwargs)
Definition: PixelNtupleMakerConfig.py:12
python.PIXELVALID.PIXELVALID_ZTAUTAUCfg
def PIXELVALID_ZTAUTAUCfg(flags, name='PIXELVALID_ZTAUTAU')
Definition: PIXELVALID.py:48
python.PIXELVALID.PIXELVALID_ANDToolCfg
def PIXELVALID_ANDToolCfg(flags, name='PIXELVALID_ANDTool')
Definition: PIXELVALID.py:18
python.DerivationFrameworkToolsConfig.InvariantMassToolCfg
def InvariantMassToolCfg(ConfigFlags, name, **kwargs)
Invariant mass tool config.
Definition: DerivationFrameworkToolsConfig.py:44
python.CFElements.seqAND
def seqAND(name, subs=[])
Definition: CFElements.py:25
python.InDetToolsConfig.TrackToVertexWrapperCfg
def TrackToVertexWrapperCfg(flags, name, **kwargs)
Definition: InDetToolsConfig.py:590
python.PIXELVALID.PIXELVALIDKernelCommonCfg
def PIXELVALIDKernelCommonCfg(flags, name='PIXELVALIDKernelCommon')
Definition: PIXELVALID.py:68
python.InDetToolsConfig.DFTrackStateOnSurfaceDecoratorCfg
def DFTrackStateOnSurfaceDecoratorCfg(flags, name="DFTrackStateOnSurfaceDecorator", **kwargs)
Definition: InDetToolsConfig.py:130
python.DerivationFrameworkToolsConfig.xAODStringSkimmingToolCfg
def xAODStringSkimmingToolCfg(ConfigFlags, name, **kwargs)
Definition: DerivationFrameworkToolsConfig.py:29
python.PIXELVALID.PixelVALIDCfg
def PixelVALIDCfg(flags)
Definition: PIXELVALID.py:189
python.InDetToolsConfig.IDTRKVALIDTruthThinningToolCfg
def IDTRKVALIDTruthThinningToolCfg(flags, name="IDTRKVALIDTruthThinningTool", **kwargs)
Definition: InDetToolsConfig.py:632
UsedInVertexFitTrackDecoratorConfig.UsedInVertexFitTrackDecoratorCfg
def UsedInVertexFitTrackDecoratorCfg(flags, trackCont='InDetTrackParticles', vtxCont='PrimaryVertices')
Definition: UsedInVertexFitTrackDecoratorConfig.py:32
python.PIXELVALID.PIXELVALIDKernelCfg
def PIXELVALIDKernelCfg(flags, name="PIXELVALIDKernel", StreamName="")
Definition: PIXELVALID.py:144
InfileMetaDataConfig.SetupMetaDataForStreamCfg
def SetupMetaDataForStreamCfg(flags, streamName="", AcceptAlgs=None, createMetadata=None, propagateMetadataFromInput=True, *args, **kwargs)
Definition: InfileMetaDataConfig.py:222
SlimmingHelper
Definition: SlimmingHelper.py:1