6 def _IncTool(flags, name, monGroups, threshold, sel, tool=None):
10 from AthenaConfiguration.ComponentFactory
import CompFactory
11 tool = CompFactory.TrigEgammaPrecisionCaloHypoTool(name)
13 if hasattr(tool,
"MonTool"):
15 doValidationMonitoring = flags.Trigger.doValidationMonitoring
17 if (any(
'egammaMon:online' in group
for group
in monGroups)
or doValidationMonitoring):
19 HistPath =
'PrecisionCaloHypo/'+tool.getName())
20 monTool.defineHistogram(
'dEta', type=
'TH1F', path=
'EXPERT', title=
"PrecisionCalo Hypo #Delta#eta_{L2 L1}; #Delta#eta_{L2 L1}", xbins=80, xmin=-0.01, xmax=0.01)
21 monTool.defineHistogram(
'dPhi', type=
'TH1F', path=
'EXPERT', title=
"PrecisionCalo Hypo #Delta#phi_{L2 L1}; #Delta#phi_{L2 L1}", xbins=80, xmin=-0.01, xmax=0.01)
22 monTool.defineHistogram(
'Eta', type=
'TH1F', path=
'EXPERT', title=
"PrecisionCalo Hypo entries per Eta;Eta", xbins=100, xmin=-2.5, xmax=2.5)
23 monTool.defineHistogram(
'Phi', type=
'TH1F', path=
'EXPERT', title=
"PrecisionCalo Hypo entries per Phi;Phi", xbins=128, xmin=-3.2, xmax=3.2)
24 monTool.defineHistogram(
'Et_em', type=
'TH1F', path=
'EXPERT', title=
"PrecisionCalo Hypo cluster E_{T}^{EM};E_{T}^{EM} [MeV]", xbins=50, xmin=-2000, xmax=100000)
26 cuts=[
'Input',
'#Delta #eta L2-L1',
'#Delta #phi L2-L1',
'eta',
'E_{T}^{EM}']
28 monTool.defineHistogram(
'CutCounter', type=
'TH1I', path=
'EXPERT', title=
"PrecisionCalo Hypo Passed Cuts;Cut",
29 xbins=13, xmin=-1.5, xmax=12.5, opt=
"kCumulative", xlabels=cuts)
31 tool.MonTool = monTool
34 tool.EtaBins = [0.0, 0.6, 0.8, 1.15, 1.37, 1.52, 1.81, 2.01, 2.37, 2.47]
36 return [val]*( len( tool.EtaBins ) - 1 )
39 tool.dETACLUSTERthr = 0.1
40 tool.dPHICLUSTERthr = 0.1
41 tool.ET2thr =
same( 90.0*GeV )
45 tool.ETthr =
same(
float( threshold )*GeV )
46 tool.dETACLUSTERthr = 9999.
47 tool.dPHICLUSTERthr = 9999.
49 if sel ==
'etcut' or sel ==
'nopid' or sel ==
'ion':
50 tool.ETthr =
same(
float( threshold )*GeV )
51 tool.dETACLUSTERthr = 9999.
52 tool.dPHICLUSTERthr = 9999.