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.
◆ __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
◆ makeAlgs()
def python.DiTauAnalysisConfig.DiTauWorkingPointConfig.makeAlgs |
( |
|
self, |
|
|
|
config |
|
) |
| |
Definition at line 58 of file DiTauAnalysisConfig.py.
58 def makeAlgs (self, config) :
60 postfix = self.postfix
61 if postfix !=
'' and postfix[0] !=
'_' :
62 postfix =
'_' + postfix
66 if self.quality ==
'Tight' :
68 elif self.quality ==
'Medium' :
70 elif self.quality ==
'Loose' :
73 raise ValueError (
"invalid tau quality: \"" + self.quality +
74 "\", allowed values are Tight, Medium, Loose")
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
88 alg.taus = config.readName (self.containerName)
89 alg.preselection = config.getPreselection (self.containerName, self.selectionName)
◆ containerName
python.DiTauAnalysisConfig.DiTauWorkingPointConfig.containerName |
◆ legacyRecommendations
python.DiTauAnalysisConfig.DiTauWorkingPointConfig.legacyRecommendations |
◆ postfix
python.DiTauAnalysisConfig.DiTauWorkingPointConfig.postfix |
◆ quality
python.DiTauAnalysisConfig.DiTauWorkingPointConfig.quality |
◆ selectionName
python.DiTauAnalysisConfig.DiTauWorkingPointConfig.selectionName |
The documentation for this class was generated from the following file: