ATLAS Offline Software
Loading...
Searching...
No Matches
python.DiTauAnalysisConfig.DiTauWorkingPointEfficiencyConfig Class Reference
Inheritance diagram for python.DiTauAnalysisConfig.DiTauWorkingPointEfficiencyConfig:
Collaboration diagram for python.DiTauAnalysisConfig.DiTauWorkingPointEfficiencyConfig:

Public Member Functions

 __init__ (self)
 instanceName (self)
 makeAlgs (self, config)

Detailed Description

the ConfigBlock for the tau working point efficiency computation

Definition at line 182 of file DiTauAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.DiTauAnalysisConfig.DiTauWorkingPointEfficiencyConfig.__init__ ( self)

Definition at line 185 of file DiTauAnalysisConfig.py.

185 def __init__ (self) :
186 super().__init__()
187 self.setBlockName('DiTauWorkingPointEfficiency')
188 self.addDependency('DiTauWorkingPointSelection', required=True)
189 self.addDependency('EventSelection', required=False)
190 self.addDependency('EventSelectionMerger', required=False)
191 self.addOption ('containerName', '', type=str,
192 noneAction='error',
193 info="the name of the input container.",
194 meta={'role':'containerRef'})
195 self.addOption ('selectionName', '', type=str,
196 noneAction='error',
197 info="the name of the ditau-jet selection to define (e.g. `tight` or "
198 "`loose`).",
199 meta={'role':'selection'})
200 self.addOption ('postfix', None, type=str,
201 info="a postfix to apply to decorations and algorithm names. "
202 "Typically not needed here as `selectionName` is used internally.")
203

Member Function Documentation

◆ instanceName()

python.DiTauAnalysisConfig.DiTauWorkingPointEfficiencyConfig.instanceName ( self)
Return the instance name for this block

Definition at line 204 of file DiTauAnalysisConfig.py.

204 def instanceName (self) :
205 """Return the instance name for this block"""
206 if self.postfix is not None:
207 return self.containerName + '_' + self.selectionName + self.postfix
208 else:
209 return self.containerName + '_' + self.selectionName
210

◆ makeAlgs()

python.DiTauAnalysisConfig.DiTauWorkingPointEfficiencyConfig.makeAlgs ( self,
config )

Definition at line 211 of file DiTauAnalysisConfig.py.

211 def makeAlgs (self, config) :
212
213 selectionPostfix = self.selectionName
214 if selectionPostfix != '' and selectionPostfix[0] != '_' :
215 selectionPostfix = '_' + selectionPostfix
216
217 postfix = self.postfix
218 if postfix is None :
219 postfix = self.selectionName
220 if postfix != '' and postfix[0] != '_' :
221 postfix = '_' + postfix
222
223
224 # keep this commented out until TauCP won't provide official recommendations
225 # Set up the algorithm calculating the efficiency scale factors for the
226 # taus:
227 #if config.dataType() is not DataType.Data:
228 # alg = config.createAlgorithm( 'CP::DiTauEfficiencyCorrectionsAlg',
229 # 'DiTauEfficiencyCorrectionsAlg' )
230 # config.addPrivateTool( 'efficiencyCorrectionsTool',
231 # 'TauAnalysisTools::DiTauEfficiencyCorrectionsTool' )
232 # alg.efficiencyCorrectionsTool.JetIDLevel = IDLevel
233 # alg.scaleFactorDecoration = 'tau_effSF' + postfix + '_%SYS%'
234 # # alg.outOfValidity = 2 #silent
235 # # alg.outOfValidityDeco = "bad_eff"
236 # alg.taus = config.readName (self.containerName)
237 # alg.preselection = config.getPreselection (self.containerName, self.selectionName)
238 # config.addOutputVar (self.containerName, alg.scaleFactorDecoration,
239 # 'effSF' + postfix)
240
241
242@groupBlocks

The documentation for this class was generated from the following file: