Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Static Public Attributes | List of all members
TrigMuonHypoConfig.TrigmuCombHypoConfig Class Reference
Inheritance diagram for TrigMuonHypoConfig.TrigmuCombHypoConfig:
Collaboration diagram for TrigMuonHypoConfig.TrigmuCombHypoConfig:

Public Member Functions

def ConfigurationHypoTool (self, thresholdHLT, thresholds, tight, acceptAll, domuCombTag)
 

Static Public Attributes

 log
 

Detailed Description

Definition at line 628 of file TrigMuonHypoConfig.py.

Member Function Documentation

◆ ConfigurationHypoTool()

def TrigMuonHypoConfig.TrigmuCombHypoConfig.ConfigurationHypoTool (   self,
  thresholdHLT,
  thresholds,
  tight,
  acceptAll,
  domuCombTag 
)

Definition at line 632 of file TrigMuonHypoConfig.py.

632  def ConfigurationHypoTool( self, thresholdHLT, thresholds, tight, acceptAll, domuCombTag ):
633 
634  tool = CompFactory.TrigmuCombHypoTool( thresholdHLT )
635  tool.AcceptAll = acceptAll
636 
637  nt = len(thresholds)
638  log.debug('Set %d thresholds', nt)
639  tool.PtBins = [ [ 0.0, 2.5 ] ] * nt
640  tool.PtThresholds = [ [ 5.83 * GeV ] ] * nt
641 
642  for th, thvalue in enumerate(thresholds):
643  if thvalue == 'passthrough':
644  tool.AcceptAll = True
645  tool.PtBins[th] = [-10000.,10000.]
646  tool.PtThresholds[th] = [ -1. * GeV ]
647  else:
648  # 15.03.2022: original flow, commented to allow use of the new HLT algo thresholds
649  #if int(thvalue) >= 24:
650  # thvaluename = '22GeV_v15a'
651  #else:
652  # thvaluename = thvalue + 'GeV_v15a'
653  if domuCombTag:
654  thvaluename = thvalue + 'GeV_v16'
655  else:
656  thvaluename = thvalue + 'GeV_v15a'
657 
658  if int(thvalue)==3:
659  thvaluename = thvalue + 'GeV_v22a'
660  log.debug('Number of threshold = %d, Value of threshold = %s', th, thvaluename)
661 
662  try:
663  values = muCombThresholds[thvaluename]
664  tool.PtBins[th] = values[0]
665  tool.PtThresholds[th] = [ x * GeV for x in values[1] ]
666  if (tight is True):
667  tool.ApplyPikCuts = True
668  tool.MaxPtToApplyPik = 25.
669  tool.MaxChi2IDPik = 3.5
670  except LookupError:
671  raise Exception('MuComb Hypo Misconfigured: threshold %r not supported' % thvaluename)
672 
673  return tool
674 

Member Data Documentation

◆ log

TrigMuonHypoConfig.TrigmuCombHypoConfig.log
static

Definition at line 630 of file TrigMuonHypoConfig.py.


The documentation for this class was generated from the following file:
python.CaloAddPedShiftConfig.int
int
Definition: CaloAddPedShiftConfig.py:45