ATLAS Offline Software
Loading...
Searching...
No Matches
python.HION4 Namespace Reference

Functions

 HION4SkimmingToolCfg (flags)
 Skiming.
 HION4AugmentationToolCfg (flags)
 HION4KernelCfg (flags, name='HION4Kernel', **kwargs)
 HION4Cfg (flags)

Variables

 HION4SlimmingHelper = SlimmingHelper("HION4SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
list AllVariables = []
 SmartCollections
 ExtraVariables
 IncludeEGammaTriggerContent
 IncludeMuonTriggerContent
 HION4ItemList = HION4SlimmingHelper.GetItemList()

Function Documentation

◆ HION4AugmentationToolCfg()

python.HION4.HION4AugmentationToolCfg ( flags)
Configure the example augmentation tool

Definition at line 59 of file HION4.py.

59def HION4AugmentationToolCfg(flags):
60 """Configure the example augmentation tool"""
61 acc = ComponentAccumulator()
62 acc.addPublicTool(CompFactory.DerivationFramework.AugmentationDeltaPoverP(name = "HION4AugmentationTool"),
63 primary = True)
64 return(acc)
65
66

◆ HION4Cfg()

python.HION4.HION4Cfg ( flags)

Definition at line 77 of file HION4.py.

77def HION4Cfg(flags):
78
79 acc = ComponentAccumulator()
80 acc.merge(HION4KernelCfg(flags, name="HION4Kernel",StreamName = "StreamDAOD_HION4"))
81
82 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
83 from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
84 from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
85

◆ HION4KernelCfg()

python.HION4.HION4KernelCfg ( flags,
name = 'HION4Kernel',
** kwargs )
Configure the derivation framework driving algorithm (kernel)

Definition at line 67 of file HION4.py.

67def HION4KernelCfg(flags, name='HION4Kernel', **kwargs):
68 """Configure the derivation framework driving algorithm (kernel)"""
69 acc = ComponentAccumulator()
70
71 skimmingTool = acc.getPrimaryAndMerge(HION4SkimmingToolCfg(flags))
72 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(name, SkimmingTools = [skimmingTool]),
73 sequenceName="HION4Sequence")
74 return acc
75
76

◆ HION4SkimmingToolCfg()

python.HION4.HION4SkimmingToolCfg ( flags)

Skiming.

Configure the example skimming tool

Definition at line 11 of file HION4.py.

11def HION4SkimmingToolCfg(flags):
12 """Configure the example skimming tool"""
13 acc = ComponentAccumulator()
14
15 ExtraData = []
16 ExtraData += ['xAOD::MuonContainer/Muons']
17 ExtraData += ['xAOD::ElectronContainer/Electrons']
18 ExtraData += ['xAOD::PhotonContainer/Photons']
19 ExtraData += ['xAOD::TrackParticleContainer/InDetTrackParticles']
20
21 acc.addSequence( seqAND("HION4Sequence") )
22 acc.getSequence("HION4Sequence").ExtraDataForDynamicConsumers = ExtraData
23 acc.getSequence("HION4Sequence").ProcessDynamicDataDependencies = True
24
25 muonsRequirements = '(Muons.pt >= 2.0*GeV) && (abs(Muons.eta) < 2.6)'
26 muonOnlySelection = 'count('+muonsRequirements+') >= 1'
27
28 electronsRequirements = '(Electrons.pt > 1.5*GeV) && (abs(Electrons.eta) < 2.6)'
29 electronOnlySelection = 'count('+electronsRequirements+') >= 1'
30
31 photonsRequirements = '(Photons.pt >= 1.5*GeV)'
32 photonOnlySelection = 'count('+photonsRequirements+') >=2'
33
34 electronPhotonSelection = '(count('+electronsRequirements+') + count('+photonsRequirements+')) >= 2'
35
36 trackRequirements = '(InDetTrackParticles.pt >= 0.2*GeV) && (abs(InDetTrackParticles.eta) < 2.5)'
37 trackOnlySelection = '( count('+trackRequirements+') >= 2 && 5 >= count('+trackRequirements+') )'
38
39 tightTrackRequirements = '(InDetTrackParticles.pt >= 1*GeV) && (abs(InDetTrackParticles.eta) < 2.5)'
40 tightTrackOnlySelection = '( count('+tightTrackRequirements+') == 2 )'
41
42 objectSelection = '('+muonOnlySelection+' || '+electronOnlySelection+' || '+photonOnlySelection+' || '+electronPhotonSelection+' || '+trackOnlySelection+')'
43
44 if flags.Trigger.EDMVersion != -1: # Only for files with trigger payload
45 from DerivationFrameworkHI import ListTriggers
46 VMtrigger=ListTriggers.HION4SkimmingTriggersVM()
47 triggers=ListTriggers.HION4SkimmingTriggersALL()
48 expression = '( (' + ' || '.join(triggers) + ') && '+objectSelection+') || ( '+ ' || '.join(VMtrigger)+ ' && '+tightTrackOnlySelection+')'
49 else:
50 expression = '( '+objectSelection+' ) || ( '+tightTrackOnlySelection+' )'
51
52 from DerivationFrameworkTools.DerivationFrameworkToolsConfig import (
53 xAODStringSkimmingToolCfg)
54 acc.addPublicTool(acc.getPrimaryAndMerge(xAODStringSkimmingToolCfg(
55 flags, name = "HION4StringSkimmingTool", expression = expression)), primary = True)
56
57 return(acc)
58

Variable Documentation

◆ AllVariables

python.HION4.AllVariables = []

Definition at line 92 of file HION4.py.

◆ ExtraVariables

python.HION4.ExtraVariables

Definition at line 98 of file HION4.py.

◆ HION4ItemList

python.HION4.HION4ItemList = HION4SlimmingHelper.GetItemList()

Definition at line 106 of file HION4.py.

◆ HION4SlimmingHelper

python.HION4.HION4SlimmingHelper = SlimmingHelper("HION4SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)

Definition at line 90 of file HION4.py.

◆ IncludeEGammaTriggerContent

python.HION4.IncludeEGammaTriggerContent

Definition at line 102 of file HION4.py.

◆ IncludeMuonTriggerContent

python.HION4.IncludeMuonTriggerContent

Definition at line 104 of file HION4.py.

◆ SmartCollections

python.HION4.SmartCollections

Definition at line 97 of file HION4.py.