ATLAS Offline Software
Functions | Variables
python.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 python.HION4.HION4AugmentationToolCfg (   flags)
Configure the example augmentation tool

Definition at line 65 of file HION4.py.

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

◆ HION4Cfg()

def python.HION4.HION4Cfg (   flags)

Definition at line 83 of file HION4.py.

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

◆ HION4KernelCfg()

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

Definition at line 73 of file HION4.py.

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

◆ HION4SkimmingToolCfg()

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

Variable Documentation

◆ AllVariables

python.HION4.AllVariables = []

Definition at line 98 of file HION4.py.

◆ ExtraVariables

python.HION4.ExtraVariables

Definition at line 104 of file HION4.py.

◆ HION4ItemList

python.HION4.HION4ItemList = HION4SlimmingHelper.GetItemList()

Definition at line 112 of file HION4.py.

◆ HION4SlimmingHelper

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

Definition at line 96 of file HION4.py.

◆ IncludeEGammaTriggerContent

python.HION4.IncludeEGammaTriggerContent

Definition at line 108 of file HION4.py.

◆ IncludeMuonTriggerContent

python.HION4.IncludeMuonTriggerContent

Definition at line 110 of file HION4.py.

◆ SmartCollections

python.HION4.SmartCollections

Definition at line 103 of file HION4.py.

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