ATLAS Offline Software
Functions | Variables
HION4 Namespace Reference

Functions

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

Variables

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

Function Documentation

◆ HION4AugmentationToolCfg()

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

Definition at line 60 of file HION4.py.

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

◆ HION4Cfg()

def HION4.HION4Cfg (   flags)

Definition at line 78 of file HION4.py.

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

◆ HION4KernelCfg()

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

Definition at line 68 of file HION4.py.

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

◆ HION4SkimmingToolCfg()

def HION4.HION4SkimmingToolCfg (   flags)

Skiming.

Configure the example skimming tool

Definition at line 12 of file HION4.py.

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

Variable Documentation

◆ AllVariables

HION4.AllVariables = []

Definition at line 93 of file HION4.py.

◆ ExtraVariables

HION4.ExtraVariables

Definition at line 99 of file HION4.py.

◆ HION4ItemList

HION4.HION4ItemList = HION4SlimmingHelper.GetItemList()

Definition at line 107 of file HION4.py.

◆ HION4SlimmingHelper

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

Definition at line 91 of file HION4.py.

◆ IncludeEGammaTriggerContent

HION4.IncludeEGammaTriggerContent

Definition at line 103 of file HION4.py.

◆ IncludeMuonTriggerContent

HION4.IncludeMuonTriggerContent

Definition at line 105 of file HION4.py.

◆ SmartCollections

HION4.SmartCollections

Definition at line 98 of file HION4.py.

HION4.HION4AugmentationToolCfg
def HION4AugmentationToolCfg(flags)
Definition: HION4.py:60
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
HION4.HION4SkimmingToolCfg
def HION4SkimmingToolCfg(flags)
Skiming.
Definition: HION4.py:12
HION4.HION4Cfg
def HION4Cfg(flags)
Definition: HION4.py:78
python.CFElements.seqAND
def seqAND(name, subs=[])
Definition: CFElements.py:25
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
HION4.HION4KernelCfg
def HION4KernelCfg(flags, name='HION4Kernel', **kwargs)
Definition: HION4.py:68
ListTriggers.HION4SkimmingTriggersALL
def HION4SkimmingTriggersALL()
Definition: ListTriggers.py:229
python.TriggerInterface.TrigDecisionToolCfg
def TrigDecisionToolCfg(flags)
Definition: TriggerInterface.py:14
ListTriggers.HION4SkimmingTriggersVM
def HION4SkimmingTriggersVM()
Definition: ListTriggers.py:238