16def createTrigEgammaPrecisionElectronHypoAlg(flags, name, sequenceOut):
17 acc = ComponentAccumulator()
19 HistPath = 'PrecisionElectronHypo/'+name)
20
21 acc_ElectronCBSelectorTools = TrigEgammaPrecisionElectronCBSelectorCfg(flags)
22 acc_ElectronLHSelectorTools = TrigEgammaPrecisionElectronLHSelectorCfg(flags)
23 acc_ElectronDNNSelectorTools = TrigEgammaPrecisionElectronDNNSelectorCfg(flags)
24
25 acc.merge(acc_ElectronCBSelectorTools)
26 acc.merge(acc_ElectronLHSelectorTools)
27 acc.merge(acc_ElectronDNNSelectorTools)
28
29 thePrecisionElectronHypo = CompFactory.TrigEgammaPrecisionElectronHypoAlg(name)
30 thePrecisionElectronHypo.Electrons = str(sequenceOut)
31 thePrecisionElectronHypo.RunInView = True
32 thePrecisionElectronHypo.ElectronCBSelectorTools = acc_ElectronCBSelectorTools.getPublicTools()
33 thePrecisionElectronHypo.ElectronLHSelectorTools = acc_ElectronLHSelectorTools.getPublicTools()
34 thePrecisionElectronHypo.ElectronDNNSelectorTools = acc_ElectronDNNSelectorTools.getPublicTools()
35 thePrecisionElectronHypo.CBNames = ["medium", "loose", "mergedtight"]
36 thePrecisionElectronHypo.LHNames = ["lhtight", "lhmedium", "lhloose", "lhvloose",
37 "lhtight_nopix", "lhmedium_nopix","lhloose_nopix","lhvloose_nopix",
38 "lhtight_nogsf", "lhmedium_nogsf","lhloose_nogsf","lhvloose_nogsf",
39 "lhtight_nogsf_nopix", "lhmedium_nogsf_nopix","lhloose_nogsf_nopix","lhvloose_nogsf_nopix"]
40 thePrecisionElectronHypo.DNNNames = ["dnntight", "dnnmedium", "dnnloose"]
41 monTool.defineHistogram('TIME_exec', type='TH1F', path='EXPERT', title="Precision Electron Hypo Algtime; time [ us ] ; Nruns", xbins=80, xmin=0.0, xmax=8000.0)
42 monTool.defineHistogram('TIME_LH_exec', type='TH1F', path='EXPERT', title="Precision Electron Hypo LH Algtime; time [ us ] ; Nruns", xbins=20, xmin=0.0, xmax=2000)
43 monTool.defineHistogram('TIME_DNN_exec', type='TH1F', path='EXPERT', title="Precision Electron Hypo DNN Algtime; time [ us ] ; Nruns", xbins=20, xmin=0.0, xmax=2000)
44
45 thePrecisionElectronHypo.MonTool=monTool
46
47 return thePrecisionElectronHypo, acc
48