ATLAS Offline Software
Functions
python.LLPToolsConfig Namespace Reference

Functions

def VSITrackParticleThinningCfg (flags, name, **kwargs)
 
def JetTrackParticleThinningCfg (flags, name, **kwargs)
 
def JetLargeD0TrackParticleThinningCfg (flags, name, **kwargs)
 
def RCJetSubstructureAugCfg (flags, name, **kwargs)
 
def AugmentationToolLeadingJetsCfg (flags)
 
def TrackParametersKVUCfg (flags, name, **kwargs)
 
def TrackParticleCaloCellDecoratorCfg (flags, name, **kwargs)
 
def PixeldEdxTrackParticleThinningCfg (flags, name, **kwargs)
 
def LLP1TriggerSkimmingToolCfg (flags, name, TriggerListsHelper, **kwargs)
 
def LLP1TriggerMatchingToolRun2Cfg (flags, name, **kwargs)
 
def LRTMuonMergerAlg (flags, name="LLP1_MuonLRTMergingAlg", **kwargs)
 
def ZeroPixelHitMuonMergerAlgCfg (flags, name='LLP1_MuonZPHMergingAlg', **kwargs)
 
def LRTElectronMergerAlg (flags, name="LLP1_ElectronLRTMergingAlg", **kwargs)
 
def PhotonIsEMSelectorsCfg (flags)
 
def LRTElectronLHSelectorsCfg (flags)
 
def RecoverZeroPixelHitMuonsCfg (flags)
 

Function Documentation

◆ AugmentationToolLeadingJetsCfg()

def python.LLPToolsConfig.AugmentationToolLeadingJetsCfg (   flags)
Configure the RC jet substructure computation tool

Definition at line 48 of file LLPToolsConfig.py.

49  """Configure the RC jet substructure computation tool"""
50  acc = ComponentAccumulator()
51  acc.addPublicTool(CompFactory.DerivationFramework.AugmentationToolLeadingJets(name = "LLP1AugmentationToolLeadingJets"),
52  primary = True)
53  return acc
54 
55 # Vertex constraint tool

◆ JetLargeD0TrackParticleThinningCfg()

def python.LLPToolsConfig.JetLargeD0TrackParticleThinningCfg (   flags,
  name,
**  kwargs 
)
Configure the track particle merger tool

Definition at line 30 of file LLPToolsConfig.py.

30 def JetLargeD0TrackParticleThinningCfg(flags, name, **kwargs):
31  """Configure the track particle merger tool"""
32  acc = ComponentAccumulator()
33  JetLargeD0TrackParticleThinning = CompFactory.DerivationFramework.JetLargeD0TrackParticleThinning
34  acc.addPublicTool(JetLargeD0TrackParticleThinning(name, **kwargs),
35  primary = True)
36  return acc
37 
38 # RC jet substructure computation tool

◆ JetTrackParticleThinningCfg()

def python.LLPToolsConfig.JetTrackParticleThinningCfg (   flags,
  name,
**  kwargs 
)
Configure the track particle merger tool

Definition at line 21 of file LLPToolsConfig.py.

21 def JetTrackParticleThinningCfg(flags, name, **kwargs):
22  """Configure the track particle merger tool"""
23  acc = ComponentAccumulator()
24  JetTrackParticleThinning = CompFactory.DerivationFramework.JetTrackParticleThinning
25  acc.addPublicTool(JetTrackParticleThinning(name, **kwargs),
26  primary = True)
27  return acc
28 
29 # Thinning for LRT tracks in jets

◆ LLP1TriggerMatchingToolRun2Cfg()

def python.LLPToolsConfig.LLP1TriggerMatchingToolRun2Cfg (   flags,
  name,
**  kwargs 
)
Configure the common trigger matching for run 2 DAODs

Definition at line 146 of file LLPToolsConfig.py.

146 def LLP1TriggerMatchingToolRun2Cfg(flags, name, **kwargs):
147  """Configure the common trigger matching for run 2 DAODs"""
148 
149  triggerList = kwargs['TriggerList']
150  outputContainerPrefix = kwargs['OutputContainerPrefix']
151 
152  kwargs.setdefault('InputElectrons', 'LRTElectrons')
153  kwargs.setdefault('InputMuons', 'MuonsLRT')
154  kwargs.setdefault('DRThreshold', None)
155 
156  acc = ComponentAccumulator()
157 
158  # Create trigger matching decorations
159  from DerivationFrameworkTrigger.TriggerMatchingToolConfig import TriggerMatchingToolCfg
160  if kwargs['DRThreshold'] is None:
161  PhysCommonTriggerMatchingTool = acc.getPrimaryAndMerge(TriggerMatchingToolCfg(
162  flags,
163  name=name,
164  ChainNames = triggerList,
165  OutputContainerPrefix = outputContainerPrefix,
166  InputElectrons = kwargs['InputElectrons'],
167  InputMuons = kwargs['InputMuons']))
168  else:
169  PhysCommonTriggerMatchingTool = acc.getPrimaryAndMerge(TriggerMatchingToolCfg(
170  flags,
171  name=name,
172  ChainNames = triggerList,
173  OutputContainerPrefix = outputContainerPrefix,
174  DRThreshold = kwargs['DRThreshold'],
175  InputElectrons = kwargs['InputElectrons'],
176  InputMuons = kwargs['InputMuons']))
177  CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
178  acc.addEventAlgo(CommonAugmentation(f"{outputContainerPrefix}TriggerMatchingKernel",
179  AugmentationTools=[PhysCommonTriggerMatchingTool]))
180  return(acc)
181 

