17 menu=electronLHmenu.offlineMC21):
18
19 mlog = logging.getLogger('AsgElectronLikelihoodTool')
20 mlog.debug('Start configuration')
21
22 AsgElectronLikelihoodTool = CompFactory.AsgElectronLikelihoodTool
23 acc = ComponentAccumulator()
24
25 try:
26 ntuple = ElectronLikelihoodMap(quality, menu)
27 mlog.debug('ntuple: %s', ntuple)
28 except KeyError:
29 mlog.error("ElectronLH quality not found."
30 "Please use an egammaIDQuality "
31 "(ElectronPhotonSelectorTools/egammaPIDdefs.h). "
32 "This function only supports standard electronLH IDs,"
33 "and not standard electron IDs or photon or forward IDs")
34 raise
35
36
38
39 tool.usePVContainer = flag.Tracking.doVertexFinding
40
41
42 ntuple[1](tool)
43
44 acc.setPrivateTools(tool)
45 return acc