ATLAS Offline Software
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 618 of file TrigMuonHypoConfig.py.

Member Function Documentation

◆ ConfigurationHypoTool()

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

Definition at line 622 of file TrigMuonHypoConfig.py.

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

Member Data Documentation

◆ log

TrigMuonHypoConfig.TrigmuCombHypoConfig.log
static

Definition at line 620 of file TrigMuonHypoConfig.py.


The documentation for this class was generated from the following file:
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24