◆ LLP1TriggerSkimmingToolCfg()

def python.LLPToolsConfig.LLP1TriggerSkimmingToolCfg (   flags,
  name,
  TriggerListsHelper,
**  kwargs 
)

Definition at line 91 of file LLPToolsConfig.py.

91 def LLP1TriggerSkimmingToolCfg(flags, name, TriggerListsHelper, **kwargs):
92 
93  from TriggerMenuMT.TriggerAPI.TriggerAPI import TriggerAPI
94  from TriggerMenuMT.TriggerAPI.TriggerEnums import TriggerPeriod, TriggerType
95  import re
96 
97  # This is not all periods! Run 2 and current triggers only
98  allperiods = TriggerPeriod.y2015 | TriggerPeriod.y2016 | TriggerPeriod.y2017 | TriggerPeriod.y2018 | TriggerPeriod.future2e34
99  TriggerAPI.setConfigFlags(flags)
100  trig_el = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.el, livefraction=0.8)
101  trig_mu = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.mu, livefraction=0.8)
102  trig_g = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.g, livefraction=0.8)
103  trig_xe = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.xe, livefraction=0.8)
104  trig_elmu = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.el, additionalTriggerType=TriggerType.mu, livefraction=0.8)
105  trig_mug = TriggerAPI.getLowestUnprescaledAnyPeriod(allperiods, triggerType=TriggerType.mu, additionalTriggerType=TriggerType.g, livefraction=0.8)
106 
107  # Run 3 triggers. Doesn't take into account prescales, so this is overly inclusive. Needs updates to trigger api: ATR-25805
108  all_run3 = TriggerListsHelper.Run3TriggerNames
109  r_run3_nojets = re.compile("(HLT_[1-9]*(j).*)")
110  r_tau = re.compile("HLT_.*tau.*")
111  trig_run3_elmug = []
112  for chain_name in all_run3:
113  result_jets = r_run3_nojets.match(chain_name)
114  result_taus = r_tau.match(chain_name) # no taus in llp1 atm
115  # no perf chains
116  if 'perf' in chain_name.lower(): continue
117  if result_jets is None and result_taus is None: trig_run3_elmug.append(chain_name)
118 
119  trig_EJ_Run3 = ["HLT_j200_0eta180_emergingPTF0p08dR1p2_a10sd_cssk_pf_jes_ftf_preselj200_L1J100", "HLT_j460_a10r_L1J100","HLT_j200_0eta180_emergingPTF0p08dR1p2_a10sd_cssk_pf_jes_ftf_preselj200_L1gLJ140p0ETA25","HLT_j200_0eta180_emergingPTF0p08dR1p2_a10sd_cssk_pf_jes_ftf_preselj200_L1SC111-CjJ40","HLT_j200_0eta180_emergingPTF0p08dR1p2_a10sd_cssk_pf_jes_ftf_preselj200_L1jJ160","HLT_j200_0eta180_emergingPTF0p08dR1p2_a10sd_cssk_pf_jes_ftf_preselj200_L1SC175-SCjJ10"]
120  trig_VBF_2018 =["HLT_j55_gsc80_bmv2c1070_split_j45_gsc60_bmv2c1085_split_j45_320eta490", "HLT_j45_gsc55_bmv2c1070_split_2j45_320eta490_L1J25.0ETA23_2J15.31ETA49", "HLT_j80_0eta240_j60_j45_320eta490_AND_2j35_gsc45_bmv2c1070_split", "HLT_ht300_2j40_0eta490_invm700_L1HT150-J20s5.ETA31_MJJ-400-CF_AND_2j35_gsc45_bmv2c1070_split", "HLT_j70_j50_0eta490_invm1100j70_dphi20_deta40_L1MJJ-500-NFF"]
121  trig_VBF_Run3 = ["HLT_j70_j50a_j0_DJMASS1000j50dphi200x400deta_L1MJJ500NFF","HLT_j70_j50a_j0_DJMASS1000j50dphi200x400deta_L1jMJJ-500-NFF"]
122  trig_dispjet_Run3 = ["HLT_j180_hitdvjet260_tight_L1J100", "HLT_j180_dispjet50_3d2p_dispjet50_1p_L1J100", "HLT_j180_2dispjet50_3d2p_L1J100","HLT_j180_2dispjet50_3d2p_L1jJ160", "HLT_j180_dispjet50_3d2p_dispjet50_1p_L1jJ160", "HLT_j180_dispjet90_x3d1p_L1jJ160", "HLT_j180_dispjet100_x3d1p_L1jJ160", "HLT_j180_2dispjet50_3d2p_L1J100", "HLT_j180_dispjet50_3d2p_dispjet50_1p_L1J100", "HLT_j180_dispjet90_x3d1p_L1J100", "HLT_j180_dispjet90_x3d1p_L1J100", "HLT_j180_dispjet100_x3d1p_L1J100", "HLT_j180_2dispjet50_2p_L1jJ160", "HLT_j180_2dispjet50_2p_L1J100"]
123  trig_dedx_Run3 = ["HLT_xe80_tcpufit_dedxtrk25_medium_L1XE50", "HLT_xe80_tcpufit_dedxtrk50_medium_L1XE50", "HLT_xe80_tcpufit_dedxtrk25_medium_L1XE55", "HLT_xe80_tcpufit_dedxtrk50_medium_L1XE55"]
124  trig_dt_Run3 = ["HLT_xe80_tcpufit_distrk20_tight_L1XE50", "HLT_xe80_tcpufit_distrk20_medium_L1XE50", "HLT_xe80_tcpufit_distrk20_tight_L1XE55", "HLT_xe80_tcpufit_distrk20_medium_L1XE55"]
125  trig_isohighpt_Run3 = ["HLT_xe80_tcpufit_isotrk100_medium_iaggrmedium_L1XE50", "HLT_xe80_tcpufit_isotrk120_medium_iaggrmedium_L1XE50", "HLT_xe80_tcpufit_isotrk120_medium_iaggrloose_L1XE50", "HLT_xe80_tcpufit_isotrk140_medium_iaggrmedium_L1XE50", "HLT_xe80_tcpufit_isotrk120_medium_iaggrmedium_L1jXE100", "HLT_xe50_tcpufit_isotrk120_medium_iaggrmedium_L1jXE100"]
126  trig_latemu = ["HLT_mu10_mgonly_L1LATEMU10_J50", "HLT_mu10_mgonly_L1LATEMU10_XE50", "HLT_mu10_mgonly_L1LATE-MU10_XE40", "HLT_mu10_lateMu_L1LATE-MU8F_jJ90", "HLT_mu10_lateMu_L1LATE-MU8F_jXE70"]
127  trig_calratio_dispjet_run3 = ["HLT_j30_CLEANllp_momemfrac006_calratio_L1jJ160","HLT_j30_CLEANllp_momemfrac006_calratiormbib_L1jJ160","HLT_j30_CLEANllp_momemfrac006_calratio_L1eTAU140","HLT_j30_CLEANllp_momemfrac006_calratiormbib_L1eTAU140","HLT_j30_CLEANllp_momemfrac006_calratio_L1eTAU80","HLT_j30_CLEANllp_momemfrac006_calratiormbib_L1eTAU80","HLT_j30_CLEANllp_momemfrac006_calratio_L1eTAU60_EMPTY","HLT_j30_CLEANllp_momemfrac006_calratiormbib_L1eTAU60_EMPTY","HLT_j30_CLEANllp_momemfrac006_calratio_L1eTAU60_UNPAIRED_ISO","HLT_j30_CLEANllp_momemfrac006_calratiormbib_L1eTAU60_UNPAIRED_ISO","HLT_j30_CLEANllp_momemfrac012_calratiovar_roiftf_preselj20emf12_L1jJ160"]
128  trig_multijet_ht_data22_23 = ["HLT_2j250c_j120c_pf_ftf_presel2j180XXj80_L1J100", "HLT_3j200_pf_ftf_L1J100", "HLT_4j115_pf_ftf_presel4j85_L13J50", "HLT_4j110_pf_ftf_presel4j85_L13J50", "HLT_4j120_L13J50", "HLT_5j70c_pf_ftf_presel5c50_L14J15", "HLT_5j65c_pf_ftf_presel5c55_L14J15", "HLT_5j85_pf_ftf_presel5j50_L14J15", "HLT_5j80_pf_ftf_presel5j50_L14J15", "HLT_5j80_pf_ftf_presel5j55_L14J15", "HLT_6j35c_020jvt_pf_ftf_presel6c25_L14J15", "HLT_6j55c_pf_ftf_presel6j40_L14J15", "HLT_6j70_pf_ftf_presel6j40_L14J15", "HLT_7j45_pf_ftf_presel7j30_L14J15", "HLT_10j40_pf_ftf_presel7j30_L14J15", "HLT_j0_HT1000_L1HT190-J15s5pETA21", "HLT_j0_HT1000_L1J100", "HLT_j0_HT1000_pf_ftf_preselcHT450_L1HT190-J15s5pETA21", "HLT_j0_HT940_pf_ftf_preselcHT450_L1HT190-J15s5pETA21", "HLT_j0_HT1000_pf_ftf_preselj180_L1HT190-J15s5pETA21", "HLT_j0_HT940_pf_ftf_preselj180_L1HT190-J15s5pETA21", "HLT_j0_HT1000_pf_ftf_preselj180_L1J100"]
129  trig_delayedjets_Run3 = ["HLT_2j100_2timeSig15_L1jJ90", "HLT_2j45_2j55_3timeSig15_L14jJ40", "HLT_j200_2timing15_L1jJ160", "HLT_j200_3timeSig15_L1jJ160", "HLT_j220_j150_2timing15_L1jJ160", "HLT_j250_2timing15_L1jJ160", "HLT_j250_3timeSig15_L1jJ160"]
130 
131  triggers = trig_el + trig_mu + trig_g + trig_elmu + trig_mug + trig_VBF_2018 + trig_EJ_Run3 + trig_run3_elmug + trig_dispjet_Run3 + trig_xe + trig_multijet_ht_data22_23 + trig_dedx_Run3 + trig_dt_Run3 + trig_isohighpt_Run3 + trig_latemu + trig_VBF_Run3 + trig_calratio_dispjet_run3 + trig_delayedjets_Run3
132 
133  #remove duplicates
134  triggers = sorted(list(set(triggers)))
135 
136  acc = ComponentAccumulator()
137  TriggerSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool
138  acc.addPublicTool(TriggerSkimmingTool(name,
139  TriggerListAND = [],
140  TriggerListOR = triggers,
141  **kwargs),
142  primary = True)
143  return acc
144 
145 

