Loading [MathJax]/jax/input/TeX/config.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder Class Reference
Collaboration diagram for python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder:

Public Member Functions

def __init__ (self, helper)
 
def configureMode (self)
 
def configure (self)
 
def getTriggerInfo (self, str trigger, use_thresholds=True)
 
def configureTriggers (self)
 
def configureAlgorithmSingle (self)
 
def configureAlgorithmDiTau (self)
 
def configureAlgorithmTagAndProbe (self)
 
def configureAlgorithmTruth (self)
 
def configureAlgorithmL1 (self)
 
def bookHLTEffHistograms (self, mon_alg, base_path, trigger, n_prong)
 
def bookIDInputScalar (self, mon_alg, base_path, trigger, n_prong, online)
 
def bookIDInputTrack (self, mon_alg, base_path, trigger, online)
 
def bookIDInputCluster (self, mon_alg, base_path, trigger, online)
 
def bookIDScores (self, mon_alg, base_path, trigger, n_prong, online)
 
def bookBasicVars (self, mon_alg, base_path, trigger, n_prong, online)
 
def bookDiTauHLTEffHistograms (self, mon_alg, base_path, trigger)
 
def bookDiTauVars (self, mon_alg, base_path, trigger)
 
def bookTAndPHLTEffHistograms (self, mon_alg, base_path, trigger)
 
def bookTAndPVars (self, mon_alg, base_path, trigger)
 
def bookTruthEfficiency (self, mon_alg, base_path, trigger, n_prong)
 
def bookTruthVars (self, mon_alg, base_path, trigger, n_prong)
 
def bookL1EffHistograms (self, mon_alg, base_path, trigger, n_prong)
 
def bookL1Vars (self, mon_alg, base_path, trigger)
 
def getCustomPtBinning (self, trigger, fine=False)
 

Public Attributes

 logger
 
 base_path
 
 helper
 
 L1_Phase1_thresholds
 
 L1_Phase1_threshold_mappings
 
 activate_single_tau
 
 mon_alg_single
 
 HLT_single_items
 
 activate_ditau
 
 mon_alg_ditau
 
 HLT_ditau_items
 
 activate_tag_and_probe
 
 mon_alg_tag_and_probe
 
 HLT_tag_and_probe_items
 
 activate_truth
 
 mon_alg_truth
 
 HLT_truth_items
 
 activate_L1
 
 mon_alg_L1
 
 L1_items
 
 is_mc
 
 data_type
 
 mon_alg_single_no_offline
 
 mon_alg_L1_no_offline
 
 mon_alg_L1_alt
 

Static Public Attributes

 do_single_tau
 
 do_L1
 
 do_ditau
 
 do_tag_and_probe
 
 do_truth
 
 do_total_efficiency
 
 require_offline_taus
 
 do_duplicate_var_plots_without_offline_taus
 
 hlt_tauid_scores
 
 offline_tauid_scores
 
 do_alternative_eTAU_monitoring
 
 maxsize
 

Private Member Functions

def _L1_Phase1_thresholds_stdmap (self)
 
def _L1_Phase1_threshold_mappings_stdmap (self)
 
def _configureAlgorithm (self, algorithm_factory, name)
 

Detailed Description

Definition at line 8 of file TrigTauMonitoringConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.__init__ (   self,
  helper 
)

Definition at line 60 of file TrigTauMonitoringConfig.py.

60  def __init__(self, helper):
61  from AthenaCommon.Logging import logging
62  self.logger = logging.getLogger('TrigTauMonAlgBuilder')
63 
64  self.base_path = 'HLT/TauMon'
65  self.helper = helper
66 
67  # Threshold information for all Phase 1 items
68  self.L1_Phase1_thresholds = {} # E_T cuts
69  self.L1_Phase1_threshold_mappings = {} # thresholdMappings bit masks
70 
71  # Monitoring algorithms, and lists of items to monitor (will be filled on configure())
72  self.activate_single_tau = self.do_single_tau
73  self.mon_alg_single = None
74  self.HLT_single_items = []
75 
76  self.activate_ditau = self.do_ditau
77  self.mon_alg_ditau = None
78  self.HLT_ditau_items = []
79 
80  self.activate_tag_and_probe = self.do_tag_and_probe
81  self.mon_alg_tag_and_probe = None
82  self.HLT_tag_and_probe_items = []
83 
84  self.activate_truth = self.do_truth
85  self.mon_alg_truth = None
86  self.HLT_truth_items = []
87 
88  self.activate_L1 = self.do_L1
89  self.mon_alg_L1 = None
90  self.L1_items = []
91 
92  self.configureMode()
93 
94 

Member Function Documentation

◆ _configureAlgorithm()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder._configureAlgorithm (   self,
  algorithm_factory,
  name 
)
private

Definition at line 242 of file TrigTauMonitoringConfig.py.

242  def _configureAlgorithm(self, algorithm_factory, name):
243  self.logger.info(f'Creating the monitoring algorithm: {name}')
244  mon_alg = self.helper.addAlgorithm(algorithm_factory, name)
245  mon_alg.L1Phase1Thresholds = self.L1_Phase1_thresholds
246  mon_alg.L1Phase1ThresholdPatterns = self.L1_Phase1_threshold_mappings
247  return mon_alg
248 
249 

◆ _L1_Phase1_threshold_mappings_stdmap()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder._L1_Phase1_threshold_mappings_stdmap (   self)
private

Definition at line 145 of file TrigTauMonitoringConfig.py.

145  def _L1_Phase1_threshold_mappings_stdmap(self):
146  import ROOT
147  m = ROOT.std.map[ROOT.std.string, ROOT.uint64_t]()
148  for item, thr in self.L1_Phase1_threshold_mappings.items():
149  m[item] = thr
150  return m
151 

◆ _L1_Phase1_thresholds_stdmap()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder._L1_Phase1_thresholds_stdmap (   self)
private

Definition at line 137 of file TrigTauMonitoringConfig.py.

137  def _L1_Phase1_thresholds_stdmap(self):
138  import ROOT
139  m = ROOT.std.map[ROOT.std.string, ROOT.float]()
140  for item, thr in self.L1_Phase1_thresholds.items():
141  m[item] = thr
142  return m
143 

◆ bookBasicVars()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookBasicVars (   self,
  mon_alg,
  base_path,
  trigger,
  n_prong,
  online 
)

Definition at line 506 of file TrigTauMonitoringConfig.py.

