ATLAS Offline Software
Functions | Variables
python.HION7 Namespace Reference

Functions

def HION7SkimmingToolCfg (flags)
 Skiming. More...
 
def HION7GlobalAugmentationToolCfg (flags)
 
def HION7KernelCfg (flags, name='HION7Kernel', **kwargs)
 
def HION7Cfg (flags)
 

Variables

 info = getTypeForRun(flags.Input.RunNumbers[0])
 
bool isSmallSystem = False
 
int pTCut = 20
 
string track_thinning_expression = "InDetTrackParticles.pt > 0.9*GeV"
 
 TrackParticleThinningTool
 
 AntiKt2HIJetsThinningTool
 
 AntiKt4HIJetsThinningTool
 
list thinningTools
 
string truth_thinning_expression = "(TruthParticles.status==1) && (TruthParticles.pt > 0.7*GeV) && (abs(TruthParticles.eta) < 2.7)"
 
 TruthParticleThinningTool
 
 skimmingTool = acc.getPrimaryAndMerge(HION7SkimmingToolCfg(flags))
 
 globalAugmentationTool = acc.getPrimaryAndMerge(HION7GlobalAugmentationToolCfg(flags))
 
list augmentationTool = [globalAugmentationTool]
 
 sequenceName
 
 HION7SlimmingHelper = SlimmingHelper("HION7SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
 Slimming. More...
 
 SmartCollections
 
 all_variables = ListSlimming.HION7AllVarContent()
 
 AllVariables
 
 HION7ItemList = HION7SlimmingHelper.GetItemList()
 

Function Documentation

◆ HION7Cfg()

def python.HION7.HION7Cfg (   flags)

Definition at line 124 of file HION7.py.

124 def HION7Cfg(flags):
125 
126  acc = ComponentAccumulator()
127  acc.merge(HION7KernelCfg(flags, name="HION7Kernel",StreamName = "StreamDAOD_HION7"))
128 
129  from OutputStreamAthenaPool.OutputStreamConfig import OutputStreamCfg
130  from xAODMetaDataCnv.InfileMetaDataConfig import SetupMetaDataForStreamCfg
131  from DerivationFrameworkCore.SlimmingHelper import SlimmingHelper
132  from DerivationFrameworkHI import ListSlimming
133 

◆ HION7GlobalAugmentationToolCfg()

def python.HION7.HION7GlobalAugmentationToolCfg (   flags)
Configure the example augmentation tool

Definition at line 47 of file HION7.py.

48  """Configure the example augmentation tool"""
49  acc = ComponentAccumulator()
50 
51  # Configure the augmentation tool
52  # This adds FCalEtA, FCalEtC, ...
53  augmentation_tool = CompFactory.DerivationFramework.HIGlobalAugmentationTool(name="HION7AugmentationTool",
54  nHarmonic=5 # to capture higher-order harmonics for anisotropic flow
55  )
56  acc.addPublicTool(augmentation_tool, primary=True)
57 
58  return acc
59 
60 

◆ HION7KernelCfg()

def python.HION7.HION7KernelCfg (   flags,
  name = 'HION7Kernel',
**  kwargs 
)
Configure the derivation framework driving algorithm (kernel)

Definition at line 61 of file HION7.py.

61 def HION7KernelCfg(flags, name='HION7Kernel', **kwargs):
62  """Configure the derivation framework driving algorithm (kernel)"""
63  acc = ComponentAccumulator()
64 

◆ HION7SkimmingToolCfg()

def python.HION7.HION7SkimmingToolCfg (   flags)

Skiming.

Configure the example skimming tool

Definition at line 11 of file HION7.py.

11 def HION7SkimmingToolCfg(flags):
12  """Configure the example skimming tool"""
13  acc = ComponentAccumulator()
14  ExtraData = []
15  ExtraData += ['xAOD::JetContainer/AntiKt2HIJets']
16  ExtraData += ['xAOD::JetContainer/AntiKt4HIJets']
17 
18  acc.addSequence( seqAND("HION7Sequence") )
19  acc.getSequence("HION7Sequence").ExtraDataForDynamicConsumers = ExtraData
20  acc.getSequence("HION7Sequence").ProcessDynamicDataDependencies = True
21 
22  expression = ""
23  #Trigger selection
24  from DerivationFrameworkHI import ListTriggers
25  from CoolConvUtilities.ParticleTypeUtil import getTypeForRun
26  info=getTypeForRun(flags.Input.RunNumbers[0])
27  isSmallSystem = False
28  if (info.getBeam1Type() < 11) or (info.getBeam2Type() < 11):
29  isSmallSystem = True
30  if not flags.Input.isMC:
31  print('project: ', flags.Input.ProjectName,', isSmallSystem: ', isSmallSystem)
32  TriggerDict = ListTriggers.GetTriggers(flags.Input.ProjectName, isSmallSystem)
33  for i, key in enumerate(TriggerDict):
34  expression = expression + '(' + key + ' && count(AntiKt4HIJets.pt >' + str(TriggerDict[key]) + '*GeV) >=1 ) ' + '|| (' + key + ' && count(AntiKt2HIJets.pt >' + str(TriggerDict[key]) + '*GeV) >=1 ) '
35  if not i == len(TriggerDict) - 1:
36  expression = expression + ' || '
37 
38  from TrigDecisionTool.TrigDecisionToolConfig import TrigDecisionToolCfg
39  tdt = acc.getPrimaryAndMerge(TrigDecisionToolCfg(flags))
40  acc.addPublicTool(CompFactory.DerivationFramework.xAODStringSkimmingTool(name = "HION7StringSkimmingTool",
41  expression = expression,
42  TrigDecisionTool=tdt),
43  primary = True)
44 
45  return(acc)
46 

Variable Documentation

◆ all_variables

python.HION7.all_variables = ListSlimming.HION7AllVarContent()

Definition at line 138 of file HION7.py.

◆ AllVariables

python.HION7.AllVariables

Definition at line 141 of file HION7.py.

◆ AntiKt2HIJetsThinningTool

python.HION7.AntiKt2HIJetsThinningTool
Initial value:
1 = acc.getPrimaryAndMerge(JetTrackParticleThinningCfg(
2  flags,
3  name = "AntiKt2HIJetsThinningTool",
4  StreamName = kwargs['StreamName'],
5  JetKey = "AntiKt2HIJets",
6  SelectionString = "AntiKt2HIJets.pt > "+ str(pTCut) +"*GeV",
7  InDetTrackParticlesKey = "InDetTrackParticles"))

Definition at line 85 of file HION7.py.

◆ AntiKt4HIJetsThinningTool

python.HION7.AntiKt4HIJetsThinningTool
Initial value:
1 = acc.getPrimaryAndMerge(JetTrackParticleThinningCfg(
2  flags,
3  name = "AntiKt4HIJetsThinningTool",
4  StreamName = kwargs['StreamName'],
5  JetKey = "AntiKt4HIJets",
6  SelectionString = "AntiKt4HIJets.pt > "+ str(pTCut) +"*GeV",
7  InDetTrackParticlesKey = "InDetTrackParticles"))

Definition at line 93 of file HION7.py.

◆ augmentationTool

list python.HION7.augmentationTool = [globalAugmentationTool]

Definition at line 118 of file HION7.py.

◆ globalAugmentationTool

python.HION7.globalAugmentationTool = acc.getPrimaryAndMerge(HION7GlobalAugmentationToolCfg(flags))

Definition at line 117 of file HION7.py.

◆ HION7ItemList

python.HION7.HION7ItemList = HION7SlimmingHelper.GetItemList()

Definition at line 143 of file HION7.py.

◆ HION7SlimmingHelper

python.HION7.HION7SlimmingHelper = SlimmingHelper("HION7SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)

Slimming.

Definition at line 136 of file HION7.py.

◆ info

python.HION7.info = getTypeForRun(flags.Input.RunNumbers[0])

Definition at line 68 of file HION7.py.

◆ isSmallSystem

bool python.HION7.isSmallSystem = False

Definition at line 69 of file HION7.py.

◆ pTCut

int python.HION7.pTCut = 20

Definition at line 72 of file HION7.py.

◆ sequenceName

python.HION7.sequenceName

Definition at line 120 of file HION7.py.

◆ skimmingTool

python.HION7.skimmingTool = acc.getPrimaryAndMerge(HION7SkimmingToolCfg(flags))

Definition at line 116 of file HION7.py.

◆ SmartCollections

python.HION7.SmartCollections

Definition at line 137 of file HION7.py.

◆ thinningTools

list python.HION7.thinningTools
Initial value:
1 = [TrackParticleThinningTool,
2  AntiKt2HIJetsThinningTool,
3  AntiKt4HIJetsThinningTool]

Definition at line 102 of file HION7.py.

◆ track_thinning_expression

string python.HION7.track_thinning_expression = "InDetTrackParticles.pt > 0.9*GeV"

Definition at line 77 of file HION7.py.

◆ TrackParticleThinningTool

python.HION7.TrackParticleThinningTool
Initial value:
1 = acc.getPrimaryAndMerge(TrackParticleThinningCfg(
2  flags,
3  name = "PHYSTrackParticleThinningTool",
4  StreamName = kwargs['StreamName'],
5  SelectionString = track_thinning_expression,
6  InDetTrackParticlesKey = "InDetTrackParticles"))

Definition at line 78 of file HION7.py.

◆ truth_thinning_expression

string python.HION7.truth_thinning_expression = "(TruthParticles.status==1) && (TruthParticles.pt > 0.7*GeV) && (abs(TruthParticles.eta) < 2.7)"

Definition at line 107 of file HION7.py.

◆ TruthParticleThinningTool

python.HION7.TruthParticleThinningTool
Initial value:
1 = acc.getPrimaryAndMerge(GenericTruthThinningCfg(flags,
2  name="TruthParticleThinningTool",
3  StreamName=kwargs['StreamName'],
4  ParticleSelectionString = truth_thinning_expression
5  )
6  )

Definition at line 108 of file HION7.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.HION7.HION7Cfg
def HION7Cfg(flags)
Definition: HION7.py:124
python.InDetToolsConfig.TrackParticleThinningCfg
def TrackParticleThinningCfg(flags, name, **kwargs)
Definition: InDetToolsConfig.py:516
python.HION7.HION7GlobalAugmentationToolCfg
def HION7GlobalAugmentationToolCfg(flags)
Definition: HION7.py:47
python.ParticleTypeUtil.getTypeForRun
def getTypeForRun(run, quiet=False)
Definition: ParticleTypeUtil.py:24
python.TruthDerivationToolsConfig.GenericTruthThinningCfg
def GenericTruthThinningCfg(flags, name, **kwargs)
Definition: TruthDerivationToolsConfig.py:415
python.HION7.HION7KernelCfg
def HION7KernelCfg(flags, name='HION7Kernel', **kwargs)
Definition: HION7.py:61
python.InDetToolsConfig.JetTrackParticleThinningCfg
def JetTrackParticleThinningCfg(flags, name, **kwargs)
Definition: InDetToolsConfig.py:632
print
void print(char *figname, TCanvas *c1)
Definition: TRTCalib_StrawStatusPlots.cxx:26
python.TriggerInterface.TrigDecisionToolCfg
def TrigDecisionToolCfg(flags)
Definition: TriggerInterface.py:14
python.CFElements.seqAND
def seqAND(name, subs=[], invert=False)
Definition: CFElements.py:27
str
Definition: BTagTrackIpAccessor.cxx:11
python.HION7.HION7SkimmingToolCfg
def HION7SkimmingToolCfg(flags)
Skiming.
Definition: HION7.py:11