◆ LRTElectronLHSelectorsCfg()

def python.LLPToolsConfig.LRTElectronLHSelectorsCfg (   flags)

Definition at line 236 of file LLPToolsConfig.py.

236 def LRTElectronLHSelectorsCfg(flags):
237 
238  acc = ComponentAccumulator()
239 
240  from ElectronPhotonSelectorTools.AsgElectronLikelihoodToolsConfig import AsgElectronLikelihoodToolCfg
241  from ElectronPhotonSelectorTools.ElectronLikelihoodToolMapping import electronLHmenu
242  from ROOT import LikeEnum
243 
244  lhMenu = electronLHmenu.offlineMC21
245  if flags.GeoModel.Run is LHCPeriod.Run2:
246  lhMenu = electronLHmenu.offlineMC20
247 
248  ElectronLHSelectorVeryLooseNoPix = acc.popToolsAndMerge(AsgElectronLikelihoodToolCfg(
249  flags,
250  name="ElectronLHSelectorVeryLooseNoPix",
251  quality=LikeEnum.VeryLooseLLP,
252  menu=lhMenu)
253  )
254  ElectronLHSelectorVeryLooseNoPix.primaryVertexContainer = "PrimaryVertices"
255 
256  ElectronLHSelectorLooseNoPix = acc.popToolsAndMerge(AsgElectronLikelihoodToolCfg(
257  flags,
258  name="ElectronLHSelectorLooseNoPix",
259  quality=LikeEnum.LooseLLP,
260  menu=lhMenu)
261  )
262  ElectronLHSelectorLooseNoPix.primaryVertexContainer = "PrimaryVertices"
263 
264  ElectronLHSelectorMediumNoPix = acc.popToolsAndMerge(AsgElectronLikelihoodToolCfg(
265  flags,
266  name="ElectronLHSelectorMediumNoPix",
267  quality=LikeEnum.MediumLLP,
268  menu=lhMenu)
269  )
270  ElectronLHSelectorMediumNoPix.primaryVertexContainer = "PrimaryVertices"
271 
272  ElectronLHSelectorTightNoPix = acc.popToolsAndMerge(AsgElectronLikelihoodToolCfg(
273  flags,
274  name="ElectronLHSelectorTightNoPix",
275  quality=LikeEnum.TightLLP,
276  menu=lhMenu)
277  )
278  ElectronLHSelectorTightNoPix.primaryVertexContainer = "PrimaryVertices"
279 
280  from DerivationFrameworkEGamma.EGammaToolsConfig import EGElectronLikelihoodToolWrapperCfg
281 
282  # decorate electrons with the output of LH very loose
283  ElectronPassLHVeryLooseNoPix = acc.getPrimaryAndMerge(EGElectronLikelihoodToolWrapperCfg(
284  flags,
285  name="ElectronPassLHVeryLooseNoPix",
286  EGammaElectronLikelihoodTool=ElectronLHSelectorVeryLooseNoPix,
287  EGammaFudgeMCTool="",
288  CutType="",
289  StoreGateEntryName="DFCommonElectronsLHVeryLooseNoPix",
290  ContainerName="Electrons",
291  StoreTResult=True))
292 
293  ElectronPassLHVeryLooseNoPixLRT = acc.getPrimaryAndMerge(EGElectronLikelihoodToolWrapperCfg(
294  flags,
295  name="ElectronPassLHVeryLooseNoPixLRT",
296  EGammaElectronLikelihoodTool=ElectronLHSelectorVeryLooseNoPix,
297  EGammaFudgeMCTool="",
298  CutType="",
299  StoreGateEntryName="DFCommonElectronsLHVeryLooseNoPix",
300  ContainerName="LRTElectrons",
301  StoreTResult=True))
302 
303  # decorate electrons with the output of LH loose
304  ElectronPassLHLooseNoPix = acc.getPrimaryAndMerge(EGElectronLikelihoodToolWrapperCfg(
305  flags,
306  name="ElectronPassLHLooseNoPix",
307  EGammaElectronLikelihoodTool=ElectronLHSelectorLooseNoPix,
308  EGammaFudgeMCTool="",
309  CutType="",
310  StoreGateEntryName="DFCommonElectronsLHLooseNoPix",
311  ContainerName="Electrons",
312  StoreTResult=False))
313 
314  ElectronPassLHLooseNoPixLRT = acc.getPrimaryAndMerge(EGElectronLikelihoodToolWrapperCfg(
315  flags,
316  name="ElectronPassLHLooseNoPixLRT",
317  EGammaElectronLikelihoodTool=ElectronLHSelectorLooseNoPix,
318  EGammaFudgeMCTool="",
319  CutType="",
320  StoreGateEntryName="DFCommonElectronsLHLooseNoPix",
321  ContainerName="LRTElectrons",
322  StoreTResult=False))
323 
324  # decorate electrons with the output of LH medium
325  ElectronPassLHMediumNoPix = acc.getPrimaryAndMerge(EGElectronLikelihoodToolWrapperCfg(
326  flags,
327  name="ElectronPassLHMediumNoPix",
328  EGammaElectronLikelihoodTool=ElectronLHSelectorMediumNoPix,
329  EGammaFudgeMCTool="",
330  CutType="",
331  StoreGateEntryName="DFCommonElectronsLHMediumNoPix",
332  ContainerName="Electrons",
333  StoreTResult=False))
334 
335  ElectronPassLHMediumNoPixLRT = acc.getPrimaryAndMerge(EGElectronLikelihoodToolWrapperCfg(
336  flags,
337  name="ElectronPassLHMediumNoPixLRT",
338  EGammaElectronLikelihoodTool=ElectronLHSelectorMediumNoPix,
339  EGammaFudgeMCTool="",
340  CutType="",
341  StoreGateEntryName="DFCommonElectronsLHMediumNoPix",
342  ContainerName="LRTElectrons",
343  StoreTResult=False))
344 
345  # decorate electrons with the output of LH tight
346  ElectronPassLHTightNoPix = acc.getPrimaryAndMerge(EGElectronLikelihoodToolWrapperCfg(
347  flags,
348  name="ElectronPassLHTightNoPix",
349  EGammaElectronLikelihoodTool=ElectronLHSelectorTightNoPix,
350  EGammaFudgeMCTool="",
351  CutType="",
352  StoreGateEntryName="DFCommonElectronsLHTightNoPix",
353  ContainerName="Electrons",
354  StoreTResult=False))
355 
356  ElectronPassLHTightNoPixLRT = acc.getPrimaryAndMerge(EGElectronLikelihoodToolWrapperCfg(
357  flags,
358  name="ElectronPassLHTightNoPixLRT",
359  EGammaElectronLikelihoodTool=ElectronLHSelectorTightNoPix,
360  EGammaFudgeMCTool="",
361  CutType="",
362  StoreGateEntryName="DFCommonElectronsLHTightNoPix",
363  ContainerName="LRTElectrons",
364  StoreTResult=False))
365 
366  LRTEGAugmentationTools = [ElectronPassLHVeryLooseNoPix,
367  ElectronPassLHVeryLooseNoPixLRT,
368  ElectronPassLHLooseNoPix,
369  ElectronPassLHLooseNoPixLRT,
370  ElectronPassLHMediumNoPix,
371  ElectronPassLHMediumNoPixLRT,
372  ElectronPassLHTightNoPix,
373  ElectronPassLHTightNoPixLRT]
374 
375  acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
376  "LLP1EGammaLRTKernel",
377  AugmentationTools=LRTEGAugmentationTools
378  ))
379 
380  return acc
381 
382 # RecoverZeroPixelHitMuons setup

