ATLAS Offline Software
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 bookRNNInputScalar (self, mon_alg, base_path, trigger, n_prong, online)
 
def bookRNNInputTrack (self, mon_alg, base_path, trigger, online)
 
def bookRNNInputCluster (self, mon_alg, base_path, trigger, 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
 
 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 38 of file TrigTauMonitoringConfig.py.

38  def __init__(self, helper):
39  from AthenaCommon.Logging import logging
40  self.logger = logging.getLogger('TrigTauMonAlgBuilder')
41 
42  self.base_path = 'HLT/TauMon'
43  self.helper = helper
44 
45  # Threshold information for all Phase 1 items
46  self.L1_Phase1_thresholds = {} # E_T cuts
47  self.L1_Phase1_threshold_mappings = {} # thresholdMappings bit masks
48 
49  # Monitoring algorithms, and lists of items to monitor (will be filled on configure())
50  self.activate_single_tau = self.do_single_tau
51  self.mon_alg_single = None
52  self.HLT_single_items = []
53 
54  self.activate_ditau = self.do_ditau
55  self.mon_alg_ditau = None
56  self.HLT_ditau_items = []
57 
58  self.activate_tag_and_probe = self.do_tag_and_probe
59  self.mon_alg_tag_and_probe = None
60  self.HLT_tag_and_probe_items = []
61 
62  self.activate_truth = self.do_truth
63  self.mon_alg_truth = None
64  self.HLT_truth_items = []
65 
66  self.activate_L1 = self.do_L1
67  self.mon_alg_L1 = None
68  self.L1_items = []
69 
70  self.configureMode()
71 
72 

Member Function Documentation

◆ _configureAlgorithm()

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

Definition at line 220 of file TrigTauMonitoringConfig.py.

220  def _configureAlgorithm(self, algorithm_factory, name):
221  self.logger.info(f'Creating the monitoring algorithm: {name}')
222  mon_alg = self.helper.addAlgorithm(algorithm_factory, name)
223  mon_alg.L1Phase1Thresholds = self.L1_Phase1_thresholds
224  mon_alg.L1Phase1ThresholdPatterns = self.L1_Phase1_threshold_mappings
225  return mon_alg
226 
227 

◆ _L1_Phase1_threshold_mappings_stdmap()

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

Definition at line 123 of file TrigTauMonitoringConfig.py.

123  def _L1_Phase1_threshold_mappings_stdmap(self):
124  import ROOT
125  m = ROOT.std.map[ROOT.std.string, ROOT.uint64_t]()
126  for item, thr in self.L1_Phase1_threshold_mappings.items():
127  m[item] = thr
128  return m
129 

◆ _L1_Phase1_thresholds_stdmap()

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

Definition at line 115 of file TrigTauMonitoringConfig.py.

115  def _L1_Phase1_thresholds_stdmap(self):
116  import ROOT
117  m = ROOT.std.map[ROOT.std.string, ROOT.float]()
118  for item, thr in self.L1_Phase1_thresholds.items():
119  m[item] = thr
120  return m
121 

◆ bookBasicVars()

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

Definition at line 451 of file TrigTauMonitoringConfig.py.

451  def bookBasicVars(self, mon_alg, base_path, trigger, n_prong, online):
452  type_str = 'HLT' if online else 'Offline'
453  mon_group_name = f'{trigger}_{type_str}_basicVars_{n_prong}'
454  mon_group_path = f'{base_path}/basicVars/{trigger}/{type_str}_{n_prong}'
455  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
456 
457  binning = self.getCustomPtBinning(trigger, fine=True)
458 
459  mon_group.defineHistogram('Pt', title=f'{type_str} p_{{T}}; p_{{T}} [GeV]; Events', xbins=binning, opt='kAlwaysCreate')
460  mon_group.defineHistogram('Eta', title=f'{type_str} #eta; #eta; Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
461  mon_group.defineHistogram('Phi', title=f'{type_str} #phi; #phi; Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
462  mon_group.defineHistogram('nTrack', title=f'{type_str} Number of tracks; N_{{track}}; Events', xbins=10, xmin=0, xmax=10, opt='kAlwaysCreate')
463  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')
464  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')
465  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')
466  mon_group.defineHistogram('nWideTrack', title=f'{type_str} Number of wide tracks; N_{{track}}^{{wide}}; Events', xbins=10, xmin=0, xmax=10, opt='kAlwaysCreate')
467  mon_group.defineHistogram('RNNScore', title=f'{type_str} RNN score; RNN score; Events', xbins=20, xmin=0, xmax=1, opt='kAlwaysCreate')
468  mon_group.defineHistogram('RNNScoreSigTrans', title=f'{type_str} RNN Sig Trans score; RNN Sig Trans score; Events', xbins=20, xmin=0, xmax=1, opt='kAlwaysCreate')
469  mon_group.defineHistogram('averageMu', title=f'{type_str} Average #mu; #LT#mu$GT; Events', xbins=20, xmin=0, xmax=80, opt='kAlwaysCreate')
470  mon_group.defineHistogram('TauVertexX', title=f'{type_str} Tau Vertex X; x [mm]; Events', xbins=100, xmin=-1, xmax=1, opt='kAlwaysCreate')
471  mon_group.defineHistogram('TauVertexY', title=f'{type_str} Tau Vertex Y; y [mm]; Events', xbins=100, xmin=-2, xmax=0, opt='kAlwaysCreate')
472  mon_group.defineHistogram('TauVertexZ', title=f'{type_str} Tau Vertex Z; z [mm]; Events', xbins=120, xmin=-120, xmax=120, opt='kAlwaysCreate')
473 
474 

◆ bookDiTauHLTEffHistograms()

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

Definition at line 475 of file TrigTauMonitoringConfig.py.

475  def bookDiTauHLTEffHistograms(self, mon_alg, base_path, trigger):
476  mon_group_name = f'{trigger}_DiTauHLT_Efficiency'
477  mon_group_path = f'{base_path}/DiTauHLT_Efficiency/{trigger}/DiTauHLT_Efficiency'
478  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
479 
480  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, eff='HLT', high_pt=False):
481  pass_flag = f'{eff}_pass'
482  sfx = ''
483 
484  if high_pt:
485  pass_flag += '_highPt'
486  sfx += '_highPt'
487  xlabel += ' (p_{T}^{1,2} > p_{T}^{thr 1,2} + 20 GeV)'
488 
489  mon_group.defineHistogram(f'{pass_flag},{xvariable};EffDiTau{eff}_{xvariable}{sfx}_wrt_Offline',
490  title=f'DiTau {eff} Efficiency {trigger};{xlabel};Efficiency',
491  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax, opt='kAlwaysCreate')
492 
493  eff_list = ['HLT'] + (['Total'] if self.do_total_efficiency else [])
494  for eff in eff_list:
495  defineEachStepHistograms('dR', '#Delta R(#tau,#tau)', 20, 0, 4, eff)
496  defineEachStepHistograms('dEta', '#Delta#eta(#tau,#tau)', 20, 0, 4, eff)
497  defineEachStepHistograms('dPhi', '#Delta#phi(#tau,#tau)', 8, -3.2, 3.2, eff)
498 
499  defineEachStepHistograms('dR', '#Delta R(#tau,#tau)', 20, 0, 4, eff, high_pt=True)
500  defineEachStepHistograms('dEta', '#Delta#eta(#tau,#tau)', 20, 0, 4, eff, high_pt=True)
501  defineEachStepHistograms('dPhi', '#Delta#phi(#tau,#tau)', 8, -3.2, 3.2, eff, high_pt=True)
502  defineEachStepHistograms('averageMu', '#LT#mu#GT', 10, 0, 80, eff)
503 
504  # Save quantities in TTree for offline analysis
505  mon_group.defineTree('dR,dEta,dPhi,averageMu,HLT_pass;DiTauHLTEffTree',
506  treedef='dR/F:dEta/F:dPhi/F:averageMu/F:HLT_pass/I')
507 
508 

◆ bookDiTauVars()

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

Definition at line 509 of file TrigTauMonitoringConfig.py.

509  def bookDiTauVars(self, mon_alg, base_path, trigger):
510  mon_group_name = f'{trigger}_DiTauVars'
511  mon_group_path = f'{base_path}/DiTauVars/{trigger}'
512  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
513 
514  mon_group.defineHistogram('leadHLTEt,subleadHLTEt', type='TH2F', title='p_{T}^{lead} vs p_{T}^{sublead}; p_{T}^{lead} [GeV]; p_{T}^{sublead} [GeV]',
515  xbins=50, xmin=0, xmax=250, ybins=50, ymin=0, ymax=250, opt='kAlwaysCreate')
516  mon_group.defineHistogram('leadHLTEta,subleadHLTEta', type='TH2F', title='#eta_{lead} vs #eta_{sublead}; #eta_{lead}; #eta_{sublead}',
517  xbins=26, xmin=-2.6, xmax=2.6, ybins=26, ymin=-2.6, ymax=2.6, opt='kAlwaysCreate')
518  mon_group.defineHistogram('leadHLTPhi,subleadHLTPhi', type='TH2F', title='#phi_{lead} vs #phi_{sublead}; #phi_{lead}; #phi{sublead}',
519  xbins=16, xmin=-3.2, xmax=3.2, ybins=16, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
520  mon_group.defineHistogram('dR', title='#Delta R(#tau,#tau); #Delta R(#tau,#tau); Events', xbins=40, xmin=0, xmax=4, opt='kAlwaysCreate')
521  mon_group.defineHistogram('dEta', title='#Delta#eta(#tau,#tau); #Delta#eta(#tau,#tau); Events', xbins=40, xmin=0, xmax=4, opt='kAlwaysCreate')
522  mon_group.defineHistogram('dPhi', title='#Delta#phi(#tau,#tau); #Delta#phi(#tau,#tau); Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
523 
524  mon_group.defineHistogram('Pt', title='p_{T}(#tau,#tau); p_{T} [GeV]; Events', xbins=50, xmin=0, xmax=250, opt='kAlwaysCreate')
525  mon_group.defineHistogram('Eta', title='#eta(#tau,#tau); #eta(#tau,#tau); Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
526  mon_group.defineHistogram('Phi', title='#phi(#tau,#tau); #phi(#tau,#tau); Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
527  mon_group.defineHistogram('M', title='m(#tau,#tau); m_{#tau,#tau}; Events', xbins=50, xmin=0, xmax=250, opt='kAlwaysCreate')
528  mon_group.defineHistogram('dPt', title='#Delta p_{T}(#tau, #tau); p_{T} [GeV]; Events', xbins=20, xmin=0, xmax=200, opt='kAlwaysCreate')
529 
530  mon_group.defineTree('leadHLTEt,subleadHLTEt,leadHLTEta,subleadHLTEta,leadHLTPhi,subleadHLTPhi,dR,dEta,dPhi,Pt,Eta,Phi,M,dPt;DiTauVarsTree',
531  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')
532 
533 

◆ bookHLTEffHistograms()

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

Definition at line 353 of file TrigTauMonitoringConfig.py.

353  def bookHLTEffHistograms(self, mon_alg, base_path, trigger, n_prong):
354  mon_group_name = f'{trigger}_HLT_Efficiency_{n_prong}'
355  mon_group_path = f'{base_path}/HLT_Efficiency/{trigger}/HLT_Efficiency_{n_prong}'
356  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
357 
358  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, eff='HLT', high_pt=False, coarse=False):
359  pass_flag = f'{eff}_pass'
360  sfx = ''
361 
362  if high_pt:
363  pass_flag += '_highPt'
364  sfx += '_highPt'
365  xlabel += ' (p_{T} > p_{T}^{thr} + 20 GeV)'
366  elif coarse: sfx = '_coarse'
367 
368  mon_group.defineHistogram(f'{pass_flag},{xvariable};Eff{eff}_{xvariable}{sfx}_wrt_Offline',
369  title=f'{eff} Efficiency {trigger} {n_prong}; {xlabel}; Efficiency',
370  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax, opt='kAlwaysCreate')
371 
372  coarse_binning = self.getCustomPtBinning(trigger)
373 
374  eff_list = ['HLT'] + (['Total'] if self.do_total_efficiency else [])
375  for eff in eff_list:
376  defineEachStepHistograms('tauPt', 'p_{T} [GeV]', 60, 0.0, 300., eff)
377  defineEachStepHistograms('tauPt', 'p_{T} [GeV]', coarse_binning, coarse_binning[0], coarse_binning[-1], eff, coarse=True)
378  defineEachStepHistograms('tauEta', '#eta', 13, -2.6, 2.6, eff)
379  defineEachStepHistograms('tauPhi', '#phi', 16, -3.2, 3.2, eff)
380  defineEachStepHistograms('tauEta', '#eta', 13, -2.6, 2.6, eff, high_pt=True)
381  defineEachStepHistograms('tauPhi', '#phi', 16, -3.2, 3.2, eff, high_pt=True)
382  defineEachStepHistograms('averageMu', '#LT#mu#GT', 10, 0, 80, eff)
383 
384  # Save quantities in TTree for offline analysis
385  mon_group.defineTree('tauPt,tauEta,tauPhi,averageMu,HLT_pass;HLTEffTree',
386  treedef='tauPt/F:tauEta/F:tauPhi/F:averageMu/F:HLT_pass/I')
387 
388 

◆ bookL1EffHistograms()

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

Definition at line 637 of file TrigTauMonitoringConfig.py.

637  def bookL1EffHistograms(self, mon_alg, base_path, trigger, n_prong):
638  mon_group_name = f'{trigger}_L1_Efficiency_{n_prong}'
639  mon_group_path = f'{base_path}/L1_Efficiency/{trigger}/L1_Efficiency_{n_prong}'
640  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
641 
642  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, high_pt=False, coarse=False):
643  pass_flag = 'L1_pass'
644  sfx = ''
645 
646  if high_pt:
647  pass_flag += '_highPt'
648  sfx += '_highPt'
649  xlabel += ' (p_{T}^{#tau} > p_{T}^{#tau thr} + 20 GeV)'
650  elif coarse:
651  sfx += '_coarse'
652 
653  mon_group.defineHistogram(f'{pass_flag},{xvariable};EffL1_{xvariable}{sfx}_wrt_Offline',
654  title=f'L1 Efficiency {trigger} {n_prong}; {xlabel}; Efficiency',
655  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax, opt='kAlwaysCreate')
656 
657  coarse_binning = self.getCustomPtBinning(trigger)
658 
659  defineEachStepHistograms('tauPt', 'p_{T} [GeV]', 60, 0, 300)
660  defineEachStepHistograms('tauPt', 'p_{T} [GeV]', coarse_binning, coarse_binning[0], coarse_binning[-1], coarse=True)
661  defineEachStepHistograms('tauEta', '#eta', 13, -2.6, 2.6)
662  defineEachStepHistograms('tauPhi', '#phi', 16, -3.2, 3.2)
663  defineEachStepHistograms('tauEta', '#eta', 13, -2.6, 2.6, high_pt=True)
664  defineEachStepHistograms('tauPhi', '#phi', 16, -3.2, 3.2, high_pt=True)
665  defineEachStepHistograms('averageMu', '#LT#mu#GT', 10, 0, 80)
666 
667 

◆ bookL1Vars()

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

Definition at line 668 of file TrigTauMonitoringConfig.py.

668  def bookL1Vars(self, mon_alg, base_path, trigger):
669  mon_group_name = f'{trigger}_L1Vars'
670  mon_group_path = f'{base_path}/L1Vars/{trigger}'
671  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
672 
673  mon_group.defineHistogram('L1RoIEt,L1RoIEta', type='TH2F', title='L1 RoI E_{T} vs #eta; E_{T} [GeV]; #eta',
674  xbins=60, xmin=0, xmax=300,
675  ybins=60, ymin=-2.6, ymax=2.6, opt='kAlwaysCreate')
676  mon_group.defineHistogram('L1RoIEt,L1RoIPhi', type='TH2F', title='L1 RoI E_{T} vs #phi; E_{T} [GeV]; #phi',
677  xbins=60, xmin=0, xmax=300,
678  ybins=60, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
679  mon_group.defineHistogram('L1RoIEta,L1RoIPhi', type='TH2F', title='L1 RoI #eta vs #phi; #eta; #phi',
680  xbins=60, xmin=-2.6, xmax=2.6,
681  ybins=60, ymin=-3.2, ymax=3.2, opt='kAlwaysCreate')
682  mon_group.defineHistogram('L1RoIEta', title='L1 RoI #eta; #eta; RoIs', xbins=60, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
683  mon_group.defineHistogram('L1RoIPhi', title='L1 RoI #phi; #phi; RoIs', xbins=60, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
684  mon_group.defineHistogram('L1RoIEt', title='L1 RoI E_{T}; E_{T} [GeV]; RoIs', xbins=60, xmin=0, xmax=300, opt='kAlwaysCreate')
685 
686  if 'eTAU' in trigger:
687  mon_group.defineHistogram('L1eFexRoIRCore', title='L1 eTAU RoI rCore Isolation; rCore Isolation; RoIs', xbins=250, xmin=0, xmax=1, opt='kAlwaysCreate')
688  mon_group.defineHistogram('L1eFexRoIRHad' , title='L1 eTAU RoI rHad Isolation; rHad Isolation; RoIs', xbins=250, xmin=0, xmax=1, opt='kAlwaysCreate')
689  mon_group.defineHistogram('L1eFexRoIBDTScore' , title='L1 eTAU RoI BDT score; BDT Score; RoIs', xbins=128, xmin=512, xmax=1024, opt='kAlwaysCreate')
690 
691  elif 'cTAU' in trigger:
692  mon_group.defineHistogram('L1eFexRoIRCore', title='L1 eTAU RoI rCore Isolation; eTAU rCore Isolation; RoIs', xbins=250, xmin=0, xmax=1, opt='kAlwaysCreate')
693  mon_group.defineHistogram('L1eFexRoIRHad', title='L1 eTAU RoI rHad Isolation; eTAU rHad Isolation; RoIs', xbins=250, xmin=0, xmax=1, opt='kAlwaysCreate')
694  mon_group.defineHistogram('L1cTauRoITopoMatch', title='L1Topo match between eTAU and jTAU RoI; Match; RoIs', xbins=2, xmin=0, xmax=2, opt='kAlwaysCreate')
695  mon_group.defineHistogram('L1jFexRoIIso', title='L1 jTAU RoI Isolation; E_{T}^{jTAU Iso} [GeV]; RoIs', xbins=25, xmin=0, xmax=50, opt='kAlwaysCreate')
696  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')
697  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')
698  mon_group.defineHistogram('L1eFexRoIBDTScore' , title='L1 eTAU RoI BDT score; BDT Score; RoIs', xbins=128, xmin=512, xmax=1024, opt='kAlwaysCreate')
699 
700  elif 'jTAU' in trigger:
701  mon_group.defineHistogram('L1jFexRoIIso', title='L1 jTAU RoI Isolation; jTAU Isolation [GeV]; N RoI', xbins=25, xmin=0, xmax=50, opt='kAlwaysCreate')
702 
703  else: # Legacy
704  mon_group.defineHistogram('L1RoIEMIsol', title='L1 Legacy RoI EM Isol; E_{T}^{EM Iso} [GeV]; RoIs', xbins=16, xmin=-2, xmax=30, opt='kAlwaysCreate')
705  mon_group.defineHistogram('L1RoIHadCore', title='L1 Legacy RoI Had Core; E_{T}^{Had} [GeV]; RoIs', xbins=16, xmin=-2, xmax=30, opt='kAlwaysCreate')
706  mon_group.defineHistogram('L1RoIHadIsol', title='L1 Legacy RoI Had Isol; E_{T}^{Had Iso} [GeV]; RoIs', xbins=16, xmin=-2, xmax=30, opt='kAlwaysCreate')
707  mon_group.defineHistogram('L1RoITauClus', title='L1 Legacy RoI E_{T}; E_{T} [GeV]; RoIs', xbins=260, xmin=0, xmax=130, opt='kAlwaysCreate')
708  mon_group.defineHistogram('L1RoITauClus,L1RoIEMIsol', type='TH2F', title='L1 RoI E_{T} vs EM Isol; E_{T} [GeV]; E_{T}^{EM Iso} [GeV]',
709  xbins=140, xmin=10, xmax=80, ybins=42, ymin=-1, ymax=20, opt='kAlwaysCreate')
710 
711 

◆ bookRNNInputCluster()

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

Definition at line 431 of file TrigTauMonitoringConfig.py.

431  def bookRNNInputCluster(self, mon_alg, base_path, trigger, online):
432  type_str = 'HLT' if online else 'Offline'
433  mon_group_name = f'{trigger}_RNN_{type_str}_InputCluster'
434  mon_group_path = f'{base_path}/RNNVars/InputCluster/{trigger}/{type_str}'
435  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
436 
437  mon_group.defineHistogram('n_cluster', title='Number of clusters; N_{cluster}; Events', xbins=30, xmin=0, xmax=30, opt='kAlwaysCreate')
438  mon_group.defineHistogram('cluster_et_log', title='cluster_et_log; cluster_et_log; Events', xbins=30, xmin=0, xmax=6, opt='kAlwaysCreate')
439  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')
440  mon_group.defineHistogram('cluster_eta', title='Cluster #eta; #eta; Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
441  mon_group.defineHistogram('cluster_phi', title='Cluster #phi; #phi; Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
442  mon_group.defineHistogram('cluster_dEta', title='Cluster #Delta#eta; #Delta#eta; Events', xbins=100, xmin=-0.5, xmax=0.5, opt='kAlwaysCreate')
443  mon_group.defineHistogram('cluster_dPhi', title='Cluster #Delta#phi; #Delta#phi; Events', xbins=100, xmin=-0.5, xmax=0.5, opt='kAlwaysCreate')
444  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')
445  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')
446  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')
447  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')
448  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')
449 
450 

◆ bookRNNInputScalar()

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

Definition at line 389 of file TrigTauMonitoringConfig.py.

389  def bookRNNInputScalar(self, mon_alg, base_path, trigger, n_prong, online):
390  type_str = 'HLT' if online else 'Offline'
391  mon_group_name = f'{trigger}_RNN_{type_str}_InputScalar_{n_prong}'
392  mon_group_path = f'{base_path}/RNNVars/InputScalar_{n_prong}/{trigger}/{type_str}'
393  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
394 
395  mon_group.defineHistogram('centFrac', title=f'Centrality Fraction ({n_prong}); centFrac; Events', xbins=50, xmin=-0.05, xmax=1.2, opt='kAlwaysCreate')
396  mon_group.defineHistogram('etOverPtLeadTrk', title=f'etOverPtLeadTrk log ({n_prong}); etOverPtLeadTrk_log; Events', xbins=60, xmin=-3, xmax=3, opt='kAlwaysCreate')
397  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')
398  mon_group.defineHistogram('absipSigLeadTrk', title=f'AbsIpSigLeadTrk ({n_prong}); absipSigLeadTrk; Events', xbins=25, xmin=0.0, xmax=20.0, opt='kAlwaysCreate')
399  mon_group.defineHistogram('sumPtTrkFrac', title=f'SumPtTrkFrac ({n_prong}); SumPtTrkFrac; Events', xbins=50, xmin=-0.5, xmax=1.1, opt='kAlwaysCreate')
400  mon_group.defineHistogram('emPOverTrkSysP', title=f'EMPOverTrkSysP log ({n_prong}); EMPOverTrkSysP_log; Events', xbins=50, xmin=-5, xmax=3, opt='kAlwaysCreate')
401  mon_group.defineHistogram('ptRatioEflowApprox', title=f'ptRatioEflowApprox ({n_prong}); ptRatioEflowApprox; Events', xbins=50, xmin=0.0, xmax=2.0, opt='kAlwaysCreate')
402  mon_group.defineHistogram('mEflowApprox', title=f'mEflowApprox log ({n_prong}); mEflowApprox_log; Events', xbins=50, xmin=0, xmax=5, opt='kAlwaysCreate')
403  mon_group.defineHistogram('ptDetectorAxis', title=f'ptDetectorAxis log ({n_prong}); ptDetectorAxis_log; Events', xbins=50, xmin=0, xmax=5, opt='kAlwaysCreate')
404  if n_prong == 'MP' or n_prong == '3P':
405  mon_group.defineHistogram('massTrkSys', title=f'massTrkSys log ({n_prong}); massTrkSys_log; Events', xbins=50, xmin=0, xmax=3, opt='kAlwaysCreate')
406  mon_group.defineHistogram('trFlightPathSig', title=f'trFlightPathSig ({n_prong}); trFlightPathSig; Events', xbins=100, xmin=-20, xmax=40, opt='kAlwaysCreate')
407 
408 

◆ bookRNNInputTrack()

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

Definition at line 409 of file TrigTauMonitoringConfig.py.

409  def bookRNNInputTrack(self, mon_alg, base_path, trigger, online):
410  type_str = 'HLT' if online else 'Offline'
411  mon_group_name = f'{trigger}_RNN_{type_str}_InputTrack'
412  mon_group_path = f'{base_path}/RNNVars/InputTrack/{trigger}/{type_str}'
413  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
414 
415  mon_group.defineHistogram('n_track', title='Number of tracks; N_{track}; Events', xbins=15, xmin=0, xmax=15, opt='kAlwaysCreate')
416  mon_group.defineHistogram('track_pt_log', title='track_pt_log; track_pt_log; Events', xbins=20, xmin=2, xmax=7, opt='kAlwaysCreate')
417  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')
418  mon_group.defineHistogram('track_eta', title='Track #eta; #eta; Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
419  mon_group.defineHistogram('track_phi', title='Track #phi; #phi; Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
420  mon_group.defineHistogram('track_dEta', title='Track #Delta#eta; #Delta#eta; Events', xbins=100, xmin=-0.5, xmax=0.5, opt='kAlwaysCreate')
421  mon_group.defineHistogram('track_dPhi', title='Track #Delta#phi; #Delta#phi; Events', xbins=100, xmin=-0.5, xmax=0.5, opt='kAlwaysCreate')
422  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')
423  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')
424  mon_group.defineHistogram('track_nIBLHitsAndExp', title='track_nIBLHitsAndExp; track_nIBLHitsAndExp; Events', xbins=3, xmin=0, xmax=3, opt='kAlwaysCreate')
425  mon_group.defineHistogram('track_nPixelHitsPlusDeadSensors', title='track_nPixelHitsPlusDeadSensors; track_nPixelHitsPlusDeadSensors; Events', xbins=11, xmin=0, xmax=11, opt='kAlwaysCreate')
426  mon_group.defineHistogram('track_nSCTHitsPlusDeadSensors', title='track_nSCTHitsPlusDeadSensors; track_nSCTHitsPlusDeadSensors; Events', xbins=20, xmin=0, xmax=20, opt='kAlwaysCreate')
427  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')
428  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')
429 
430 

◆ bookTAndPHLTEffHistograms()

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

Definition at line 534 of file TrigTauMonitoringConfig.py.

534  def bookTAndPHLTEffHistograms(self, mon_alg, base_path, trigger):
535  mon_group_name = f'{trigger}_TAndPHLT_Efficiency'
536  mon_group_path = f'{base_path}/TAndPHLT_Efficiency/{trigger}/TAndPHLT_Efficiency'
537  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
538 
539  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, high_pt=False, coarse=False):
540  pass_flag = 'HLT_pass'
541  sfx = ''
542 
543  if high_pt:
544  pass_flag += '_highPt'
545  sfx += '_highPt'
546  xlabel += ' (p_{T}^{#tau} > p_{T}^{#tau thr} + 20 GeV)'
547  elif coarse:
548  sfx += '_coarse'
549 
550  mon_group.defineHistogram(f'{pass_flag},{xvariable};EffTAndPHLT_{xvariable}{sfx}_wrt_Offline',
551  title=f'TAndP HLT Efficiency {trigger}; {xlabel}; Efficiency',
552  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax, opt='kAlwaysCreate')
553 
554  coarse_binning = self.getCustomPtBinning(trigger)
555 
556  defineEachStepHistograms('tauPt', 'p_{T}^{#tau} [GeV]', 60, 0.0, 300)
557  defineEachStepHistograms('tauPt', 'p_{T}^{#tau} [GeV]', coarse_binning, coarse_binning[0], coarse_binning[-1], coarse=True)
558  defineEachStepHistograms('tauEta', '#eta_{#tau}', 13, -2.6, 2.6)
559  defineEachStepHistograms('tauPhi', '#phi_{#tau}', 16, -3.2, 3.2)
560  defineEachStepHistograms('tauEta', '#eta_{#tau}', 13, -2.6, 2.6, high_pt=True)
561  defineEachStepHistograms('tauPhi', '#phi_{#tau}', 16, -3.2, 3.2, high_pt=True)
562  defineEachStepHistograms('dR', '#Delta R(#tau,lep)', 20, 0, 4)
563  defineEachStepHistograms('dEta', '#Delta#eta(#tau,lep)', 20, 0,4)
564  defineEachStepHistograms('dPhi', '#Delta#phi(#tau,lep)', 8, -3.2, 3.2)
565  defineEachStepHistograms('averageMu', '#LT#mu#GT', 10, 0, 80)
566 
567  # Save quantities in TTree for offline analysis
568  mon_group.defineTree('tauPt,tauEta,tauPhi,dR,dEta,dPhi,averageMu,HLT_pass;TAndPHLTEffTree',
569  treedef='tauPt/F:tauEta/F:tauPhi/F:dR/F:dEta/F:dPhi/F:averageMu/F:HLT_pass/I')
570 
571 

◆ bookTAndPVars()

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

Definition at line 572 of file TrigTauMonitoringConfig.py.

572  def bookTAndPVars(self, mon_alg, base_path, trigger):
573  mon_group_name = f'{trigger}_TAndPVars'
574  mon_group_path = f'{base_path}/TAndPVars/{trigger}'
575  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
576 
577  mon_group.defineHistogram('dR', title='#Delta R(#tau,lep); #Delta R(#tau,lep); Events', xbins=40, xmin=0, xmax=4, opt='kAlwaysCreate')
578  mon_group.defineHistogram('dEta', title='#Delta#eta(#tau,lep); #Delta#eta(#tau,lep); Events', xbins=40, xmin=0, xmax=4, opt='kAlwaysCreate')
579  mon_group.defineHistogram('dPhi', title='#Delta#phi(#tau,lep); #Delta#phi(#tau,lep); Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
580 
581  mon_group.defineHistogram('Pt', title='p_{T}(#tau,lep); p_{T} [GeV]; Events', xbins=50, xmin=0, xmax=250, opt='kAlwaysCreate')
582  mon_group.defineHistogram('Eta', title='#eta(#tau,lep); #eta; Events', xbins=26, xmin=-2.6, xmax=2.6, opt='kAlwaysCreate')
583  mon_group.defineHistogram('Phi', title='#phi(#tau,lep); #phi; Events', xbins=16, xmin=-3.2, xmax=3.2, opt='kAlwaysCreate')
584  mon_group.defineHistogram('M', title='m(#tau,lep); m_{#tau,lep}; Events', xbins=50, xmin=0, xmax=250, opt='kAlwaysCreate')
585  mon_group.defineHistogram('dPt', title='#Delta p_{T}(#tau,lep); p_{T} [GeV]; Events', xbins=20, xmin=0, xmax=200, opt='kAlwaysCreate')
586 
587 

◆ bookTruthEfficiency()

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

Definition at line 588 of file TrigTauMonitoringConfig.py.

588  def bookTruthEfficiency(self, mon_alg, base_path, trigger, n_prong):
589  mon_group_name = f'{trigger}_Truth_Efficiency_{n_prong}'
590  mon_group_path = f'{base_path}/Truth_Efficiency/{trigger}/Truth_Efficiency_{n_prong}'
591  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
592 
593  info = self.getTriggerInfo(trigger)
594 
595  def defineEachStepHistograms(xvariable, xlabel, xbins, xmin, xmax, high_pt=False, coarse=False):
596  pass_flag = 'HLT_pass'
597  sfx = ''
598 
599  if high_pt:
600  pass_flag += '_highPt'
601  sfx += '_highPt'
602  if info.isHLTDiTau():
603  xlabel += ' (p_{T}^{#tau} > p_{T}^{#tau min thr} + 20 GeV)'
604  else:
605  xlabel += ' (p_{T}^{#tau} > p_{T}^{#tau thr} + 20 GeV)'
606  elif coarse:
607  sfx += '_coarse'
608 
609  mon_group.defineHistogram(f'{pass_flag},{xvariable};EffHLT_{xvariable}{sfx}_wrt_Truth',
610  title=f'HLT Efficiency {trigger} {n_prong}; {xlabel}; Efficiency',
611  type='TEfficiency', xbins=xbins, xmin=xmin, xmax=xmax)
612 
613  coarse_binning = self.getCustomPtBinning(trigger)
614 
615  defineEachStepHistograms('pt_vis', 'p_{T, vis} [GeV]', 60, 0.0, 300)
616  if info.isHLTSingleTau() or info.isHLTTandP(): defineEachStepHistograms('pt_vis', 'p_{T, vis} [GeV]', coarse_binning, coarse_binning[0], coarse_binning[-1], coarse=True)
617  defineEachStepHistograms('eta_vis', '#eta_{vis}', 13, -2.6, 2.6)
618  defineEachStepHistograms('phi_vis', '#phi_{vis}', 16, -3.2, 3.2)
619  defineEachStepHistograms('eta_vis', '#eta_{vis}', 13, -2.6, 2.6, high_pt=True)
620  defineEachStepHistograms('phi_vis', '#phi_{vis}', 16, -3.2, 3.2, high_pt=True)
621 
622 

◆ bookTruthVars()

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

Definition at line 623 of file TrigTauMonitoringConfig.py.

623  def bookTruthVars(self, mon_alg, base_path, trigger, n_prong):
624  mon_group_name = f'{trigger}_TruthVars_{n_prong}'
625  mon_group_path = f'{base_path}/TruthVars/{trigger}/TruthVars_{n_prong}'
626  mon_group = self.helper.addGroup(mon_alg, mon_group_name, mon_group_path)
627 
628  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)
629  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)
630  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)
631 
632  mon_group.defineHistogram('pt_vis', title='p_{T, vis}; p_{T, vis}; Events', xbins=50, xmin=0, xmax=250)
633  mon_group.defineHistogram('eta_vis', title='#eta_{vis}; #eta_{vis}; Events', xbins=26, xmin=-2.6, xmax=2.6)
634  mon_group.defineHistogram('phi_vis', title='#phi_{vis}; #phi_{vis}; Events', xbins=16, xmin=-3.2, xmax=3.2)
635 
636 

◆ configure()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configure (   self)

Definition at line 92 of file TrigTauMonitoringConfig.py.

92  def configure(self):
93  # First load and classify the list of triggers
94  self.configureTriggers()
95 
96  # Now create, configure, and book the histograms for all the individual algorithms
97  self.logger.info('Creating the Tau monitoring algorithms...')
98 
99  if self.activate_single_tau:
100  self.configureAlgorithmSingle()
101 
102  if self.activate_ditau:
103  self.configureAlgorithmDiTau()
104 
105  if self.activate_tag_and_probe:
106  self.configureAlgorithmTagAndProbe()
107 
108  if self.activate_truth:
109  self.configureAlgorithmTruth()
110 
111  if self.activate_L1:
112  self.configureAlgorithmL1()
113 

◆ configureAlgorithmDiTau()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmDiTau (   self)

Definition at line 271 of file TrigTauMonitoringConfig.py.

271  def configureAlgorithmDiTau(self):
272  self.mon_alg_ditau = self._configureAlgorithm(CompFactory.TrigTauMonitorDiTauAlgorithm, 'TrigTauMonAlgDiTau')
273  self.mon_alg_ditau.TriggerList = self.HLT_ditau_items
274  self.mon_alg_ditau.DoTotalEfficiency = self.do_total_efficiency
275  self.mon_alg_ditau.RequireOfflineTaus = self.require_offline_taus
276 
277  self.logger.info(' |- Booking all histograms')
278  for trigger in self.HLT_ditau_items:
279  self.bookDiTauHLTEffHistograms(self.mon_alg_ditau, self.base_path, trigger)
280  self.bookDiTauVars(self.mon_alg_ditau, self.base_path, trigger)
281 
282 

◆ configureAlgorithmL1()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmL1 (   self)

Definition at line 305 of file TrigTauMonitoringConfig.py.

305  def configureAlgorithmL1(self):
306  has_xtob_etau_rois = 'L1_eTauxRoI' in self.helper.flags.Input.Collections or self.helper.flags.DQ.Environment == "tier0"
307 
308  self.mon_alg_L1 = self._configureAlgorithm(CompFactory.TrigTauMonitorL1Algorithm, 'TrigTauMonAlgL1')
309  self.mon_alg_L1.TriggerList = self.L1_items
310  self.mon_alg_L1.RequireOfflineTaus = self.require_offline_taus
311  if not has_xtob_etau_rois:
312  self.logger.info(' |- No L1_eTauxRoI container is available: e/cTAU BDT scores will be set to 0')
313  self.mon_alg_L1.Phase1L1eTauxRoIKey = ''
314 
315  self.logger.info(' |- Booking all histograms')
316  for trigger in self.L1_items:
317  for p in ('1P', '3P'):
318  self.bookL1EffHistograms(self.mon_alg_L1, self.base_path, trigger, n_prong=p)
319  self.bookL1Vars(self.mon_alg_L1, self.base_path, trigger)
320 
321  if self.do_duplicate_var_plots_without_offline_taus:
322  self.mon_alg_L1_no_offline = self._configureAlgorithm(CompFactory.TrigTauMonitorL1Algorithm, 'TrigTauMonAlgL1NoOffline')
323  self.mon_alg_L1_no_offline.TriggerList = self.L1_items
324  self.mon_alg_L1_no_offline.RequireOfflineTaus = False
325  self.mon_alg_L1_no_offline.DoEfficiencyPlots = False
326  if not has_xtob_etau_rois:
327  self.logger.info(' |- No L1_eTauxRoI container is available: e/cTAU BDT scores will be set to 0')
328  self.mon_alg_L1_no_offline.Phase1L1eTauxRoIKey = ''
329 
330  self.logger.info(' |- Booking all histograms')
331  path = f'{self.base_path}/OnlineOnlyVars'
332  for trigger in self.L1_items:
333  self.bookL1Vars(self.mon_alg_L1_no_offline, path, trigger)
334 
335  if self.do_alternative_eTAU_monitoring:
336  self.mon_alg_L1_alt = self._configureAlgorithm(CompFactory.TrigTauMonitorL1Algorithm, 'TrigTauMonAlgL1eTAUAlt')
337  self.mon_alg_L1_alt.Phase1L1eTauRoIKey = 'L1_eTauRoIAltSim' # Use alternative RoIs (with heuristic eTAU algorithm simulation)
338  self.mon_alg_L1_alt.SelectL1ByETOnly = True # We don't have threshold patterns for the Alt RoIs, so we match by ET only
339  self.mon_alg_L1_alt.RequireOfflineTaus = False
340  self.mon_alg_L1_alt.Phase1L1eTauxRoIKey = ''
341 
342  l1_items = [item for item in self.L1_items if 'eTAU' in item and not self.getTriggerInfo(item).isL1TauIsolated()] # Only non-isolated eTAU items
343  self.mon_alg_L1_alt.TriggerList = l1_items
344 
345  self.logger.info(' |- Booking all histograms')
346  path = f'{self.base_path}/L1eTAUAlt'
347  for trigger in l1_items:
348  for p in ('1P', '3P'):
349  self.bookL1EffHistograms(self.mon_alg_L1_alt, path, trigger, n_prong=p)
350  self.bookL1Vars(self.mon_alg_L1_alt, path, trigger)
351 
352 

◆ configureAlgorithmSingle()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmSingle (   self)

Definition at line 228 of file TrigTauMonitoringConfig.py.

228  def configureAlgorithmSingle(self):
229  self.mon_alg_single = self._configureAlgorithm(CompFactory.TrigTauMonitorSingleAlgorithm, 'TrigTauMonAlgSingle')
230  self.mon_alg_single.TriggerList = self.HLT_single_items
231  self.mon_alg_single.DoTotalEfficiency = self.do_total_efficiency
232  self.mon_alg_single.RequireOfflineTaus = self.require_offline_taus
233 
234  self.logger.info(' |- Booking all histograms')
235  for trigger in self.HLT_single_items:
236  # Efficiencies
237  for p in ('1P', '3P'):
238  self.bookHLTEffHistograms(self.mon_alg_single, self.base_path, trigger, n_prong=p)
239 
240  # Online distributions
241  for p in ('0P', '1P', 'MP'):
242  self.bookBasicVars(self.mon_alg_single, self.base_path, trigger, n_prong=p, online=True)
243  self.bookRNNInputScalar(self.mon_alg_single, self.base_path, trigger, n_prong=p, online=True)
244  self.bookRNNInputTrack(self.mon_alg_single, self.base_path, trigger, online=True)
245  self.bookRNNInputCluster(self.mon_alg_single, self.base_path, trigger, online=True)
246 
247  # Offline distributions
248  for p in ('1P', '3P'):
249  self.bookBasicVars(self.mon_alg_single, self.base_path, trigger, p, online=False)
250  self.bookRNNInputScalar(self.mon_alg_single, self.base_path, trigger, n_prong=p, online=False)
251  self.bookRNNInputTrack(self.mon_alg_single, self.base_path, trigger, online=False)
252  self.bookRNNInputCluster(self.mon_alg_single, self.base_path, trigger, online=False)
253 
254  if self.do_duplicate_var_plots_without_offline_taus:
255  self.mon_alg_single_no_offline = self._configureAlgorithm(CompFactory.TrigTauMonitorSingleAlgorithm, 'TrigTauMonAlgSingleNoOffline')
256  self.mon_alg_single_no_offline.TriggerList = self.HLT_single_items
257  self.mon_alg_single_no_offline.RequireOfflineTaus = False
258  self.mon_alg_single_no_offline.DoOfflineTausDistributions = False
259  self.mon_alg_single_no_offline.DoEfficiencyPlots = False
260 
261  self.logger.info(' |- Booking all histograms')
262  path = f'{self.base_path}/OnlineOnlyVars'
263  for trigger in self.HLT_single_items:
264  for p in ('0P', '1P', 'MP'):
265  self.bookBasicVars(self.mon_alg_single_no_offline, path, trigger, n_prong=p, online=True)
266  self.bookRNNInputScalar(self.mon_alg_single_no_offline, path, trigger, n_prong=p, online=True)
267  self.bookRNNInputTrack(self.mon_alg_single_no_offline, path, trigger, online=True)
268  self.bookRNNInputCluster(self.mon_alg_single_no_offline, path, trigger, online=True)
269 
270 

◆ configureAlgorithmTagAndProbe()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmTagAndProbe (   self)

Definition at line 283 of file TrigTauMonitoringConfig.py.

283  def configureAlgorithmTagAndProbe(self):
284  self.mon_alg_tag_and_probe = self._configureAlgorithm(CompFactory.TrigTauMonitorTandPAlgorithm, 'TrigTauMonAlgTandP')
285  self.mon_alg_tag_and_probe.TriggerList = self.HLT_tag_and_probe_items
286  self.mon_alg_tag_and_probe.RequireOfflineTaus = self.require_offline_taus
287 
288  self.logger.info(' |- Booking all histograms')
289  for trigger in self.HLT_tag_and_probe_items:
290  self.bookTAndPHLTEffHistograms(self.mon_alg_tag_and_probe, self.base_path, trigger)
291  self.bookTAndPVars(self.mon_alg_tag_and_probe, self.base_path, trigger)
292 
293 

◆ configureAlgorithmTruth()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureAlgorithmTruth (   self)

Definition at line 294 of file TrigTauMonitoringConfig.py.

294  def configureAlgorithmTruth(self):
295  self.mon_alg_truth = self._configureAlgorithm(CompFactory.TrigTauMonitorTruthAlgorithm, 'TrigTauMonAlgTruth')
296  self.mon_alg_truth.TriggerList = self.HLT_truth_items
297 
298  self.logger.info(' |- Booking all histograms')
299  for trigger in self.HLT_truth_items:
300  for p in ('1P', '3P'):
301  self.bookTruthEfficiency(self.mon_alg_truth, self.base_path, trigger, n_prong=p)
302  self.bookTruthVars(self.mon_alg_truth, self.base_path, trigger, n_prong=p)
303 
304 

◆ configureMode()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureMode (   self)

Definition at line 73 of file TrigTauMonitoringConfig.py.

73  def configureMode(self):
74  self.is_mc = False
75 
76  self.data_type = self.helper.flags.DQ.DataType
77  self.logger.debug('Configuring for %s', self.data_type)
78 
79  if self.data_type is DQDataType.MC:
80  self.is_mc = True
81  self.logger.debug('Enabling Truth monitoring')
82  else:
83  self.activate_truth = False
84  self.logger.debug('Using default monitoring configuration for collisions')
85 
86  if self.helper.flags.DQ.Environment == "tier0":
87  self.do_alternative_eTAU_monitoring = True
88  # We don't have any configuration specific for Cosmics or HI (the HLT Tau Monitoring is disabled for this one)
89  # If we did, we could specify it here
90 
91 

◆ configureTriggers()

def python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.configureTriggers (   self)

Definition at line 139 of file TrigTauMonitoringConfig.py.

139  def configureTriggers(self):
140  self.logger.info('Configuring triggers')
141 
142  from TrigConfigSvc.TriggerConfigAccess import getL1MenuAccess, getHLTMenuAccess, getHLTMonitoringAccess
143  # The L1 and HLT menus should always be available
144  L1_menu = getL1MenuAccess(self.helper.flags)
145  HLT_menu = getHLTMenuAccess(self.helper.flags)
146 
147  # Try to load the monitoring groups
148  HLT_monitoring = getHLTMonitoringAccess(self.helper.flags)
149  all_items = HLT_monitoring.monitoredChains(signatures='tauMon', monLevels=['shifter', 't0', 'val'])
150  # If the mon groups are not available, fallback to the hard-coded trigger monitoring list
151  if not all_items:
152  from TrigTauMonitoring.ManualChains import monitored_chains
153  self.logger.info('Could not find any monitored tau chains in the HLTMonitoring information. Will use the available items from the fallback trigger list')
154  all_items = monitored_chains
155 
156  # Classify HLT trigger chains:
157  for trigger in all_items:
158  # 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
159  # without PhI triggers. Also some old SMKs have broken HLTMonitoring DB links, with chains that are not in the Trigger Menu
160  if trigger not in HLT_menu: continue
161 
162  info = self.getTriggerInfo(trigger, use_thresholds=False)
163 
164  if self.activate_single_tau and info.isHLTSingleTau():
165  self.HLT_single_items.append(trigger)
166  elif self.activate_ditau and info.isHLTDiTau():
167  self.HLT_ditau_items.append(trigger)
168  elif self.activate_tag_and_probe and info.isHLTTandP():
169  self.HLT_tag_and_probe_items.append(trigger)
170 
171  if len(info.getL1TauItems()):
172  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
173  is_phase_1 = 'eTAU' in l1_tau_item or 'jTAU' in l1_tau_item or 'cTAU' in l1_tau_item
174  if is_phase_1 and l1_tau_item not in self.L1_Phase1_thresholds:
175  # We have only one threshold entry, because we don't use eta-dependent thresholds for Phase 1 TAU items:
176  self.L1_Phase1_thresholds[l1_tau_item] = float(L1_menu.thresholds()[l1_tau_item]['thrValues'][0]['value'])
177 
178  self.L1_Phase1_threshold_mappings[l1_tau_item] = 1 << int(L1_menu.thresholds()[l1_tau_item]['mapping']) # thresholdPatterns property mask
179 
180  if self.activate_L1 and f'L1{l1_tau_item}' not in self.L1_items:
181  self.L1_items.append(f'L1{l1_tau_item}')
182 
183  if self.activate_single_tau:
184  self.HLT_single_items.sort()
185  self.logger.info(f'Configuring HLT single-tau monitored chains: {self.HLT_single_items}')
186  if not self.HLT_single_items:
187  self.logger.warning('Empty trigger list, disabling the single-tau monitoring')
188  self.activate_single_tau = False
189 
190  if self.activate_ditau:
191  self.HLT_ditau_items.sort()
192  self.logger.info(f'Configuring HLT di-tau monitored chains: {self.HLT_ditau_items}')
193  if not self.HLT_ditau_items:
194  self.logger.warning('Empty trigger list, disabling the di-tau monitoring')
195  self.activate_ditau = False
196 
197  if self.activate_tag_and_probe:
198  self.HLT_tag_and_probe_items.sort()
199  self.logger.info(f'Configuring HLT Tag and Probe tau monitored chains: {self.HLT_tag_and_probe_items}')
200  if not self.HLT_tag_and_probe_items:
201  self.logger.warning('Empty trigger list, disabling the tag and probe monitoring')
202  self.activate_tag_and_probe = False
203 
204  if self.activate_truth:
205  # We add all chains to the Truth monitoring
206  self.HLT_truth_items = self.HLT_single_items
207  self.logger.info(f'Configuring HLT truth tau monitored chains: {self.HLT_truth_items}')
208  if not self.HLT_truth_items:
209  self.logger.warning('Empty trigger list, disabling the truth tau monitoring')
210  self.activate_truth = False
211 
212  if self.activate_L1:
213  self.L1_items.sort()
214  self.logger.info(f'Configuring L1 tau monitored items: {self.L1_items}')
215  if not self.L1_items:
216  self.logger.warning('Empty trigger list, disabling the L1 tau monitoring')
217  self.activate_L1 = False
218 
219 

◆ getCustomPtBinning()

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

Definition at line 712 of file TrigTauMonitoringConfig.py.

712  def getCustomPtBinning(self, trigger, fine=False):
713  info = self.getTriggerInfo(trigger)
714 
715  def getList(ranges, others=[250]):
716  ret = set(others + [500]) # The upper end of the x-axis will always be 500
717  for jump, interval in ranges.items():
718  ret.update(range(interval[0], interval[1], jump), interval)
719  return sorted(list(ret))
720 
721  if info.isL1TauOnly():
722  thr = info.getL1TauThreshold()
723 
724  if thr <= 8: return getList({5:(0, 30), 50:(50, 150)})
725  elif thr <= 12: return getList({5:(0, 30), 50:(50, 150)})
726  elif thr <= 20: return getList({5:(5, 40), 10:(40, 70), 50:(100, 150)})
727  elif thr <= 30: return getList({5:(15, 50), 10:(50, 70), 50:(100, 150)})
728  elif thr <= 35: return getList({5:(20, 55), 10:(60, 80), 50:(100, 150)})
729  elif thr <= 40: return getList({5:(25, 60), 10:(60, 80), 50:(100, 150)})
730  elif thr <= 60: return getList({5:(45, 80), 10:(80, 100), 50:(100, 150)})
731  elif thr <= 100: return getList({5:(85, 120), 10:(120, 140), 20:(140, 180), 50:(200, 250)})
732  else: return getList({50:(0, 200)})
733 
734  else: # HLT triggers
735  thr = info.getHLTTauThreshold()
736 
737  if fine:
738  if thr == 0: return getList({5:(0, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
739  elif thr <= 20: return getList({5:(15, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
740  elif thr <= 25: return getList({5:(20, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
741  elif thr <= 30: return getList({5:(25, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
742  elif thr <= 35: return getList({5:(30, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
743  elif thr <= 60: return getList({5:(55, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
744  elif thr <= 80: return getList({5:(75, 80), 10:(80, 120), 20:(120, 160), 40:(160, 240), 60:(240, 420)}, [])
745  elif thr <= 160: return getList({5:(155, 160), 40:(160, 240), 60:(240, 420)}, [])
746  elif thr <= 180: return getList({5:(175, 180), 40:(180, 260), 60:(260, 380)}, [])
747  else: return getList({5:(195, 200), 40:(200, 240), 60:(240, 420)}, [])
748 
749  else:
750  if thr == 0:
751  if info.getL1TauItems(): return self.getCustomPtBinning(f'L1{info.getL1TauItem()}')
752  else: return getList({5:(0, 30), 50:(50, 150)})
753  elif thr <= 20: return getList({5:(10, 40), 10:(40, 60), 20:(60, 80)}, [150, 250])
754  elif thr <= 25: return getList({5:(15, 40), 10:(40, 60), 20:(60, 80)}, [150, 250])
755  elif thr <= 30: return getList({5:(20, 50), 10:(50, 60), 20:(60, 80)}, [150, 250])
756  elif thr <= 35: return getList({5:(25, 50), 10:(50, 60), 20:(60, 80)}, [150, 250])
757  elif thr <= 60: return getList({5:(50, 70), 10:(70, 80)}, [110, 150, 250])
758  elif thr <= 80: return getList({5:(70, 90)}, [110, 150, 250])
759  elif thr <= 160: return getList({5:(150, 170), 10:(170, 180), 20:(180, 200)}, [240, 300])
760  elif thr <= 180: return getList({5:(170, 180), 10:(180, 200)}, [240, 300])
761  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 131 of file TrigTauMonitoringConfig.py.

131  def getTriggerInfo(self, trigger: str, use_thresholds=True):
132  from TrigTauMonitoring.TrigTauInfo import TrigTauInfo
133  if use_thresholds:
134  return TrigTauInfo(trigger, self._L1_Phase1_thresholds_stdmap, self._L1_Phase1_threshold_mappings_stdmap)
135  else:
136  return TrigTauInfo(trigger)
137 
138 

Member Data Documentation

◆ activate_ditau

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_ditau

Definition at line 54 of file TrigTauMonitoringConfig.py.

◆ activate_L1

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_L1

Definition at line 66 of file TrigTauMonitoringConfig.py.

◆ activate_single_tau

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_single_tau

Definition at line 50 of file TrigTauMonitoringConfig.py.

◆ activate_tag_and_probe

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_tag_and_probe

Definition at line 58 of file TrigTauMonitoringConfig.py.

◆ activate_truth

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.activate_truth

Definition at line 62 of file TrigTauMonitoringConfig.py.

◆ base_path

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.base_path

Definition at line 42 of file TrigTauMonitoringConfig.py.

◆ data_type

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.data_type

Definition at line 76 of file TrigTauMonitoringConfig.py.

◆ do_alternative_eTAU_monitoring

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.do_alternative_eTAU_monitoring
static

Definition at line 36 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 43 of file TrigTauMonitoringConfig.py.

◆ HLT_ditau_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.HLT_ditau_items

Definition at line 56 of file TrigTauMonitoringConfig.py.

◆ HLT_single_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.HLT_single_items

Definition at line 52 of file TrigTauMonitoringConfig.py.

◆ HLT_tag_and_probe_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.HLT_tag_and_probe_items

Definition at line 60 of file TrigTauMonitoringConfig.py.

◆ HLT_truth_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.HLT_truth_items

Definition at line 64 of file TrigTauMonitoringConfig.py.

◆ is_mc

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.is_mc

Definition at line 74 of file TrigTauMonitoringConfig.py.

◆ L1_items

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.L1_items

Definition at line 68 of file TrigTauMonitoringConfig.py.

◆ L1_Phase1_threshold_mappings

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.L1_Phase1_threshold_mappings

Definition at line 47 of file TrigTauMonitoringConfig.py.

◆ L1_Phase1_thresholds

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.L1_Phase1_thresholds

Definition at line 46 of file TrigTauMonitoringConfig.py.

◆ logger

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.logger

Definition at line 40 of file TrigTauMonitoringConfig.py.

◆ maxsize

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.maxsize
static

Definition at line 130 of file TrigTauMonitoringConfig.py.

◆ mon_alg_ditau

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_ditau

Definition at line 55 of file TrigTauMonitoringConfig.py.

◆ mon_alg_L1

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_L1

Definition at line 67 of file TrigTauMonitoringConfig.py.

◆ mon_alg_L1_alt

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_L1_alt

Definition at line 336 of file TrigTauMonitoringConfig.py.

◆ mon_alg_L1_no_offline

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_L1_no_offline

Definition at line 322 of file TrigTauMonitoringConfig.py.

◆ mon_alg_single

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_single

Definition at line 51 of file TrigTauMonitoringConfig.py.

◆ mon_alg_single_no_offline

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_single_no_offline

Definition at line 255 of file TrigTauMonitoringConfig.py.

◆ mon_alg_tag_and_probe

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_tag_and_probe

Definition at line 59 of file TrigTauMonitoringConfig.py.

◆ mon_alg_truth

python.TrigTauMonitoringConfig.TrigTauMonAlgBuilder.mon_alg_truth

Definition at line 63 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
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
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
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
DerivationFramework::TriggerMatchingUtils::sorted
std::vector< typename T::value_type > sorted(T begin, T end)
Helper function to create a sorted vector from an unsorted one.
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:79
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
readCCLHist.float
float
Definition: readCCLHist.py:83