ATLAS Offline Software
Functions
python.HION14 Namespace Reference

Functions

def HION14SkimmingToolCfg (flags)
 
def HION14GlobalAugmentationToolCfg (flags)
 
def HION14TightAugmentationToolCfg (flags)
 
def HION14CentralityAugmentationToolCfg (flags)
 
def HION14KernelCfg (flags, name='HION14Kernel', **kwargs)
 
def HION14Cfg (flags)
 

Function Documentation

◆ HION14CentralityAugmentationToolCfg()

def python.HION14.HION14CentralityAugmentationToolCfg (   flags)
Configure the example augmentation tool

Definition at line 71 of file HION14.py.

72  """Configure the example augmentation tool"""
73  acc = ComponentAccumulator()
74 
75  # Centrality tool
76  HICentralityDecorator = CompFactory.DerivationFramework.HICentralityDecorationTool(name="HION14CentralityTool")
77 
78  # Add centrality tools to the ComponentAccumulator
79  acc.addPublicTool(HICentralityDecorator, primary=True)
80 
81  return acc
82 

◆ HION14Cfg()

def python.HION14.HION14Cfg (   flags)

Definition at line 156 of file HION14.py.

156 def HION14Cfg(flags):
157  acc = ComponentAccumulator()
158  acc.merge(HION14KernelCfg(flags, name="HION14Kernel", StreamName="StreamDAOD_HION14"))
159 
160  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
161  from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
162  from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
163 
164 
165  from DerivationFrameworkHI import ListSlimming
166 
167  HION14SlimmingHelper = SlimmingHelper("HION14SlimmingHelper", NamesAndTypes=flags.Input.TypedCollections, flags=flags)
168 
169  HION14SlimmingHelper.SmartCollections = ListSlimming.HION14SmartCollections()
170  # For these variables we want all the branches
171  HION14SlimmingHelper.AllVariables = ListSlimming.HION14AllVariablesGeneral()
172  # These are selected branches
173  HION14SlimmingHelper.ExtraVariables = ListSlimming.HION14ExtraContentAll()
174 
175  # Truth information
176  if flags.Input.isMC:
177  HION14SlimmingHelper.ExtraVariables +=ListSlimming.HION14ExtraContentAllTruth()
178  HION14SlimmingHelper.AllVariables += ListSlimming.HION14TruthVariablesGeneral()
179 
180 
181  HION14ItemList = HION14SlimmingHelper.GetItemList()
182 
183  acc.merge(OutputStreamCfg(flags, "DAOD_HION14", ItemList=HION14ItemList, AcceptAlgs=["HION14Kernel"]))
184  acc.merge(SetupMetaDataForStreamCfg(flags, "DAOD_HION14", AcceptAlgs=["HION14Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))
185 
186  return acc
187 

◆ HION14GlobalAugmentationToolCfg()

def python.HION14.HION14GlobalAugmentationToolCfg (   flags)
Configure the example augmentation tool

Definition at line 30 of file HION14.py.

31  """Configure the example augmentation tool"""
32  acc = ComponentAccumulator()
33 
34  # Configure the augmentation tool
35  # This adds FCalEtA, FCalEtC, ...
36  augmentation_tool = CompFactory.DerivationFramework.HIGlobalAugmentationTool(name="HION14AugmentationTool",
37  nHarmonic=5 # to capture higher-order harmonics for anisotropic flow
38  )
39  acc.addPublicTool(augmentation_tool, primary=True)
40 
41  return acc
42 

◆ HION14KernelCfg()

def python.HION14.HION14KernelCfg (   flags,
  name = 'HION14Kernel',
**  kwargs 
)
Configure the derivation framework driving algorithm (kernel)

Definition at line 83 of file HION14.py.

83 def HION14KernelCfg(flags, name='HION14Kernel', **kwargs):
84  """Configure the derivation framework driving algorithm (kernel)"""
85  acc = ComponentAccumulator()
86  skimmingTool = []
87  # Only apply the triggers to data (it doesn't work on MC for a unknown reason)
88  if not flags.Input.isMC:
89  triggers = acc.getPrimaryAndMerge(HION14SkimmingToolCfg(flags))
90  skimmingTool += [triggers]
91 
92 
93  thinningTool = []
94 
95  # Loose thinning
96  from InDetConfig.InDetTrackSelectionToolConfig import InDetTrackSelectionTool_HILoose_Cfg
97 
98  HILooseTrackSelector = acc.popToolsAndMerge(InDetTrackSelectionTool_HILoose_Cfg(flags,
99  name = "HION14TrackSelectionToolLoose",
100  minPt = 100
101  )
102  )
103 
104  acc.addPublicTool(HILooseTrackSelector)
105 
106  HION14TrackThinningTool = CompFactory.DerivationFramework.HITrackParticleThinningTool(name="HION14TrackThinningTool",
107  #InDetTrackParticlesKey="InDetTrackParticles",
108  PrimaryVertexKey="PrimaryVertices",
109  PrimaryVertexSelection="sumPt2",
110  TrackSelectionTool=HILooseTrackSelector
111  )
112 
113  acc.addPublicTool(HION14TrackThinningTool)
114  thinningTool += [HION14TrackThinningTool]
115 
116  # Muon thinning
117  muonThinningTool = CompFactory.DerivationFramework.MuonTrackParticleThinning(name="HION14MuonThinningTool",
118  MuonKey = "Muons",
119  InDetTrackParticlesKey = "InDetTrackParticles")
120 
121  acc.addPublicTool(muonThinningTool)
122  thinningTool += [muonThinningTool]
123 
124  # Truth thinning
125  if flags.Input.isMC:
126  truth_thinning_expression = "(TruthParticles.status == 1) && ( (TruthParticles.pdgId != 2112 && TruthParticles.pdgId != 2212) || TruthParticles.pt > 0.1 )"
127 
128  from DerivationFrameworkMCTruth.TruthDerivationToolsConfig import GenericTruthThinningCfg
129 
130  HION14TruthThinningTool = acc.getPrimaryAndMerge(GenericTruthThinningCfg(flags,
131  name="HION14TruthThinningTool",
132  StreamName=kwargs['StreamName'],
133  ParticleSelectionString=truth_thinning_expression
134  )
135  )
136 
137  thinningTool += [HION14TruthThinningTool]
138 
139 
141  globalAugmentationTool = acc.getPrimaryAndMerge(HION14GlobalAugmentationToolCfg(flags))
142  tightAugmentationTool = acc.getPrimaryAndMerge(HION14TightAugmentationToolCfg(flags))
143  centralityAugmentatioTool = acc.getPrimaryAndMerge(HION14CentralityAugmentationToolCfg(flags))
144  augmentationTool = [globalAugmentationTool, tightAugmentationTool, centralityAugmentatioTool]
145 
146  DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
147  acc.addEventAlgo(DerivationKernel(name,
148  SkimmingTools= skimmingTool,
149  ThinningTools=thinningTool,
150  AugmentationTools=augmentationTool
151  ),
152  )
153 
154  return acc
155 

◆ HION14SkimmingToolCfg()

def python.HION14.HION14SkimmingToolCfg (   flags)
Configure the example skimming tool

Definition at line 13 of file HION14.py.

13 def HION14SkimmingToolCfg(flags):
14  """Configure the example skimming tool"""
15  from TrigDecisionTool.TrigDecisionToolConfig import TrigDecisionToolCfg
16  acc = ComponentAccumulator()
17 
18  #Building jet skimming triggers
19  triggers = ["HLT_mb_sptrk_ion_L1ZDC_A_C_VTE50","HLT_noalg_mb_L1TE50"]
20 
21  expression = ' ( ' +' || '.join(triggers) + ' )'
22 
23  tdt = acc.getPrimaryAndMerge(TrigDecisionToolCfg(flags))
24  acc.addPublicTool(CompFactory.DerivationFramework.xAODStringSkimmingTool(name = "HION14StringSkimmingTool",
25  expression = expression,
26  TrigDecisionTool=tdt),
27  primary = True)
28  return(acc)
29 

◆ HION14TightAugmentationToolCfg()

def python.HION14.HION14TightAugmentationToolCfg (   flags)
Configure the example augmentation tool

Definition at line 43 of file HION14.py.

44  """Configure the example augmentation tool"""
45  acc = ComponentAccumulator()
46 
47  # Configure track selection tools
48  from InDetConfig.InDetTrackSelectionToolConfig import InDetTrackSelectionTool_HITight_Cfg
49 
50  HITightTrackSelector = acc.popToolsAndMerge(InDetTrackSelectionTool_HITight_Cfg(flags,
51  name="HITightTrackSelector",
52  minPt=100
53  )
54  )
55 
56  # Add track selection tools to the ComponentAccumulator
57  acc.addPublicTool(HITightTrackSelector)
58 
59  # Adding the decoration for HITight
60  HITightDecorator = CompFactory.DerivationFramework.InDetTrackSelectionToolWrapper(name='HION14TighDecorator',
61  TrackSelectionTool=HITightTrackSelector,
62  DecorationName='HITight',
63  ContainerName="InDetTrackParticles"
64  )
65 
66  # Merge the ComponentAccumulator returned by the decorator configuration
67  acc.addPublicTool(HITightDecorator, primary=True)
68 
69  return acc
70 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.HION14.HION14TightAugmentationToolCfg
def HION14TightAugmentationToolCfg(flags)
Definition: HION14.py:43
python.OutputStreamConfig.OutputStreamCfg
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
Definition: OutputStreamConfig.py:12
python.HION14.HION14Cfg
def HION14Cfg(flags)
Definition: HION14.py:156
python.HION14.HION14CentralityAugmentationToolCfg
def HION14CentralityAugmentationToolCfg(flags)
Definition: HION14.py:71
python.TruthDerivationToolsConfig.GenericTruthThinningCfg
def GenericTruthThinningCfg(flags, name, **kwargs)
Definition: TruthDerivationToolsConfig.py:401
python.InDetTrackSelectionToolConfig.InDetTrackSelectionTool_HITight_Cfg
def InDetTrackSelectionTool_HITight_Cfg(flags, name="InDetTrackSelectionTool_HITight", **kwargs)
Definition: InDetTrackSelectionToolConfig.py:73
python.HION14.HION14SkimmingToolCfg
def HION14SkimmingToolCfg(flags)
Definition: HION14.py:13
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.TriggerInterface.TrigDecisionToolCfg
def TrigDecisionToolCfg(flags)
Definition: TriggerInterface.py:14
python.InDetTrackSelectionToolConfig.InDetTrackSelectionTool_HILoose_Cfg
def InDetTrackSelectionTool_HILoose_Cfg(flags, name="InDetTrackSelectionTool_HILoose", **kwargs)
Definition: InDetTrackSelectionToolConfig.py:68
InfileMetaDataConfig.SetupMetaDataForStreamCfg
def SetupMetaDataForStreamCfg(flags, streamName="", AcceptAlgs=None, createMetadata=None, propagateMetadataFromInput=True, *args, **kwargs)
Definition: InfileMetaDataConfig.py:222
SlimmingHelper
Definition: SlimmingHelper.py:1
python.HION14.HION14GlobalAugmentationToolCfg
def HION14GlobalAugmentationToolCfg(flags)
Definition: HION14.py:30
python.HION14.HION14KernelCfg
def HION14KernelCfg(flags, name='HION14Kernel', **kwargs)
Definition: HION14.py:83
python.HION12.DerivationKernel
DerivationKernel
Definition: HION12.py:66