◆ LRTElectronMergerAlg()

def python.LLPToolsConfig.LRTElectronMergerAlg (   flags,
  name = "LLP1_ElectronLRTMergingAlg",
**  kwargs 
)

Definition at line 201 of file LLPToolsConfig.py.

201 def LRTElectronMergerAlg(flags, name="LLP1_ElectronLRTMergingAlg", **kwargs):
202  acc = ComponentAccumulator()
203  alg = CompFactory.CP.ElectronLRTMergingAlg(name, **kwargs)
204  acc.addEventAlgo(alg, primary=True)
205  return acc
206 
207 # Photon IsEM setup for LLP1

◆ LRTMuonMergerAlg()

def python.LLPToolsConfig.LRTMuonMergerAlg (   flags,
  name = "LLP1_MuonLRTMergingAlg",
**  kwargs 
)

Definition at line 182 of file LLPToolsConfig.py.

182 def LRTMuonMergerAlg(flags, name="LLP1_MuonLRTMergingAlg", **kwargs):
183  acc = ComponentAccumulator()
184  alg = CompFactory.CP.MuonLRTMergingAlg(name, **kwargs)
185  acc.addEventAlgo(alg, primary=True)
186  return acc
187 

◆ PhotonIsEMSelectorsCfg()

def python.LLPToolsConfig.PhotonIsEMSelectorsCfg (   flags)

Definition at line 208 of file LLPToolsConfig.py.

208 def PhotonIsEMSelectorsCfg(flags):
209  acc = ComponentAccumulator()
210  from ROOT import egammaPID
211  from ElectronPhotonSelectorTools.AsgPhotonIsEMSelectorsConfig import (
212  AsgPhotonIsEMSelectorCfg,
213  )
214 
215  isFullSim = flags.Sim.ISF.Simulator.isFullSim() if flags.Input.isMC else False
216 
217  if isFullSim:
218  from EGammaVariableCorrection.EGammaVariableCorrectionConfig import (
219  PhotonVariableCorrectionToolCfg,
220  )
221 
222  PhotonVariableCorrectionTool = acc.popToolsAndMerge(
224  acc.addPublicTool(PhotonVariableCorrectionTool)
225 
226  PhotonIsEMSelectorMedium = acc.popToolsAndMerge(
228  flags, name="PhotonIsEMSelectorMedium", quality=egammaPID.PhotonIDMedium
229  )
230  )
231  acc.addPublicTool(PhotonIsEMSelectorMedium)
232 
233  return acc
234 
235 # Electron LLH setup for LLP1

◆ PixeldEdxTrackParticleThinningCfg()

def python.LLPToolsConfig.PixeldEdxTrackParticleThinningCfg (   flags,
  name,
**  kwargs 
)
Confiure the lowpT + high dE/dx track thinniing tool