506  def bookBasicVars(self, mon_alg, base_path, trigger, n_prong, online):
507  type_str = 'HLT' if online else 'Offline'
508  mon_group_name = f'{trigger}_{type_str}_basicVars_{n_prong}'
509  mon_group_path = f'{base_path}/basicVars/{trigger}/{type_str}_{n_prong}'
510  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
511 
512  binning = self.getCustomPtBinning(trigger, fine=True)
513 
514  mon_group.defineHistogram('Pt', title=f'{type_str} p_{{T}}; p_{{T}} [GeV]; Events', xbins=binning, opt='kAlwaysCreate')
515  mon_group.defineHistogram('Eta', title=f'{type_str} #eta; #eta; Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
516  mon_group.defineHistogram('Phi', title=f'{type_str} #phi; #phi; Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
517  mon_group.defineHistogram('nTrack', title=f'{type_str} Number of tracks; N_{{track}}; Events', xbins=10, xmin=0, xmax=10, opt='kAlwaysCreate')
518  mon_group.defineHistogram('Eta,Phi', type='TH2F', title=f'{type_str} #eta vs #phi; #eta; #phi', xbins=26, xmin=-2.6, xmax=2.6, ybins=16, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
519  mon_group.defineHistogram('Pt,Phi', type='TH2F', title=f'{type_str} p_{{T}} vs #phi; p_{{T}} [GeV]; #phi', xbins=binning, ybins=16, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
520  mon_group.defineHistogram('Pt,Eta', type='TH2F', title=f'{type_str} p_{{T}} vs #eta; p_{{T}} [GeV]; #eta', xbins=binning, ybins=26, ymin=-2.6, ymax=2.6, opt='kAlwaysCreate')
521  mon_group.defineHistogram('nIsoTrack', title=f'{type_str} Number of isolation tracks; N_{{track}}^{{iso}}; Events', xbins=10, xmin=0, xmax=10, opt='kAlwaysCreate')
522  mon_group.defineHistogram('averageMu', title=f'{type_str} Average #mu; #LT#mu$GT; Events', xbins=20, xmin=0, xmax=80, opt='kAlwaysCreate')
523  mon_group.defineHistogram('TauVertexX', title=f'{type_str} Tau Vertex X; x [mm]; Events', xbins=100, xmin=-1, xmax=1, opt='kAlwaysCreate')
524  mon_group.defineHistogram('TauVertexY', title=f'{type_str} Tau Vertex Y; y [mm]; Events', xbins=100, xmin=-2, xmax=0, opt='kAlwaysCreate')
525  mon_group.defineHistogram('TauVertexZ', title=f'{type_str} Tau Vertex Z; z [mm]; Events', xbins=120, xmin=-120, xmax=120, opt='kAlwaysCreate')
526 
527 

◆ bookDiTauHLTEffHistograms()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookDiTauHLTEffHistograms (   self,
  mon_alg,
  base_path,
  trigger 
)

Definition at line 528 of file TrigTauMonitoringConfig.py.

528  def bookDiTauHLTEffHistograms(self, mon_alg, base_path, trigger):
529  mon_group_name = f'{trigger}_DiTauHLT_Efficiency'
530  mon_group_path = f'{base_path}/DiTauHLT_Efficiency/{trigger}/DiTauHLT_Efficiency'
531  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
532 
533  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, eff='HLT', high_pt=False):
534  pass_flag = f'{eff}_pass'
535  sfx = ''
536 
537  if high_pt:
538  pass_flag += '_highPt'
539  sfx += '_highPt'
540  xlabel += ' (p_{T}^{1,2} > p_{T}^{thr 1,2} + 20 GeV)'
541 
542  mon_group.defineHistogram(f'{pass_flag},{xvariable};EffDiTau{eff}_{xvariable}{sfx}_wrt_Offline',
543  title=f'DiTau {eff} Efficiency {trigger};{xlabel};Efficiency',
544  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax, opt='kAlwaysCreate')
545 
546  eff_list = ['HLT'] + (['Total'] if self.do_total_efficiency else [])
547  for eff in eff_list:
548  defineEachStepHistograms('dR', '#Delta R(#tau,#tau)', 20, 0, 4, eff)
549  defineEachStepHistograms('dEta', '#Delta#eta(#tau,#tau)', 20, 0, 4, eff)
550  defineEachStepHistograms('dPhi', '#Delta#phi(#tau,#tau)', 8, -3.2, 3.2, eff)
551 
552  defineEachStepHistograms('dR', '#Delta R(#tau,#tau)', 20, 0, 4, eff, high_pt=True)
553  defineEachStepHistograms('dEta', '#Delta#eta(#tau,#tau)', 20, 0, 4, eff, high_pt=True)
554  defineEachStepHistograms('dPhi', '#Delta#phi(#tau,#tau)', 8, -3.2, 3.2, eff, high_pt=True)
555  defineEachStepHistograms('averageMu', '#LT#mu#GT', 10, 0, 80, eff)
556 
557  # Save quantities in TTree for offline analysis
558  mon_group.defineTree('dR,dEta,dPhi,averageMu,HLT_pass;DiTauHLTEffTree',
559  treedef='dR/F:dEta/F:dPhi/F:averageMu/F:HLT_pass/I')
560 
561 

◆ bookDiTauVars()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookDiTauVars (   self,
  mon_alg,
  base_path,
  trigger 
)

Definition at line 562 of file TrigTauMonitoringConfig.py.

562  def bookDiTauVars(self, mon_alg, base_path, trigger):
563  mon_group_name = f'{trigger}_DiTauVars'
564  mon_group_path = f'{base_path}/DiTauVars/{trigger}'
565  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
566 
567  mon_group.defineHistogram('leadHLTEt,subleadHLTEt', type='TH2F', title='p_{T}^{lead} vs p_{T}^{sublead}; p_{T}^{lead} [GeV]; p_{T}^{sublead} [GeV]',
568  xbins=50, xmin=0, xmax=250, ybins=50, ymin=0, ymax=250, opt='kAlwaysCreate')
569  mon_group.defineHistogram('leadHLTEta,subleadHLTEta', type='TH2F', title='#eta_{lead} vs #eta_{sublead}; #eta_{lead}; #eta_{sublead}',
570  xbins=26, xmin=-2.6, xmax=2.6, ybins=26, ymin=-2.6, ymax=2.6, opt='kAlwaysCreate')
571  mon_group.defineHistogram('leadHLTPhi,subleadHLTPhi', type='TH2F', title='#phi_{lead} vs #phi_{sublead}; #phi_{lead}; #phi_{sublead}',
572  xbins=16, xmin=-3.2, xmax=3.2, ybins=16, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
573  mon_group.defineHistogram('dR', title='#Delta R(#tau,#tau); #Delta R(#tau,#tau); Events', xbins=40, xmin=0, xmax=4, opt='kAlwaysCreate')
574  mon_group.defineHistogram('dEta', title='#Delta#eta(#tau,#tau); #Delta#eta(#tau,#tau); Events', xbins=40, xmin=0, xmax=4, opt='kAlwaysCreate')
575  mon_group.defineHistogram('dPhi', title='#Delta#phi(#tau,#tau); #Delta#phi(#tau,#tau); Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
576 
577  mon_group.defineHistogram('Pt', title='p_{T}(#tau,#tau); p_{T} [GeV]; Events', xbins=50, xmin=0, xmax=250, opt='kAlwaysCreate')
578  mon_group.defineHistogram('Eta', title='#eta(#tau,#tau); #eta(#tau,#tau); Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
579  mon_group.defineHistogram('Phi', title='#phi(#tau,#tau); #phi(#tau,#tau); Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
580  mon_group.defineHistogram('M', title='m(#tau,#tau); m_{#tau,#tau}; Events', xbins=50, xmin=0, xmax=250, opt='kAlwaysCreate')
581  mon_group.defineHistogram('dPt', title='#Delta p_{T}(#tau, #tau); p_{T} [GeV]; Events', xbins=20, xmin=0, xmax=200, opt='kAlwaysCreate')
582 
583  mon_group.defineTree('leadHLTEt,subleadHLTEt,leadHLTEta,subleadHLTEta,leadHLTPhi,subleadHLTPhi,dR,dEta,dPhi,Pt,Eta,Phi,M,dPt;DiTauVarsTree',
584  treedef='leadHLTEt/F:subleadHLTEt/F:leadHLTEta/F:subleadHLTEta/F:leadHLTPhi/F:subleadHLTPhi/F:dR/F:dEta/F:dPhi/F:Pt/F:Eta/F:Phi/F:M/F:dPt/F')
585 
586 

◆ bookHLTEffHistograms()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookHLTEffHistograms (   self,
  mon_alg,
  base_path,
  trigger,
  n_prong 
)

Definition at line 381 of file TrigTauMonitoringConfig.py.

381  def bookHLTEffHistograms(self, mon_alg, base_path, trigger, n_prong):
382  mon_group_name = f'{trigger}_HLT_Efficiency_{n_prong}'
383  mon_group_path = f'{base_path}/HLT_Efficiency/{trigger}/HLT_Efficiency_{n_prong}'
384  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
385 
386  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, eff='HLT', high_pt=False, coarse=False):
387  pass_flag = f'{eff}_pass'
388  sfx = ''
389 
390  if high_pt:
391  pass_flag += '_highPt'
392  sfx += '_highPt'
393  xlabel += ' (p_{T} > p_{T}^{thr} + 20 GeV)'
394  elif coarse: sfx = '_coarse'
395 
396  mon_group.defineHistogram(f'{pass_flag},{xvariable};Eff{eff}_{xvariable}{sfx}_wrt_Offline',
397  title=f'{eff} Efficiency {trigger} {n_prong}; {xlabel}; Efficiency',
398  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax, opt='kAlwaysCreate')
399 
400  coarse_binning = self.getCustomPtBinning(trigger)
401 
402  eff_list = ['HLT'] + (['Total'] if self.do_total_efficiency else [])
403  for eff in eff_list:
404  defineEachStepHistograms('tauPt', 'p_{T} [GeV]', 60, 0.0, 300., eff)
405  defineEachStepHistograms('tauPt', 'p_{T} [GeV]', coarse_binning, coarse_binning[0], coarse_binning[-1], eff, coarse=True)
406  defineEachStepHistograms('tauEta', '#eta', 13, -2.6, 2.6, eff)
407  defineEachStepHistograms('tauPhi', '#phi', 16, -3.2, 3.2, eff)
408  defineEachStepHistograms('tauEta', '#eta', 13, -2.6, 2.6, eff, high_pt=True)
409  defineEachStepHistograms('tauPhi', '#phi', 16, -3.2, 3.2, eff, high_pt=True)
410  defineEachStepHistograms('averageMu', '#LT#mu#GT', 10, 0, 80, eff)
411 
412  # Save quantities in TTree for offline analysis
413  mon_group.defineTree('tauPt,tauEta,tauPhi,averageMu,HLT_pass;HLTEffTree',
414  treedef='tauPt/F:tauEta/F:tauPhi/F:averageMu/F:HLT_pass/I')
415 
416 

◆ bookIDInputCluster()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookIDInputCluster (   self,
  mon_alg,
  base_path,
  trigger,
  online 
)

Definition at line 459 of file TrigTauMonitoringConfig.py.

459  def bookIDInputCluster(self, mon_alg, base_path, trigger, online):
460  type_str = 'HLT' if online else 'Offline'
461  mon_group_name = f'{trigger}_ID_{type_str}_InputCluster'
462  mon_group_path = f'{base_path}/TauIDVars/InputCluster/{trigger}/{type_str}'
463  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
464 
465  mon_group.defineHistogram('n_cluster', title='Number of clusters; N_{cluster}; Events', xbins=30, xmin=0, xmax=30, opt='kAlwaysCreate')
466  mon_group.defineHistogram('cluster_et_log', title='cluster_et_log; cluster_et_log; Events', xbins=30, xmin=0, xmax=6, opt='kAlwaysCreate')
467  mon_group.defineHistogram('cluster_pt_jetseed_log', title='cluster_pt_jetseed_log; cluster_pt_jetseed_log; Events', xbins=50, xmin=2, xmax=7, opt='kAlwaysCreate')
468  mon_group.defineHistogram('cluster_eta', title='Cluster #eta; #eta; Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
469  mon_group.defineHistogram('cluster_phi', title='Cluster #phi; #phi; Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
470  mon_group.defineHistogram('cluster_dEta', title='Cluster #Delta#eta; #Delta#eta; Events', xbins=100, xmin=-0.5, xmax=0.5, opt='kAlwaysCreate')
471  mon_group.defineHistogram('cluster_dPhi', title='Cluster #Delta#phi; #Delta#phi; Events', xbins=100, xmin=-0.5, xmax=0.5, opt='kAlwaysCreate')
472  mon_group.defineHistogram('cluster_SECOND_R_log10', title='cluster_SECOND_R_log10; cluster_SECOND_R_log10; Events', xbins=50, xmin=-3, xmax=7, opt='kAlwaysCreate')
473  mon_group.defineHistogram('cluster_SECOND_LAMBDA_log10', title='cluster_SECOND_LAMBDA_log10; cluster_SECOND_LAMBDA_log10; Events', xbins=50, xmin=-3, xmax=7, opt='kAlwaysCreate')
474  mon_group.defineHistogram('cluster_CENTER_LAMBDA_log10', title='cluster_CENTER_LAMBDA_log10; cluster_CENTER_LAMBDA_log10; Events', xbins=50, xmin=-2, xmax=5, opt='kAlwaysCreate')
475  mon_group.defineHistogram('cluster_eta,cluster_phi', type='TH2F', title='Cluster #eta vs #phi; #eta; #phi', xbins=26, xmin=-2.6, xmax=2.6, ybins=16, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
476  mon_group.defineHistogram('cluster_dEta,cluster_dPhi', type='TH2F', title='Cluster #Delta#eta vs #Delta#phi; #Delta#eta; #Delta#phi', xbins=100, xmin=-0.5, xmax=0.5, ybins=100, ymin=-0.5, ymax=0.5, opt='kAlwaysCreate')
477 
478 

◆ bookIDInputScalar()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookIDInputScalar (   self,
  mon_alg,
  base_path,
  trigger,
  n_prong,
  online 
)

Definition at line 417 of file TrigTauMonitoringConfig.py.

417  def bookIDInputScalar(self, mon_alg, base_path, trigger, n_prong, online):
418  type_str = 'HLT' if online else 'Offline'
419  mon_group_name = f'{trigger}_ID_{type_str}_InputScalar_{n_prong}'
420  mon_group_path = f'{base_path}/TauIDVars/InputScalar_{n_prong}/{trigger}/{type_str}'
421  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
422 
423  mon_group.defineHistogram('centFrac', title=f'Centrality Fraction ({n_prong}); centFrac; Events', xbins=50, xmin=-0.05, xmax=1.2, opt='kAlwaysCreate')
424  mon_group.defineHistogram('etOverPtLeadTrk', title=f'etOverPtLeadTrk log ({n_prong}); etOverPtLeadTrk_log; Events', xbins=60, xmin=-3, xmax=3, opt='kAlwaysCreate')
425  mon_group.defineHistogram('dRmax', title=f'max dR of associated tracks ({n_prong}); dRmax; Events', xbins=50, xmin=-0.1, xmax=0.3, opt='kAlwaysCreate')
426  mon_group.defineHistogram('absipSigLeadTrk', title=f'AbsIpSigLeadTrk ({n_prong}); absipSigLeadTrk; Events', xbins=25, xmin=0.0, xmax=20.0, opt='kAlwaysCreate')
427  mon_group.defineHistogram('sumPtTrkFrac', title=f'SumPtTrkFrac ({n_prong}); SumPtTrkFrac; Events', xbins=50, xmin=-0.5, xmax=1.1, opt='kAlwaysCreate')
428  mon_group.defineHistogram('emPOverTrkSysP', title=f'EMPOverTrkSysP log ({n_prong}); EMPOverTrkSysP_log; Events', xbins=50, xmin=-5, xmax=3, opt='kAlwaysCreate')
429  mon_group.defineHistogram('ptRatioEflowApprox', title=f'ptRatioEflowApprox ({n_prong}); ptRatioEflowApprox; Events', xbins=50, xmin=0.0, xmax=2.0, opt='kAlwaysCreate')
430  mon_group.defineHistogram('mEflowApprox', title=f'mEflowApprox log ({n_prong}); mEflowApprox_log; Events', xbins=50, xmin=0, xmax=5, opt='kAlwaysCreate')
431  mon_group.defineHistogram('ptDetectorAxis', title=f'ptDetectorAxis log ({n_prong}); ptDetectorAxis_log; Events', xbins=50, xmin=0, xmax=5, opt='kAlwaysCreate')
432  if n_prong == 'MP' or n_prong == '3P':
433  mon_group.defineHistogram('massTrkSys', title=f'massTrkSys log ({n_prong}); massTrkSys_log; Events', xbins=50, xmin=0, xmax=3, opt='kAlwaysCreate')
434  mon_group.defineHistogram('trFlightPathSig', title=f'trFlightPathSig ({n_prong}); trFlightPathSig; Events', xbins=100, xmin=-20, xmax=40, opt='kAlwaysCreate')
435 
436 

◆ bookIDInputTrack()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookIDInputTrack (   self,
  mon_alg,
  base_path,
  trigger,
  online 
)

Definition at line 437 of file TrigTauMonitoringConfig.py.

437  def bookIDInputTrack(self, mon_alg, base_path, trigger, online):
438  type_str = 'HLT' if online else 'Offline'
439  mon_group_name = f'{trigger}_ID_{type_str}_InputTrack'
440  mon_group_path = f'{base_path}/TauIDVars/InputTrack/{trigger}/{type_str}'
441  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
442 
443  mon_group.defineHistogram('n_track', title='Number of tracks; N_{track}; Events', xbins=15, xmin=0, xmax=15, opt='kAlwaysCreate')
444  mon_group.defineHistogram('track_pt_log', title='track_pt_log; track_pt_log; Events', xbins=20, xmin=2, xmax=7, opt='kAlwaysCreate')
445  mon_group.defineHistogram('track_pt_jetseed_log', title='track_pt_jetseed_log; track_pt_jetseed_log; Events', xbins=50, xmin=2, xmax=7, opt='kAlwaysCreate')
446  mon_group.defineHistogram('track_eta', title='Track #eta; #eta; Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
447  mon_group.defineHistogram('track_phi', title='Track #phi; #phi; Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
448  mon_group.defineHistogram('track_dEta', title='Track #Delta#eta; #Delta#eta; Events', xbins=100, xmin=-0.5, xmax=0.5, opt='kAlwaysCreate')
449  mon_group.defineHistogram('track_dPhi', title='Track #Delta#phi; #Delta#phi; Events', xbins=100, xmin=-0.5, xmax=0.5, opt='kAlwaysCreate')
450  mon_group.defineHistogram('track_d0_abs_log', title='track_d0_abs_log; track_d0_abs_log; Events', xbins=50, xmin=-7, xmax=2, opt='kAlwaysCreate')
451  mon_group.defineHistogram('track_z0sinthetaTJVA_abs_log', title='track_z0sinthetaTJVA_abs_log; track_z0sinthetaTJVA_abs_log; Events', xbins=50, xmin=-10, xmax=4, opt='kAlwaysCreate')
452  mon_group.defineHistogram('track_nIBLHitsAndExp', title='track_nIBLHitsAndExp; track_nIBLHitsAndExp; Events', xbins=3, xmin=0, xmax=3, opt='kAlwaysCreate')
453  mon_group.defineHistogram('track_nPixelHitsPlusDeadSensors', title='track_nPixelHitsPlusDeadSensors; track_nPixelHitsPlusDeadSensors; Events', xbins=11, xmin=0, xmax=11, opt='kAlwaysCreate')
454  mon_group.defineHistogram('track_nSCTHitsPlusDeadSensors', title='track_nSCTHitsPlusDeadSensors; track_nSCTHitsPlusDeadSensors; Events', xbins=20, xmin=0, xmax=20, opt='kAlwaysCreate')
455  mon_group.defineHistogram('track_eta,track_phi', type='TH2F', title='Track #eta vs #phi; #eta; #phi', xbins=26, xmin=-2.6, xmax=2.6, ybins=16, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
456  mon_group.defineHistogram('track_dEta,track_dPhi', type='TH2F', title='Track #Delta#eta vs #Delta#phi; #Delta#eta; #Delta#phi', xbins=100, xmin=-0.5, xmax=0.5, ybins=100, ymin=-0.5, ymax=0.5, opt='kAlwaysCreate')
457 
458 

◆ bookIDScores()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookIDScores (   self,
  mon_alg,
  base_path,
  trigger,
  n_prong,
  online 
)

Definition at line 479 of file TrigTauMonitoringConfig.py.

479  def bookIDScores(self, mon_alg, base_path, trigger, n_prong, online):
480  info = self.getTriggerInfo(trigger)
481  store_all = info.getHLTTauID() in ['idperf', 'perf']
482 
483  if online:
484  if info.getHLTTauType() not in self.hlt_tauid_scores: return
485  variables = {
486  tau_id: p
487  for tau_id, p in self.hlt_tauid_scores[info.getHLTTauType()].items()
488  if tau_id == info.getHLTTauID() or store_all
489  }
490  else:
491  variables = self.offline_tauid_scores
492 
493  type_str = 'HLT' if online else 'Offline'
494  mon_group_name = f'{trigger}_{type_str}_IDScores_{n_prong}'
495  mon_group_path = f'{base_path}/basicVars/{trigger}/{type_str}_{n_prong}'
496  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
497 
498  for tau_id, (score, score_sig_trans) in variables.items():
499  if tau_id in ['RNN', 'DeepSet', 'RNNLLP', 'GNTau']: xbins, xmax = 20, 1
500  else: xbins, xmax = 100, 5
501 
502  mon_group.defineHistogram(f'{tau_id}_TauIDScore', title=f'{type_str} {tau_id} TauID score; TauID score; Events', xbins=xbins, xmin=0, xmax=xmax, opt='kAlwaysCreate')
503  mon_group.defineHistogram(f'{tau_id}_TauIDScoreSigTrans', title=f'{type_str} {tau_id} TauID score sig. transformed; TauID score sig. transformed; Events', xbins=xbins, xmin=0, xmax=xmax, opt='kAlwaysCreate')
504 
505 

◆ bookL1EffHistograms()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookL1EffHistograms (   self,
  mon_alg,
  base_path,
  trigger,
  n_prong 
)

Definition at line 690 of file TrigTauMonitoringConfig.py.

690  def bookL1EffHistograms(self, mon_alg, base_path, trigger, n_prong):
691  mon_group_name = f'{trigger}_L1_Efficiency_{n_prong}'
692  mon_group_path = f'{base_path}/L1_Efficiency/{trigger}/L1_Efficiency_{n_prong}'
693  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
694 
695  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, high_pt=False, coarse=False):
696  pass_flag = 'L1_pass'
697  sfx = ''
698 
699  if high_pt:
700  pass_flag += '_highPt'
701  sfx += '_highPt'
702  xlabel += ' (p_{T}^{#tau} > p_{T}^{#tau thr} + 20 GeV)'
703  elif coarse:
704  sfx += '_coarse'
705 
706  mon_group.defineHistogram(f'{pass_flag},{xvariable};EffL1_{xvariable}{sfx}_wrt_Offline',
707  title=f'L1 Efficiency {trigger} {n_prong}; {xlabel}; Efficiency',
708  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax, opt='kAlwaysCreate')
709 
710  coarse_binning = self.getCustomPtBinning(trigger)
711 
712  defineEachStepHistograms('tauPt', 'p_{T} [GeV]', 60, 0, 300)
713  defineEachStepHistograms('tauPt', 'p_{T} [GeV]', coarse_binning, coarse_binning[0], coarse_binning[-1], coarse=True)
714  defineEachStepHistograms('tauEta', '#eta', 13, -2.6, 2.6)
715  defineEachStepHistograms('tauPhi', '#phi', 16, -3.2, 3.2)
716  defineEachStepHistograms('tauEta', '#eta', 13, -2.6, 2.6, high_pt=True)
717  defineEachStepHistograms('tauPhi', '#phi', 16, -3.2, 3.2, high_pt=True)
718  defineEachStepHistograms('averageMu', '#LT#mu#GT', 10, 0, 80)
719 
720 

◆ bookL1Vars()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookL1Vars (   self,
  mon_alg,
  base_path,
  trigger 
)

Definition at line 721 of file TrigTauMonitoringConfig.py.

721  def bookL1Vars(self, mon_alg, base_path, trigger):
722  mon_group_name = f'{trigger}_L1Vars'
723  mon_group_path = f'{base_path}/L1Vars/{trigger}'
724  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
725 
726  mon_group.defineHistogram('L1RoIEt,L1RoIEta', type='TH2F', title='L1 RoI E_{T} vs #eta; E_{T} [GeV]; #eta',
727  xbins=60, xmin=0, xmax=300,
728  ybins=60, ymin=-2.6, ymax=2.6, opt='kAlwaysCreate')
729  mon_group.defineHistogram('L1RoIEt,L1RoIPhi', type='TH2F', title='L1 RoI E_{T} vs #phi; E_{T} [GeV]; #phi',
730  xbins=60, xmin=0, xmax=300,
731  ybins=60, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
732  mon_group.defineHistogram('L1RoIEta,L1RoIPhi', type='TH2F', title='L1 RoI #eta vs #phi; #eta; #phi',
733  xbins=60, xmin=-2.6, xmax=2.6,
734  ybins=60, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
735  mon_group.defineHistogram('L1RoIEta', title='L1 RoI #eta; #eta; RoIs', xbins=60, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
736  mon_group.defineHistogram('L1RoIPhi', title='L1 RoI #phi; #phi; RoIs', xbins=60, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
737  mon_group.defineHistogram('L1RoIEt', title='L1 RoI E_{T}; E_{T} [GeV]; RoIs', xbins=60, xmin=0, xmax=300, opt='kAlwaysCreate')
738 
739  if 'eTAU' in trigger:
740  mon_group.defineHistogram('L1eFexRoIRCore', title='L1 eTAU RoI rCore Isolation; rCore Isolation; RoIs', xbins=250, xmin=0, xmax=1, opt='kAlwaysCreate')
741  mon_group.defineHistogram('L1eFexRoIRHad' , title='L1 eTAU RoI rHad Isolation; rHad Isolation; RoIs', xbins=250, xmin=0, xmax=1, opt='kAlwaysCreate')
742  mon_group.defineHistogram('L1eFexRoIBDTScore' , title='L1 eTAU RoI BDT score; BDT Score; RoIs', xbins=128, xmin=512, xmax=1024, opt='kAlwaysCreate')
743 
744  elif 'cTAU' in trigger:
745  mon_group.defineHistogram('L1eFexRoIRCore', title='L1 eTAU RoI rCore Isolation; eTAU rCore Isolation; RoIs', xbins=250, xmin=0, xmax=1, opt='kAlwaysCreate')
746  mon_group.defineHistogram('L1eFexRoIRHad', title='L1 eTAU RoI rHad Isolation; eTAU rHad Isolation; RoIs', xbins=250, xmin=0, xmax=1, opt='kAlwaysCreate')
747  mon_group.defineHistogram('L1cTauRoITopoMatch', title='L1Topo match between eTAU and jTAU RoI; Match; RoIs', xbins=2, xmin=0, xmax=2, opt='kAlwaysCreate')
748  mon_group.defineHistogram('L1jFexRoIIso', title='L1 jTAU RoI Isolation; E_{T}^{jTAU Iso} [GeV]; RoIs', xbins=25, xmin=0, xmax=50, opt='kAlwaysCreate')
749  mon_group.defineHistogram('L1cTauMatchedRoIIso', title='L1 cTAU Isolation score; E_{T}^{jTAU Iso}/E_{T}^{eTAU}; RoIs', xbins=50, xmin=0, xmax=5, opt='kAlwaysCreate')
750  mon_group.defineHistogram('L1RoIcTauMatchedEtRatio', title='Et ratio between matched eTAU and jTAU RoIs; E_{T}^{jTAU}/E_{T}^{eTAU}; RoIs', xbins=40, xmin=0, xmax=4, opt='kAlwaysCreate')
751  mon_group.defineHistogram('L1eFexRoIBDTScore' , title='L1 eTAU RoI BDT score; BDT Score; RoIs', xbins=128, xmin=512, xmax=1024, opt='kAlwaysCreate')
752 
753  elif 'jTAU' in trigger:
754  mon_group.defineHistogram('L1jFexRoIIso', title='L1 jTAU RoI Isolation; jTAU Isolation [GeV]; N RoI', xbins=25, xmin=0, xmax=50, opt='kAlwaysCreate')
755 

◆ bookTAndPHLTEffHistograms()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookTAndPHLTEffHistograms (   self,
  mon_alg,
  base_path,
  trigger 
)

Definition at line 587 of file TrigTauMonitoringConfig.py.

587  def bookTAndPHLTEffHistograms(self, mon_alg, base_path, trigger):
588  mon_group_name = f'{trigger}_TAndPHLT_Efficiency'
589  mon_group_path = f'{base_path}/TAndPHLT_Efficiency/{trigger}/TAndPHLT_Efficiency'
590  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
591 
592  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, high_pt=False, coarse=False):
593  pass_flag = 'HLT_pass'
594  sfx = ''
595 
596  if high_pt:
597  pass_flag += '_highPt'
598  sfx += '_highPt'
599  xlabel += ' (p_{T}^{#tau} > p_{T}^{#tau thr} + 20 GeV)'
600  elif coarse:
601  sfx += '_coarse'
602 
603  mon_group.defineHistogram(f'{pass_flag},{xvariable};EffTAndPHLT_{xvariable}{sfx}_wrt_Offline',
604  title=f'TAndP HLT Efficiency {trigger}; {xlabel}; Efficiency',
605  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax, opt='kAlwaysCreate')
606 
607  coarse_binning = self.getCustomPtBinning(trigger)
608 
609  defineEachStepHistograms('tauPt', 'p_{T}^{#tau} [GeV]', 60, 0.0, 300)
610  defineEachStepHistograms('tauPt', 'p_{T}^{#tau} [GeV]', coarse_binning, coarse_binning[0], coarse_binning[-1], coarse=True)
611  defineEachStepHistograms('tauEta', '#eta_{#tau}', 13, -2.6, 2.6)
612  defineEachStepHistograms('tauPhi', '#phi_{#tau}', 16, -3.2, 3.2)
613  defineEachStepHistograms('tauEta', '#eta_{#tau}', 13, -2.6, 2.6, high_pt=True)
614  defineEachStepHistograms('tauPhi', '#phi_{#tau}', 16, -3.2, 3.2, high_pt=True)
615  defineEachStepHistograms('dR', '#Delta R(#tau,lep)', 20, 0, 4)
616  defineEachStepHistograms('dEta', '#Delta#eta(#tau,lep)', 20, 0,4)
617  defineEachStepHistograms('dPhi', '#Delta#phi(#tau,lep)', 8, -3.2, 3.2)
618  defineEachStepHistograms('averageMu', '#LT#mu#GT', 10, 0, 80)
619 
620  # Save quantities in TTree for offline analysis
621  mon_group.defineTree('tauPt,tauEta,tauPhi,dR,dEta,dPhi,averageMu,HLT_pass;TAndPHLTEffTree',
622  treedef='tauPt/F:tauEta/F:tauPhi/F:dR/F:dEta/F:dPhi/F:averageMu/F:HLT_pass/I')
623 
624 

◆ bookTAndPVars()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookTAndPVars (   self,
  mon_alg,
  base_path,
  trigger 
)

Definition at line 625 of file TrigTauMonitoringConfig.py.

625  def bookTAndPVars(self, mon_alg, base_path, trigger):
626  mon_group_name = f'{trigger}_TAndPVars'
627  mon_group_path = f'{base_path}/TAndPVars/{trigger}'
628  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
629 
630  mon_group.defineHistogram('dR', title='#Delta R(#tau,lep); #Delta R(#tau,lep); Events', xbins=40, xmin=0, xmax=4, opt='kAlwaysCreate')
631  mon_group.defineHistogram('dEta', title='#Delta#eta(#tau,lep); #Delta#eta(#tau,lep); Events', xbins=40, xmin=0, xmax=4, opt='kAlwaysCreate')
632  mon_group.defineHistogram('dPhi', title='#Delta#phi(#tau,lep); #Delta#phi(#tau,lep); Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
633 
634  mon_group.defineHistogram('Pt', title='p_{T}(#tau,lep); p_{T} [GeV]; Events', xbins=50, xmin=0, xmax=250, opt='kAlwaysCreate')
635  mon_group.defineHistogram('Eta', title='#eta(#tau,lep); #eta; Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
636  mon_group.defineHistogram('Phi', title='#phi(#tau,lep); #phi; Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
637  mon_group.defineHistogram('M', title='m(#tau,lep); m_{#tau,lep}; Events', xbins=50, xmin=0, xmax=250, opt='kAlwaysCreate')
638  mon_group.defineHistogram('dPt', title='#Delta p_{T}(#tau,lep); p_{T} [GeV]; Events', xbins=20, xmin=0, xmax=200, opt='kAlwaysCreate')
639 
640 

◆ bookTruthEfficiency()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookTruthEfficiency (   self,
  mon_alg,
  base_path,
  trigger,
  n_prong 
)

Definition at line 641 of file TrigTauMonitoringConfig.py.

641  def bookTruthEfficiency(self, mon_alg, base_path, trigger, n_prong):
642  mon_group_name = f'{trigger}_Truth_Efficiency_{n_prong}'
643  mon_group_path = f'{base_path}/Truth_Efficiency/{trigger}/Truth_Efficiency_{n_prong}'
644  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
645 
646  info = self.getTriggerInfo(trigger)
647 
648  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, high_pt=False, coarse=False):
649  pass_flag = 'HLT_pass'
650  sfx = ''
651 
652  if high_pt:
653  pass_flag += '_highPt'
654  sfx += '_highPt'
655  if info.isHLTDiTau():
656  xlabel += ' (p_{T}^{#tau} > p_{T}^{#tau min thr} + 20 GeV)'
657  else:
658  xlabel += ' (p_{T}^{#tau} > p_{T}^{#tau thr} + 20 GeV)'
659  elif coarse:
660  sfx += '_coarse'
661 
662  mon_group.defineHistogram(f'{pass_flag},{xvariable};EffHLT_{xvariable}{sfx}_wrt_Truth',
663  title=f'HLT Efficiency {trigger} {n_prong}; {xlabel}; Efficiency',
664  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax)
665 
666  coarse_binning = self.getCustomPtBinning(trigger)
667 
668  defineEachStepHistograms('pt_vis', 'p_{T, vis} [GeV]', 60, 0.0, 300)
669  if info.isHLTSingleTau() or info.isHLTTandP(): defineEachStepHistograms('pt_vis', 'p_{T, vis} [GeV]', coarse_binning, coarse_binning[0], coarse_binning[-1], coarse=True)
670  defineEachStepHistograms('eta_vis', '#eta_{vis}', 13, -2.6, 2.6)
671  defineEachStepHistograms('phi_vis', '#phi_{vis}', 16, -3.2, 3.2)
672  defineEachStepHistograms('eta_vis', '#eta_{vis}', 13, -2.6, 2.6, high_pt=True)
673  defineEachStepHistograms('phi_vis', '#phi_{vis}', 16, -3.2, 3.2, high_pt=True)
674 
675 

◆ bookTruthVars()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.bookTruthVars (   self,
  mon_alg,
  base_path,
  trigger,
  n_prong 
)

Definition at line 676 of file TrigTauMonitoringConfig.py.

676  def bookTruthVars(self, mon_alg, base_path, trigger, n_prong):
677  mon_group_name = f'{trigger}_TruthVars_{n_prong}'
678  mon_group_path = f'{base_path}/TruthVars/{trigger}/TruthVars_{n_prong}'
679  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
680 
681  mon_group.defineHistogram('pt_vis,PtRatio', title='p_{T} ratio vs p_{T, vis}; p_{T, vis} [GeV]; (p_{T}^{reco} - p_{T, vis}^{truth})/p_{T, vis}^{truth}', type='TProfile', xbins=21, xmin=20, xmax=250)
682  mon_group.defineHistogram('eta_vis,PtRatio', title='p_{T} ratio vs #eta_{vis}; #eta_{vis}; (p_{T}^{reco} - p_{T, vis}^{truth})/p_{T, vis}^{truth}', type='TProfile', xbins=21, xmin=-3, xmax=3)
683  mon_group.defineHistogram('phi_vis,PtRatio', title='p_{T} ratio vs #phi_{vis}; #phi_{vis}; (p_{T}^{reco} - p_{T, vis}^{truth})/p_{T, vis}^{truth}', type='TProfile', xbins=21, xmin=-3, xmax=3)
684 
685  mon_group.defineHistogram('pt_vis', title='p_{T, vis}; p_{T, vis}; Events', xbins=50, xmin=0, xmax=250)
686  mon_group.defineHistogram('eta_vis', title='#eta_{vis}; #eta_{vis}; Events', xbins=26, xmin=-2.6, xmax=2.6)
687  mon_group.defineHistogram('phi_vis', title='#phi_{vis}; #phi_{vis}; Events', xbins=16, xmin=-3.2, xmax=3.2)
688 
689 

◆ configure()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configure (   self)

Definition at line 114 of file TrigTauMonitoringConfig.py.

114  def configure(self):
115  # First load and classify the list of triggers
116  self.configureTriggers()
117 
118  # Now create, configure, and book the histograms for all the individual algorithms
119  self.logger.info('Creating the Tau monitoring algorithms...')
120 
121  if self.activate_single_tau:
122  self.configureAlgorithmSingle()
123 
124  if self.activate_ditau:
125  self.configureAlgorithmDiTau()
126 
127  if self.activate_tag_and_probe:
128  self.configureAlgorithmTagAndProbe()
129 
130  if self.activate_truth:
131  self.configureAlgorithmTruth()
132 
133  if self.activate_L1:
134  self.configureAlgorithmL1()
135 

◆ configureAlgorithmDiTau()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmDiTau (   self)

Definition at line 299 of file TrigTauMonitoringConfig.py.

299  def configureAlgorithmDiTau(self):
300  self.mon_alg_ditau = self._configureAlgorithm(CompFactory.TrigTauMonitorDiTauAlgorithm, 'TrigTauMonAlgDiTau')
301  self.mon_alg_ditau.TriggerList = self.HLT_ditau_items
302  self.mon_alg_ditau.DoTotalEfficiency = self.do_total_efficiency
303  self.mon_alg_ditau.RequireOfflineTaus = self.require_offline_taus
304 
305  self.logger.info(' |- Booking all histograms')
306  for trigger in self.HLT_ditau_items:
307  self.bookDiTauHLTEffHistograms(self.mon_alg_ditau, self.base_path, trigger)
308  self.bookDiTauVars(self.mon_alg_ditau, self.base_path, trigger)
309 
310 

◆ configureAlgorithmL1()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmL1 (   self)

Definition at line 333 of file TrigTauMonitoringConfig.py.

333  def configureAlgorithmL1(self):
334  has_xtob_etau_rois = 'L1_eTauxRoI' in self.helper.flags.Input.Collections or self.helper.flags.DQ.Environment == "tier0"
335 
336  self.mon_alg_L1 = self._configureAlgorithm(CompFactory.TrigTauMonitorL1Algorithm, 'TrigTauMonAlgL1')
337  self.mon_alg_L1.TriggerList = self.L1_items
338  self.mon_alg_L1.RequireOfflineTaus = self.require_offline_taus
339  if not has_xtob_etau_rois:
340  self.logger.info(' |- No L1_eTauxRoI container is available: e/cTAU BDT scores will be set to 0')
341  self.mon_alg_L1.Phase1L1eTauxRoIKey = ''
342 
343  self.logger.info(' |- Booking all histograms')
344  for trigger in self.L1_items:
345  for p in ('1P', '3P'):
346  self.bookL1EffHistograms(self.mon_alg_L1, self.base_path, trigger, n_prong=p)
347  self.bookL1Vars(self.mon_alg_L1, self.base_path, trigger)
348 
349  if self.do_duplicate_var_plots_without_offline_taus:
350  self.mon_alg_L1_no_offline = self._configureAlgorithm(CompFactory.TrigTauMonitorL1Algorithm, 'TrigTauMonAlgL1NoOffline')
351  self.mon_alg_L1_no_offline.TriggerList = self.L1_items
352  self.mon_alg_L1_no_offline.RequireOfflineTaus = False
353  self.mon_alg_L1_no_offline.DoEfficiencyPlots = False
354  if not has_xtob_etau_rois:
355  self.logger.info(' |- No L1_eTauxRoI container is available: e/cTAU BDT scores will be set to 0')
356  self.mon_alg_L1_no_offline.Phase1L1eTauxRoIKey = ''
357 
358  self.logger.info(' |- Booking all histograms')
359  path = f'{self.base_path}/OnlineOnlyVars'
360  for trigger in self.L1_items:
361  self.bookL1Vars(self.mon_alg_L1_no_offline, path, trigger)
362 
363  if self.do_alternative_eTAU_monitoring:
364  self.mon_alg_L1_alt = self._configureAlgorithm(CompFactory.TrigTauMonitorL1Algorithm, 'TrigTauMonAlgL1eTAUAlt')
365  self.mon_alg_L1_alt.Phase1L1eTauRoIKey = 'L1_eTauRoIAltSim' # Use alternative RoIs (with heuristic eTAU algorithm simulation)
366  self.mon_alg_L1_alt.SelectL1ByETOnly = True # We don't have threshold patterns for the Alt RoIs, so we match by ET only
367  self.mon_alg_L1_alt.RequireOfflineTaus = False
368  self.mon_alg_L1_alt.Phase1L1eTauxRoIKey = ''
369 
370  l1_items = [item for item in self.L1_items if 'eTAU' in item and not self.getTriggerInfo(item).isL1TauIsolated()] # Only non-isolated eTAU items
371  self.mon_alg_L1_alt.TriggerList = l1_items
372 
373  self.logger.info(' |- Booking all histograms')
374  path = f'{self.base_path}/L1eTAUAlt'
375  for trigger in l1_items:
376  for p in ('1P', '3P'):
377  self.bookL1EffHistograms(self.mon_alg_L1_alt, path, trigger, n_prong=p)
378  self.bookL1Vars(self.mon_alg_L1_alt, path, trigger)
379 
380 

◆ configureAlgorithmSingle()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmSingle (   self)

Definition at line 250 of file TrigTauMonitoringConfig.py.

250  def configureAlgorithmSingle(self):
251  self.mon_alg_single = self._configureAlgorithm(CompFactory.TrigTauMonitorSingleAlgorithm, 'TrigTauMonAlgSingle')
252  self.mon_alg_single.TriggerList = self.HLT_single_items
253  self.mon_alg_single.DoTotalEfficiency = self.do_total_efficiency
254  self.mon_alg_single.RequireOfflineTaus = self.require_offline_taus
255  self.mon_alg_single.HLTTauIDScores = self.hlt_tauid_scores
256  self.mon_alg_single.OfflineTauIDScores = self.offline_tauid_scores
257 
258  self.logger.info(' |- Booking all histograms')
259  for trigger in self.HLT_single_items:
260  # Efficiencies
261  for p in ('1P', '3P'):
262  self.bookHLTEffHistograms(self.mon_alg_single, self.base_path, trigger, n_prong=p)
263 
264  # Online distributions
265  for p in ('0P', '1P', 'MP'):
266  self.bookBasicVars(self.mon_alg_single, self.base_path, trigger, n_prong=p, online=True)
267  self.bookIDScores(self.mon_alg_single, self.base_path, trigger, n_prong=p, online=True)
268  self.bookIDInputScalar(self.mon_alg_single, self.base_path, trigger, n_prong=p, online=True)
269  self.bookIDInputTrack(self.mon_alg_single, self.base_path, trigger, online=True)
270  self.bookIDInputCluster(self.mon_alg_single, self.base_path, trigger, online=True)
271 
272  # Offline distributions
273  for p in ('1P', '3P'):
274  self.bookBasicVars(self.mon_alg_single, self.base_path, trigger, p, online=False)
275  self.bookIDScores(self.mon_alg_single, self.base_path, trigger, p, online=False)
276  self.bookIDInputScalar(self.mon_alg_single, self.base_path, trigger, n_prong=p, online=False)
277  self.bookIDInputTrack(self.mon_alg_single, self.base_path, trigger, online=False)
278  self.bookIDInputCluster(self.mon_alg_single, self.base_path, trigger, online=False)
279 
280  if self.do_duplicate_var_plots_without_offline_taus:
281  self.mon_alg_single_no_offline = self._configureAlgorithm(CompFactory.TrigTauMonitorSingleAlgorithm, 'TrigTauMonAlgSingleNoOffline')
282  self.mon_alg_single_no_offline.TriggerList = self.HLT_single_items
283  self.mon_alg_single_no_offline.RequireOfflineTaus = False
284  self.mon_alg_single_no_offline.DoOfflineTausDistributions = False
285  self.mon_alg_single_no_offline.DoEfficiencyPlots = False
286  self.mon_alg_single_no_offline.HLTTauIDScores = self.hlt_tauid_scores
287 
288  self.logger.info(' |- Booking all histograms')
289  path = f'{self.base_path}/OnlineOnlyVars'
290  for trigger in self.HLT_single_items:
291  for p in ('0P', '1P', 'MP'):
292  self.bookBasicVars(self.mon_alg_single_no_offline, path, trigger, n_prong=p, online=True)
293  self.bookIDScores(self.mon_alg_single_no_offline, path, trigger, n_prong=p, online=True)
294  self.bookIDInputScalar(self.mon_alg_single_no_offline, path, trigger, n_prong=p, online=True)
295  self.bookIDInputTrack(self.mon_alg_single_no_offline, path, trigger, online=True)
296  self.bookIDInputCluster(self.mon_alg_single_no_offline, path, trigger, online=True)
297 
298 

◆ configureAlgorithmTagAndProbe()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmTagAndProbe (   self)

Definition at line 311 of file TrigTauMonitoringConfig.py.

311  def configureAlgorithmTagAndProbe(self):
312  self.mon_alg_tag_and_probe = self._configureAlgorithm(CompFactory.TrigTauMonitorTandPAlgorithm, 'TrigTauMonAlgTandP')
313  self.mon_alg_tag_and_probe.TriggerList = self.HLT_tag_and_probe_items
314  self.mon_alg_tag_and_probe.RequireOfflineTaus = self.require_offline_taus
315 
316  self.logger.info(' |- Booking all histograms')
317  for trigger in self.HLT_tag_and_probe_items:
318  self.bookTAndPHLTEffHistograms(self.mon_alg_tag_and_probe, self.base_path, trigger)
319  self.bookTAndPVars(self.mon_alg_tag_and_probe, self.base_path, trigger)
320 
321 

◆ configureAlgorithmTruth()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmTruth (   self)

Definition at line 322 of file TrigTauMonitoringConfig.py.

322  def configureAlgorithmTruth(self):
323  self.mon_alg_truth = self._configureAlgorithm(CompFactory.TrigTauMonitorTruthAlgorithm, 'TrigTauMonAlgTruth')
324  self.mon_alg_truth.TriggerList = self.HLT_truth_items
325 
326  self.logger.info(' |- Booking all histograms')
327  for trigger in self.HLT_truth_items:
328  for p in ('1P', '3P'):
329  self.bookTruthEfficiency(self.mon_alg_truth, self.base_path, trigger, n_prong=p)
330  self.bookTruthVars(self.mon_alg_truth, self.base_path, trigger, n_prong=p)
331 
332 

◆ configureMode()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureMode (   self)

Definition at line 95 of file TrigTauMonitoringConfig.py.

95  def configureMode(self):
96  self.is_mc = False
97 
98  self.data_type = self.helper.flags.DQ.DataType
99  self.logger.debug('Configuring for %s', self.data_type)
100 
101  if self.data_type is DQDataType.MC:
102  self.is_mc = True
103  self.logger.debug('Enabling Truth monitoring')
104  else:
105  self.activate_truth = False
106  self.logger.debug('Using default monitoring configuration for collisions')
107 
108  if self.helper.flags.DQ.Environment == "tier0":
109  self.do_alternative_eTAU_monitoring = True
110  # We don't have any configuration specific for Cosmics or HI (the HLT Tau Monitoring is disabled for this one)
111  # If we did, we could specify it here
112 
113 

◆ configureTriggers()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureTriggers (   self)

Definition at line 161 of file TrigTauMonitoringConfig.py.

161  def configureTriggers(self):
162  self.logger.info('Configuring triggers')
163 
164  from TrigConfigSvc.TriggerConfigAccess import getL1MenuAccess, getHLTMenuAccess, getHLTMonitoringAccess
165  # The L1 and HLT menus should always be available
166  L1_menu = getL1MenuAccess(self.helper.flags)
167  HLT_menu = getHLTMenuAccess(self.helper.flags)
168 
169  # Try to load the monitoring groups
170  HLT_monitoring = getHLTMonitoringAccess(self.helper.flags)
171  all_items = HLT_monitoring.monitoredChains(signatures='tauMon', monLevels=['shifter', 't0', 'val'])
172  # If the mon groups are not available, fallback to the hard-coded trigger monitoring list
173  if not all_items:
174  from TrigTauMonitoring.ManualChains import monitored_chains
175  self.logger.info('Could not find any monitored tau chains in the HLTMonitoring information. Will use the available items from the fallback trigger list')
176  all_items = monitored_chains
177 
178  # Classify HLT trigger chains:
179  for trigger in all_items:
180  # Skip items not included in the menu. This is needed if e.g. using the fallback list on new files without Legacy triggers, or old files
181  # without PhI triggers. Also some old SMKs have broken HLTMonitoring DB links, with chains that are not in the Trigger Menu
182  if trigger not in HLT_menu: continue
183 
184  info = self.getTriggerInfo(trigger, use_thresholds=False)
185 
186  if self.activate_single_tau and info.isHLTSingleTau():
187  self.HLT_single_items.append(trigger)
188  elif self.activate_ditau and info.isHLTDiTau():
189  self.HLT_ditau_items.append(trigger)
190  elif self.activate_tag_and_probe and info.isHLTTandP():
191  self.HLT_tag_and_probe_items.append(trigger)
192 
193  if len(info.getL1TauItems()):
194  for l1_tau_item in map(str, info.getL1TauItems()): # The objects are of type std::string by default, and 'in' doesn't work properly on them
195  is_phase_1 = 'eTAU' in l1_tau_item or 'jTAU' in l1_tau_item or 'cTAU' in l1_tau_item
196  if is_phase_1 and l1_tau_item not in self.L1_Phase1_thresholds:
197  # We have only one threshold entry, because we don't use eta-dependent thresholds for Phase 1 TAU items:
198  self.L1_Phase1_thresholds[l1_tau_item] = float(L1_menu.thresholds()[l1_tau_item]['thrValues'][0]['value'])
199 
200  self.L1_Phase1_threshold_mappings[l1_tau_item] = 1 << int(L1_menu.thresholds()[l1_tau_item]['mapping']) # thresholdPatterns property mask
201 
202  if self.activate_L1 and f'L1{l1_tau_item}' not in self.L1_items:
203  self.L1_items.append(f'L1{l1_tau_item}')
204 
205  if self.activate_single_tau:
206  self.HLT_single_items.sort()
207  self.logger.info(f'Configuring HLT single-tau monitored chains: {self.HLT_single_items}')
208  if not self.HLT_single_items:
209  self.logger.warning('Empty trigger list, disabling the single-tau monitoring')
210  self.activate_single_tau = False
211 
212  if self.activate_ditau:
213  self.HLT_ditau_items.sort()
214  self.logger.info(f'Configuring HLT di-tau monitored chains: {self.HLT_ditau_items}')
215  if not self.HLT_ditau_items:
216  self.logger.warning('Empty trigger list, disabling the di-tau monitoring')
217  self.activate_ditau = False
218 
219  if self.activate_tag_and_probe:
220  self.HLT_tag_and_probe_items.sort()
221  self.logger.info(f'Configuring HLT Tag and Probe tau monitored chains: {self.HLT_tag_and_probe_items}')
222  if not self.HLT_tag_and_probe_items:
223  self.logger.warning('Empty trigger list, disabling the tag and probe monitoring')
224  self.activate_tag_and_probe = False
225 
226  if self.activate_truth:
227  # We add all chains to the Truth monitoring
228  self.HLT_truth_items = self.HLT_single_items
229  self.logger.info(f'Configuring HLT truth tau monitored chains: {self.HLT_truth_items}')
230  if not self.HLT_truth_items:
231  self.logger.warning('Empty trigger list, disabling the truth tau monitoring')
232  self.activate_truth = False
233 
234  if self.activate_L1:
235  self.L1_items.sort()
236  self.logger.info(f'Configuring L1 tau monitored items: {self.L1_items}')
237  if not self.L1_items:
238  self.logger.warning('Empty trigger list, disabling the L1 tau monitoring')
239  self.activate_L1 = False
240 
241 

◆ getCustomPtBinning()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.getCustomPtBinning (   self,
  trigger,
  fine = False 
)

Definition at line 756 of file TrigTauMonitoringConfig.py.

756  def getCustomPtBinning(self, trigger, fine=False):
757  info = self.getTriggerInfo(trigger)
758 
759  def getList(ranges, others=[250]):
760  ret = set(others + [500]) # The upper end of the x-axis will always be 500
761  for jump, interval in ranges.items():
762  ret.update(range(interval[0], interval[1], jump), interval)
763  return sorted(list(ret))
764 
765  if info.isL1TauOnly():
766  thr = info.getL1TauThreshold()
767 
768  if thr <= 8: return getList({5:(0, 30), 50:(50, 150)})
769  elif thr <= 12: return getList({5:(0, 30), 50:(50, 150)})
770  elif thr <= 20: return getList({5:(5, 40), 10:(40, 70), 50:(100, 150)})
771  elif thr <= 30: return getList({5:(15, 50), 10:(50, 70), 50:(100, 150)})
772  elif thr <= 35: return getList({5:(20, 55), 10:(60, 80), 50:(100, 150)})
773  elif thr <= 40: return getList({5:(25, 60), 10:(60, 80), 50:(100, 150)})
774  elif thr <= 60: return getList({5:(45, 80), 10:(80, 100), 50:(100, 150)})
775  elif thr <= 100: return getList({5:(85, 120), 10:(120, 140), 20:(140, 180), 50:(200, 250)})
776  else: return getList({50:(0, 200)})
777 
778  else: # HLT triggers
779  thr = info.getHLTTauThreshold()
780 
781  if fine:
782  if thr == 0: return getList({5:(0, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
783  elif thr <= 20: return getList({5:(15, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
784  elif thr <= 25: return getList({5:(20, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
785  elif thr <= 30: return getList({5:(25, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
786  elif thr <= 35: return getList({5:(30, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
787  elif thr <= 60: return getList({5:(55, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
788  elif thr <= 80: return getList({5:(75, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
789  elif thr <= 160: return getList({5:(155, 160), 40:(160, 240), 60:(240, 420)}, [])
790  elif thr <= 180: return getList({5:(175, 180), 40:(180, 260), 60:(260, 380)}, [])
791  else: return getList({5:(195, 200), 40:(200, 240), 60:(240, 420)}, [])
792 
793  else:
794  if thr == 0:
795  if info.getL1TauItems(): return self.getCustomPtBinning(f'L1{info.getL1TauItem()}')
796  else: return getList({5:(0, 30), 50:(50, 150)})
797  elif thr <= 20: return getList({5:(10, 40), 10:(40, 60), 20:(60, 80)}, [150, 250])
798  elif thr <= 25: return getList({5:(15, 40), 10:(40, 60), 20:(60, 80)}, [150, 250])
799  elif thr <= 30: return getList({5:(20, 50), 10:(50, 60), 20:(60, 80)}, [150, 250])
800  elif thr <= 35: return getList({5:(25, 50), 10:(50, 60), 20:(60, 80)}, [150, 250])
801  elif thr <= 60: return getList({5:(50, 70), 10:(70, 80)}, [110, 150, 250])
802  elif thr <= 80: return getList({5:(70, 90)}, [110, 150, 250])
803  elif thr <= 160: return getList({5:(150, 170), 10:(170, 180), 20:(180, 200)}, [240, 300])
804  elif thr <= 180: return getList({5:(170, 180), 10:(180, 200)}, [240, 300])
805  else: return getList({5:(190, 200), 10:(200, 210)}, [240, 300])

◆ getTriggerInfo()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.getTriggerInfo (   self,
str  trigger,
  use_thresholds = True 
)

Definition at line 153 of file TrigTauMonitoringConfig.py.

153  def getTriggerInfo(self, trigger: str, use_thresholds=True):
154  from TrigTauMonitoring.TrigTauInfo import TrigTauInfo
155  if use_thresholds:
156  return TrigTauInfo(trigger, self._L1_Phase1_thresholds_stdmap, self._L1_Phase1_threshold_mappings_stdmap)
157  else:
158  return TrigTauInfo(trigger)
159 
160 

Member Data Documentation

◆ activate_ditau

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_ditau

Definition at line 76 of file TrigTauMonitoringConfig.py.

◆ activate_L1

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_L1

Definition at line 88 of file TrigTauMonitoringConfig.py.

◆ activate_single_tau

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_single_tau

Definition at line 72 of file TrigTauMonitoringConfig.py.

◆ activate_tag_and_probe

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_tag_and_probe

Definition at line 80 of file TrigTauMonitoringConfig.py.

◆ activate_truth

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_truth

Definition at line 84 of file TrigTauMonitoringConfig.py.

◆ base_path

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.base_path

Definition at line 64 of file TrigTauMonitoringConfig.py.

◆ data_type

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.data_type

Definition at line 98 of file TrigTauMonitoringConfig.py.

◆ do_alternative_eTAU_monitoring

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.do_alternative_eTAU_monitoring
static

Definition at line 58 of file TrigTauMonitoringConfig.py.

◆ do_ditau

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.do_ditau
static

Definition at line 19 of file TrigTauMonitoringConfig.py.

◆ do_duplicate_var_plots_without_offline_taus

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.do_duplicate_var_plots_without_offline_taus
static

Definition at line 31 of file TrigTauMonitoringConfig.py.

◆ do_L1

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.do_L1
static

Definition at line 18 of file TrigTauMonitoringConfig.py.

◆ do_single_tau

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.do_single_tau
static

Definition at line 17 of file TrigTauMonitoringConfig.py.

◆ do_tag_and_probe

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.do_tag_and_probe
static

Definition at line 20 of file TrigTauMonitoringConfig.py.

◆ do_total_efficiency

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.do_total_efficiency
static

Definition at line 26 of file TrigTauMonitoringConfig.py.

◆ do_truth

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.do_truth
static

Definition at line 21 of file TrigTauMonitoringConfig.py.

◆ helper

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.helper

Definition at line 65 of file TrigTauMonitoringConfig.py.

◆ HLT_ditau_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.HLT_ditau_items

Definition at line 78 of file TrigTauMonitoringConfig.py.

◆ HLT_single_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.HLT_single_items

Definition at line 74 of file TrigTauMonitoringConfig.py.

◆ HLT_tag_and_probe_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.HLT_tag_and_probe_items

Definition at line 82 of file TrigTauMonitoringConfig.py.

◆ hlt_tauid_scores

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.hlt_tauid_scores
static

Definition at line 36 of file TrigTauMonitoringConfig.py.

◆ HLT_truth_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.HLT_truth_items

Definition at line 86 of file TrigTauMonitoringConfig.py.

◆ is_mc

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.is_mc

Definition at line 96 of file TrigTauMonitoringConfig.py.

◆ L1_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.L1_items

Definition at line 90 of file TrigTauMonitoringConfig.py.

◆ L1_Phase1_threshold_mappings

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.L1_Phase1_threshold_mappings

Definition at line 69 of file TrigTauMonitoringConfig.py.

◆ L1_Phase1_thresholds

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.L1_Phase1_thresholds

Definition at line 68 of file TrigTauMonitoringConfig.py.

◆ logger

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.logger

Definition at line 62 of file TrigTauMonitoringConfig.py.

◆ maxsize

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.maxsize
static

Definition at line 152 of file TrigTauMonitoringConfig.py.

◆ mon_alg_ditau

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_ditau

Definition at line 77 of file TrigTauMonitoringConfig.py.

◆ mon_alg_L1

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_L1

Definition at line 89 of file TrigTauMonitoringConfig.py.

◆ mon_alg_L1_alt

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_L1_alt

Definition at line 364 of file TrigTauMonitoringConfig.py.

◆ mon_alg_L1_no_offline

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_L1_no_offline

Definition at line 350 of file TrigTauMonitoringConfig.py.

◆ mon_alg_single

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_single

Definition at line 73 of file TrigTauMonitoringConfig.py.

◆ mon_alg_single_no_offline

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_single_no_offline

Definition at line 281 of file TrigTauMonitoringConfig.py.

◆ mon_alg_tag_and_probe

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_tag_and_probe

Definition at line 81 of file TrigTauMonitoringConfig.py.

◆ mon_alg_truth

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_truth

Definition at line 85 of file TrigTauMonitoringConfig.py.

◆ offline_tauid_scores

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.offline_tauid_scores
static

Definition at line 51 of file TrigTauMonitoringConfig.py.

◆ require_offline_taus

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.require_offline_taus
static

Definition at line 28 of file TrigTauMonitoringConfig.py.


The documentation for this class was generated from the following file:
grepfile.info
info
Definition: grepfile.py:38
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.TriggerConfigAccess.getHLTMonitoringAccess
HLTMonitoringAccess getHLTMonitoringAccess(flags=None)
Definition: TriggerConfigAccess.py:256
configure
bool configure(asg::AnaToolHandle< ITrigGlobalEfficiencyCorrectionTool > &tool, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronEffToolsHandles, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronSFToolsHandles, ToolHandleArray< CP::IMuonTriggerScaleFactors > &muonToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonEffToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonSFToolsHandles, const std::string &triggers, const std::map< std::string, std::string > &legsPerTool, unsigned long nToys, bool debug)
Definition: TrigGlobEffCorrValidation.cxx:514
dumpHVPathFromNtuple.append
bool append
Definition: dumpHVPathFromNtuple.py:91
python.TriggerConfigAccess.getL1MenuAccess
L1MenuAccess getL1MenuAccess(flags=None)
Definition: TriggerConfigAccess.py:129
python.LArMinBiasAlgConfig.int
int
Definition: LArMinBiasAlgConfig.py:59
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
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
debug
const bool debug
Definition: MakeUncertaintyPlots.cxx:53
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:71
python.TriggerConfigAccess.getHLTMenuAccess
HLTMenuAccess getHLTMenuAccess(flags=None)
Definition: TriggerConfigAccess.py:196
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18
TrigTauInfo
Definition: TrigTauInfo.h:15
python.LArMinBiasAlgConfig.float
float
Definition: LArMinBiasAlgConfig.py:65