48 def __init__(self, name, monGroups, cpart, tool=None):
50 from AthenaCommon.Logging
import logging
51 self.
__log = logging.getLogger(
'TrigEgammaPrecisionPhotonHypoTool')
54 self.
__sel = cpart[
'addInfo'][0]
if cpart[
'addInfo']
else cpart[
'IDinfo']
58 tool = CompFactory.TrigEgammaPrecisionPhotonHypoTool( name )
60 tool.EtaBins = [0.0, 0.6, 0.8, 1.15, 1.37, 1.52, 1.81, 2.01, 2.37, 2.47]
62 tool.dETACLUSTERthr = 0.1
63 tool.dPHICLUSTERthr = 0.1
135 HistPath =
'PrecisionPhotonHypo/'+self.
__name)
136 monTool.defineHistogram(
'dEta', type=
'TH1F', path=
'EXPERT', title=
"PrecisionPhoton Hypo #Delta#eta_{EF L1}; #Delta#eta_{EF L1}", xbins=80, xmin=-0.01, xmax=0.01)
137 monTool.defineHistogram(
'dPhi', type=
'TH1F', path=
'EXPERT', title=
"PrecisionPhoton Hypo #Delta#phi_{EF L1}; #Delta#phi_{EF L1}", xbins=80, xmin=-0.01, xmax=0.01)
138 monTool.defineHistogram(
'Et_em', type=
'TH1F', path=
'EXPERT', title=
"PrecisionPhoton Hypo cluster E_{T}^{EM};E_{T}^{EM} [MeV]", xbins=50, xmin=-2000, xmax=100000)
139 monTool.defineHistogram(
'Eta', type=
'TH1F', path=
'EXPERT', title=
"PrecisionPhoton Hypo entries per Eta;Eta", xbins=100, xmin=-2.5, xmax=2.5)
140 monTool.defineHistogram(
'Phi', type=
'TH1F', path=
'EXPERT', title=
"PrecisionPhoton Hypo entries per Phi;Phi", xbins=128, xmin=-3.2, xmax=3.2)
141 monTool.defineHistogram(
'EtaBin', type=
'TH1I', path=
'EXPERT', title=
"PrecisionPhoton Hypo entries per Eta bin;Eta bin no.", xbins=11, xmin=-0.5, xmax=10.5)
143 cuts=[
'Input',
'#Delta #eta EF-L1',
'#Delta #phi EF-L1',
'eta',
'E_{T}^{EM}']
145 monTool.defineHistogram(
'CutCounter', type=
'TH1I', path=
'EXPERT', title=
"PrecisionPhoton Hypo Passed Cuts;Cut",
146 xbins=13, xmin=-1.5, xmax=12.5, opt=
"kCumulative", xlabels=cuts)
148 if flags.Trigger.doValidationMonitoring:
149 monTool.defineHistogram(
'etcone20',type=
'TH1F',path=
'EXPERT',title=
"PrecisionPhoton Hypo etcone20; etcone20;", xbins=50, xmin=0, xmax=5.0)
150 monTool.defineHistogram(
'topoetcone20',type=
'TH1F',path=
'EXPERT',title=
"PrecisionPhoton Hypo; topoetcone20;", xbins=50, xmin=-10, xmax=10)
151 monTool.defineHistogram(
'reletcone20',type=
'TH1F',path=
'EXPERT',title=
"PrecisionPhoton Hypo etcone20/et; etcone20/et;", xbins=50, xmin=-0.5, xmax=0.5)
152 monTool.defineHistogram(
'reltopoetcone20',type=
'TH1F',path=
'EXPERT',title=
"PrecisionPhoton Hypo; topoetcone20/pt;", xbins=50, xmin=-0.5, xmax=0.5)
154 self.
tool().MonTool = monTool