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 172 of file DiTauAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

python.DiTauAnalysisConfig.DiTauWorkingPointEfficiencyConfig.__init__ ( self)

Definition at line 175 of file DiTauAnalysisConfig.py.

175 def __init__ (self) :
176 super (DiTauWorkingPointEfficiencyConfig, self).__init__ ()
177 self.setBlockName('DiTauWorkingPointEfficiency')
178 self.addDependency('DiTauWorkingPointSelection', required=True)
179 self.addDependency('EventSelection', required=False)
180 self.addDependency('EventSelectionMerger', required=False)
181 self.addOption ('containerName', '', type=str,
182 noneAction='error',
183 info="the name of the input container.")
184 self.addOption ('selectionName', '', type=str,
185 noneAction='error',
186 info="the name of the ditau-jet selection to define (e.g. `tight` or "
187 "`loose`).")
188 self.addOption ('postfix', None, type=str,
189 info="a postfix to apply to decorations and algorithm names. "
190 "Typically not needed here as `selectionName` is used internally.")
191

Member Function Documentation

◆ instanceName()

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

Definition at line 192 of file DiTauAnalysisConfig.py.

192 def instanceName (self) :
193 """Return the instance name for this block"""
194 if self.postfix is not None:
195 return self.containerName + '_' + self.selectionName + self.postfix
196 else:
197 return self.containerName + '_' + self.selectionName
198

◆ makeAlgs()

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

Definition at line 199 of file DiTauAnalysisConfig.py.

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

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