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

Constructor & Destructor Documentation

◆ __init__()

python.DiTauAnalysisConfig.DiTauWorkingPointEfficiencyConfig.__init__ ( self)

Definition at line 169 of file DiTauAnalysisConfig.py.

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

Member Function Documentation

◆ instanceName()

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

Definition at line 186 of file DiTauAnalysisConfig.py.

186 def instanceName (self) :
187 """Return the instance name for this block"""
188 if self.postfix is not None:
189 return self.containerName + '_' + self.selectionName + self.postfix
190 else:
191 return self.containerName + '_' + self.selectionName
192

◆ makeAlgs()

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

Definition at line 193 of file DiTauAnalysisConfig.py.

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

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