230 def configure(self, options: Mapping[str, Any]) ->
None:
231 """
232 Configure this module. Potential elements of "options":
233 target: should be a ROOT-openable filename or URL which
234 can be opened for writing.
235 prefix: directory path to place results under.
236 overwrite: boolean to indicate whether results should overwrite
237 existing histograms in the file.
238 delay: only write histograms in finalize() (not during publish()).
239 """
240 if 'target' not in options:
241 raise ValueError("Must specify 'target' as an option "
242 "to AthInputModule")
243 self.target = options['target']
244 self.overwrite = bool(options.get('overwrite', True))
245 self.prefix = options.get('prefix', '/')
246 self.delay = bool(options.get('delay', True))
247 self.queue: Optional[Dict[str, HistObject]] = {}
248 self._hsvc_funcs = {'hist': { 'exists': self.target.hsvc.existsHist,
249 'get': self.target.hsvc.getHist,
250 'reg': self.target.hsvc._cpp_regHist },
251 'graph': { 'exists': self.target.hsvc.existsGraph,
252 'get': self.target.hsvc.getGraph,
253 'reg': self.target.hsvc._cpp_regGraph },
254 'eff': { 'exists': self.target.hsvc.existsEfficiency,
255 'get': self.target.hsvc.getEfficiency,
256 'reg': self.target.hsvc._cpp_regEfficiency },
257 }
258
bool configure(asg::AnaToolHandle< ITrigGlobalEfficiencyCorrectionTool > &tool, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronEffToolsHandles, ToolHandleArray< IAsgElectronEfficiencyCorrectionTool > &electronSFToolsHandles, ToolHandleArray< CP::IMuonTriggerScaleFactors > &muonToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonEffToolsHandles, ToolHandleArray< IAsgPhotonEfficiencyCorrectionTool > &photonSFToolsHandles, const std::string &triggers, const std::map< std::string, std::string > &legsPerTool, unsigned long nToys, bool debug)