ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.DiTauAnalysisConfig.DiTauWorkingPointConfig Class Reference
Inheritance diagram for python.DiTauAnalysisConfig.DiTauWorkingPointConfig:
Collaboration diagram for python.DiTauAnalysisConfig.DiTauWorkingPointConfig:

Public Member Functions

def __init__ (self, containerName, postfix, quality)
 
def makeAlgs (self, config)
 

Public Attributes

 containerName
 
 selectionName
 
 postfix
 
 quality
 
 legacyRecommendations
 

Detailed Description

the ConfigBlock for the tau working point

This may at some point be split into multiple blocks (16 Mar 22).

Definition at line 44 of file DiTauAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.DiTauAnalysisConfig.DiTauWorkingPointConfig.__init__ (   self,
  containerName,
  postfix,
  quality 
)

Definition at line 49 of file DiTauAnalysisConfig.py.

49  def __init__ (self, containerName, postfix, quality) :
50  super (DiTauWorkingPointConfig, self).__init__ ()
51  self.containerName = containerName
52  self.selectionName = postfix
53  self.postfix = postfix
54  self.quality = quality
55  self.legacyRecommendations = False
56 
57 

Member Function Documentation

◆ makeAlgs()

def python.DiTauAnalysisConfig.DiTauWorkingPointConfig.makeAlgs (   self,
  config 
)

Definition at line 58 of file DiTauAnalysisConfig.py.

58  def makeAlgs (self, config) :
59 
60  postfix = self.postfix
61  if postfix != '' and postfix[0] != '_' :
62  postfix = '_' + postfix
63 
64  # using enum value from: https://gitlab.cern.ch/atlas/athena/blob/21.2/PhysicsAnalysis/TauID/TauAnalysisTools/TauAnalysisTools/Enums.h
65  # the dictionary is missing in Athena, so hard-coding values here
66  if self.quality == 'Tight' :
67  IDLevel = 4 # ROOT.TauAnalysisTools.JETIDBDTTIGHT
68  elif self.quality == 'Medium' :
69  IDLevel = 3 # ROOT.TauAnalysisTools.JETIDBDTMEDIUM
70  elif self.quality == 'Loose' :
71  IDLevel = 2 # ROOT.TauAnalysisTools.JETIDBDTLOOSE
72  else :
73  raise ValueError ("invalid tau quality: \"" + self.quality +
74  "\", allowed values are Tight, Medium, Loose")
75 
76 
77  # Set up the algorithm calculating the efficiency scale factors for the
78  # taus:
79  if config.dataType() is not DataType.Data:
80  alg = config.createAlgorithm( 'CP::DiTauEfficiencyCorrectionsAlg',
81  'DiTauEfficiencyCorrectionsAlg' + postfix )
82  config.addPrivateTool( 'efficiencyCorrectionsTool',
83  'TauAnalysisTools::DiTauEfficiencyCorrectionsTool' )
84  alg.efficiencyCorrectionsTool.IDLevel = IDLevel
85  alg.scaleFactorDecoration = 'tau_effSF' + postfix
86  # alg.outOfValidity = 2 #silent
87  # alg.outOfValidityDeco = "bad_eff"
88  alg.taus = config.readName (self.containerName)
89  alg.preselection = config.getPreselection (self.containerName, self.selectionName)
90 
91 
92 
93 
94 

Member Data Documentation

◆ containerName

python.DiTauAnalysisConfig.DiTauWorkingPointConfig.containerName

Definition at line 51 of file DiTauAnalysisConfig.py.

◆ legacyRecommendations

python.DiTauAnalysisConfig.DiTauWorkingPointConfig.legacyRecommendations

Definition at line 55 of file DiTauAnalysisConfig.py.

◆ postfix

python.DiTauAnalysisConfig.DiTauWorkingPointConfig.postfix

Definition at line 53 of file DiTauAnalysisConfig.py.

◆ quality

python.DiTauAnalysisConfig.DiTauWorkingPointConfig.quality

Definition at line 54 of file DiTauAnalysisConfig.py.

◆ selectionName

python.DiTauAnalysisConfig.DiTauWorkingPointConfig.selectionName

Definition at line 52 of file DiTauAnalysisConfig.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18