Definition at line 83 of file LLPToolsConfig.py.

83 def PixeldEdxTrackParticleThinningCfg(flags, name, **kwargs):
84  """Confiure the lowpT + high dE/dx track thinniing tool"""
85  acc = ComponentAccumulator()
86  PixeldEdxTrackParticleThinning = CompFactory.DerivationFramework.PixeldEdxTrackParticleThinning
87  acc.addPublicTool(PixeldEdxTrackParticleThinning(name, **kwargs),
88  primary = True)
89  return acc
90 

◆ RCJetSubstructureAugCfg()

def python.LLPToolsConfig.RCJetSubstructureAugCfg (   flags,
  name,
**  kwargs 
)
Configure the RC jet substructure computation tool

Definition at line 39 of file LLPToolsConfig.py.

39 def RCJetSubstructureAugCfg(flags, name, **kwargs):
40  """Configure the RC jet substructure computation tool"""
41  acc = ComponentAccumulator()
42  RCJetSubstructureAug = CompFactory.DerivationFramework.RCJetSubstructureAug
43  acc.addPublicTool(RCJetSubstructureAug(name, **kwargs),
44  primary = True)
45  return acc
46 
47 # tool to label leading/subleading jets

◆ RecoverZeroPixelHitMuonsCfg()

def python.LLPToolsConfig.RecoverZeroPixelHitMuonsCfg (   flags)

Definition at line 383 of file LLPToolsConfig.py.

383 def RecoverZeroPixelHitMuonsCfg(flags):
384  acc = ComponentAccumulator()
385  acc.addEventAlgo(CompFactory.RecoverZeroPixelHitMuons(name="RecoverZeroPixelHitMuons"))
386 
387  return acc

