20def _diPhotonComboHypoToolFromDict(flags, chainDict, lowermass=80000,uppermass=-999,dphi=1.5,applymass=False,applydphi=False):
21 name = chainDict['chainName']
23 HistPath = 'EgammaMassHypo/'+name)
24 monTool.defineHistogram('DphiOfAccepted', type='TH1F', path='EXPERT', title="PrecisionCalo Hypo entries per Phi;Phi", xbins=128, xmin=-3.2, xmax=3.2)
25 monTool.defineHistogram('MassOfAccepted', type='TH1F', path='EXPERT', title="Mass in accepted combinations [MeV]", xbins=75, xmin=0, xmax=150000)
26
27 tool= CompFactory.TrigEgammaTopoHypoTool(name,
28 AcceptAll = False,
29 ApplyMassCut = applymass,
30 LowerMassEgammaClusterCut = lowermass,
31 UpperMassEgammaClusterCut = uppermass,
32 ApplyDPhiCut = applydphi,
33 ThresholdDPhiCut = dphi,
34 MonTool = monTool)
35 return tool
36