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 64 of file HION4.py.

64def HION4AugmentationToolCfg(flags):
65 """Configure the example augmentation tool"""
66 acc = ComponentAccumulator()
67 acc.addPublicTool(CompFactory.DerivationFramework.AugmentationDeltaPoverP(name = "HION4AugmentationTool"),
68 primary = True)
69 return(acc)
70
71

◆ HION4Cfg()

python.HION4.HION4Cfg ( flags)

Definition at line 82 of file HION4.py.

82def HION4Cfg(flags):
83
84 acc = ComponentAccumulator()
85 acc.merge(HION4KernelCfg(flags, name="HION4Kernel",StreamName = "StreamDAOD_HION4"))
86
87 from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
88 from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
89 from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
90

◆ HION4KernelCfg()

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

Definition at line 72 of file HION4.py.

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

◆ 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 from DerivationFrameworkHI import ListTriggers
45 VMtrigger=ListTriggers.HION4SkimmingTriggersVM()
46 triggers=ListTriggers.HION4SkimmingTriggersALL()
47
48 tdt = None
49 if flags.Trigger.EDMVersion != -1: # Only for files with trigger payload
50 from TrigDecisionTool.TrigDecisionToolConfig import TrigDecisionToolCfg
51 tdt = acc.getPrimaryAndMerge(TrigDecisionToolCfg(flags))
52 expression = '( (' + ' || '.join(triggers) + ') && '+objectSelection+') || ( '+ ' || '.join(VMtrigger)+ ' && '+tightTrackOnlySelection+')'
53 else:
54 expression = '( '+objectSelection+' ) || ( '+tightTrackOnlySelection+' )'
55
56
57 acc.addPublicTool(CompFactory.DerivationFramework.xAODStringSkimmingTool(name = "HION4StringSkimmingTool",
58 expression = expression,
59 TrigDecisionTool=tdt),
60 primary = True)
61
62 return(acc)
63

Variable Documentation

◆ AllVariables

python.HION4.AllVariables = []

Definition at line 97 of file HION4.py.

◆ ExtraVariables

python.HION4.ExtraVariables

Definition at line 103 of file HION4.py.

◆ HION4ItemList

python.HION4.HION4ItemList = HION4SlimmingHelper.GetItemList()

Definition at line 111 of file HION4.py.

◆ HION4SlimmingHelper

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

Definition at line 95 of file HION4.py.

◆ IncludeEGammaTriggerContent

python.HION4.IncludeEGammaTriggerContent

Definition at line 107 of file HION4.py.

◆ IncludeMuonTriggerContent

python.HION4.IncludeMuonTriggerContent

Definition at line 109 of file HION4.py.

◆ SmartCollections

python.HION4.SmartCollections

Definition at line 102 of file HION4.py.