◆ TrackParametersKVUCfg()

def python.LLPToolsConfig.TrackParametersKVUCfg (   flags,
  name,
**  kwargs 
)
Confiure the vertex constraint tool

Definition at line 56 of file LLPToolsConfig.py.

56 def TrackParametersKVUCfg(flags, name, **kwargs):
57  """Confiure the vertex constraint tool"""
58  acc = ComponentAccumulator()
59 
60  if 'IPEstimator' not in kwargs:
61  from TrkConfig.TrkVertexFitterUtilsConfig import AtlasTrackToVertexIPEstimatorCfg
62  kwargs['IPEstimator'] = acc.popToolsAndMerge(AtlasTrackToVertexIPEstimatorCfg(flags))
63 
64  if 'VertexTrackUpdator' not in kwargs:
65  from TrkConfig.TrkVertexFitterUtilsConfig import KalmanVertexTrackUpdatorCfg
66  kwargs['VertexTrackUpdator']= acc.popToolsAndMerge(KalmanVertexTrackUpdatorCfg(flags,
67  SkipInvertibleCheck = True))
68  TrackParametersKVU = CompFactory.DerivationFramework.TrackParametersKVU
69  acc.addPublicTool(TrackParametersKVU(name, **kwargs),
70  primary = True)
71  return acc
72 
73 # Calo cell cluster decorator

◆ TrackParticleCaloCellDecoratorCfg()

def python.LLPToolsConfig.TrackParticleCaloCellDecoratorCfg (   flags,
  name,
**  kwargs 
)
Confiure the isolation decorator tool

Definition at line 74 of file LLPToolsConfig.py.

74 def TrackParticleCaloCellDecoratorCfg(flags, name, **kwargs):
75  """Confiure the isolation decorator tool"""
76  acc = ComponentAccumulator()
77  TrackParticleCaloCellDecorator = CompFactory.DerivationFramework.TrackParticleCaloCellDecorator
78  acc.addPublicTool(TrackParticleCaloCellDecorator(name, **kwargs),
79  primary = True)
80  return acc
81 
82 # high dE/dx and low pT track thinning

◆ VSITrackParticleThinningCfg()

def python.LLPToolsConfig.VSITrackParticleThinningCfg (   flags,
  name,
**  kwargs 
)
Configure the track particle merger tool

Definition at line 12 of file LLPToolsConfig.py.

12 def VSITrackParticleThinningCfg(flags, name, **kwargs):
13  """Configure the track particle merger tool"""
14  acc = ComponentAccumulator()
15  VSITrackParticleThinning = CompFactory.DerivationFramework.VSITrackParticleThinning
16  acc.addPublicTool(VSITrackParticleThinning(name, **kwargs),
17  primary = True)
18  return acc
19 
20 # Thinning for Std tracks in jets

◆ ZeroPixelHitMuonMergerAlgCfg()

def python.LLPToolsConfig.ZeroPixelHitMuonMergerAlgCfg (   flags,
  name = 'LLP1_MuonZPHMergingAlg',
**  kwargs 
)
Configure for merging ZeroPixelHitMuons with the LRTMerged muons for vertexing

Definition at line 188 of file LLPToolsConfig.py.

188 def ZeroPixelHitMuonMergerAlgCfg(flags, name='LLP1_MuonZPHMergingAlg', **kwargs):
189  """Configure for merging ZeroPixelHitMuons with the LRTMerged muons for vertexing"""
190 
191  kwargs.setdefault('InputMuonContainers', ['Muons', 'MuonsLRT', 'ZeroPixelHitMuons'])
192  kwargs.setdefault('OutputMuonLocation', 'StdWithLRTMuons_wZPH')
193  kwargs.setdefault("CreateViewCollection", True)
194 
195  acc = ComponentAccumulator()
196  alg = CompFactory.CP.MuonContainerMergingAlg(name, **kwargs)
197  acc.addEventAlgo(alg, primary=True)
198  return acc
199 
200 
python.LLPToolsConfig.RCJetSubstructureAugCfg
def RCJetSubstructureAugCfg(flags, name, **kwargs)
Definition: LLPToolsConfig.py:39
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename R::value_type > sorted(const R &r, PROJ proj={})
Helper function to create a sorted vector from an unsorted range.
python.LLPToolsConfig.LLP1TriggerSkimmingToolCfg
def LLP1TriggerSkimmingToolCfg(flags, name, TriggerListsHelper, **kwargs)
Definition: LLPToolsConfig.py:91
python.LLPToolsConfig.LRTMuonMergerAlg
def LRTMuonMergerAlg(flags, name="LLP1_MuonLRTMergingAlg", **kwargs)
Definition: LLPToolsConfig.py:182
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LLPToolsConfig.VSITrackParticleThinningCfg
def VSITrackParticleThinningCfg(flags, name, **kwargs)
Definition: LLPToolsConfig.py:12
python.TrkVertexFitterUtilsConfig.AtlasTrackToVertexIPEstimatorCfg
def AtlasTrackToVertexIPEstimatorCfg(flags, name='AtlasTrackToVertexIPEstimator', **kwargs)
Definition: TrkVertexFitterUtilsConfig.py:63
python.LLPToolsConfig.TrackParametersKVUCfg
def TrackParametersKVUCfg(flags, name, **kwargs)
Definition: LLPToolsConfig.py:56
python.LLPToolsConfig.ZeroPixelHitMuonMergerAlgCfg
def ZeroPixelHitMuonMergerAlgCfg(flags, name='LLP1_MuonZPHMergingAlg', **kwargs)
Definition: LLPToolsConfig.py:188
python.AsgElectronLikelihoodToolsConfig.AsgElectronLikelihoodToolCfg
def AsgElectronLikelihoodToolCfg(flag, name, quality, menu=electronLHmenu.offlineMC21)
Definition: AsgElectronLikelihoodToolsConfig.py:13
python.LLPToolsConfig.TrackParticleCaloCellDecoratorCfg
def TrackParticleCaloCellDecoratorCfg(flags, name, **kwargs)
Definition: LLPToolsConfig.py:74
python.LLPToolsConfig.LRTElectronLHSelectorsCfg
def LRTElectronLHSelectorsCfg(flags)
Definition: LLPToolsConfig.py:236
python.TrkVertexFitterUtilsConfig.KalmanVertexTrackUpdatorCfg
def KalmanVertexTrackUpdatorCfg(flags, name='KalmanVertexTrackUpdator', **kwargs)
Definition: TrkVertexFitterUtilsConfig.py:111
python.LLPToolsConfig.LRTElectronMergerAlg
def LRTElectronMergerAlg(flags, name="LLP1_ElectronLRTMergingAlg", **kwargs)
Definition: LLPToolsConfig.py:201
TriggerMatchingToolConfig.TriggerMatchingToolCfg
def TriggerMatchingToolCfg(ConfigFlags, name, UseTypedScoringTool=False, **kwargs)
Definition: PhysicsAnalysis/DerivationFramework/DerivationFrameworkTrigger/python/TriggerMatchingToolConfig.py:19
python.LLPToolsConfig.RecoverZeroPixelHitMuonsCfg
def RecoverZeroPixelHitMuonsCfg(flags)
Definition: LLPToolsConfig.py:383
python.LLPToolsConfig.JetTrackParticleThinningCfg
def JetTrackParticleThinningCfg(flags, name, **kwargs)
Definition: LLPToolsConfig.py:21
python.LLPToolsConfig.JetLargeD0TrackParticleThinningCfg
def JetLargeD0TrackParticleThinningCfg(flags, name, **kwargs)
Definition: LLPToolsConfig.py:30
python.EGammaVariableCorrectionConfig.PhotonVariableCorrectionToolCfg
def PhotonVariableCorrectionToolCfg(flags, name="PhotonVariableCorrectionTool", **kwargs)
Definition: EGammaVariableCorrectionConfig.py:15
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
python.AsgPhotonIsEMSelectorsConfig.AsgPhotonIsEMSelectorCfg
def AsgPhotonIsEMSelectorCfg(flags, name, quality, menu=photonPIDmenu.menuCurrentCuts, trigger=False)
Definition: AsgPhotonIsEMSelectorsConfig.py:15
CxxUtils::set
constexpr std::enable_if_t< is_bitmask_v< E >, E & > set(E &lhs, E rhs)
Convenience function to set bits in a class enum bitmask.
Definition: bitmask.h:232
python.EGammaToolsConfig.EGElectronLikelihoodToolWrapperCfg
def EGElectronLikelihoodToolWrapperCfg(flags, name, **kwargs)
Definition: EGammaToolsConfig.py:31
python.LLPToolsConfig.PhotonIsEMSelectorsCfg
def PhotonIsEMSelectorsCfg(flags)
Definition: LLPToolsConfig.py:208
python.LLPToolsConfig.AugmentationToolLeadingJetsCfg
def AugmentationToolLeadingJetsCfg(flags)
Definition: LLPToolsConfig.py:48
python.LLPToolsConfig.PixeldEdxTrackParticleThinningCfg
def PixeldEdxTrackParticleThinningCfg(flags, name, **kwargs)
Definition: LLPToolsConfig.py:83
python.LLPToolsConfig.LLP1TriggerMatchingToolRun2Cfg
def LLP1TriggerMatchingToolRun2Cfg(flags, name, **kwargs)
Definition: LLPToolsConfig.py:146