141 """Count Algorithms write out a Count object determined
142 from TOBS produced by a single Input Algorithm."""
146 countToolSelector = {
147 'cTauMultiplicity': CompFactory.GlobalSim.cTauMultiplicityAlgTool,
148 (
'EnergyThreshold',
'jXE'): CompFactory.GlobalSim.EnergyThresholdAlgTool_jXE,
154 if ad.klass ==
'EnergyThreshold':
155 key = (ad.klass, ad.inputs[0])
160 tool = countToolSelector[key](ad.name)
161 tool.alg_instance_name = ad.name
163 tool.TOBArrayReadKey = writeHandleKeys[ad.input_sns[0]]
164 tool.CountWriteKey = ad.name +
'_Count_' +
str(ad.sn)
165 writeHandleKeys[ad.sn] = tool.CountWriteKey
167 if ad.klass
in (
'EnergyThreshold',):
170 tool.hundredMeVThreshold =
int(ad.threshold)*10 + 5
172 if ad.klass ==
'cTauMultiplicity':
173 tool.do_dump = do_dump
177 title =
"cTauMultiplicity_accept #eta Et_" + threshold_name
179 monTool.defineHistogram(
"accept_eta,accept_et",
183 xbins=200, xmin=-200, xmax=200,
184 ybins=100, ymin=0, ymax=100)
186 title_stub =
"cTauMultiplicityc " + threshold_name +
" "
187 title = title_stub +
"counts"
188 monTool.defineHistogram(
"counts",
192 xbins=15, xmin=0, xmax=15)
194 title = title_stub +
"TOB Et"
195 monTool.defineHistogram(
"Et",
199 xbins=200, xmin=0, xmax=400)
202 title = title_stub +
"#phi #eta"
203 monTool.defineHistogram(
"phi,eta",
207 xbins=200, xmin=0, xmax=400,
208 ybins=128, ymin=0, ymax=128)
211 title = title_stub +
"Et #eta"
212 monTool.defineHistogram(
"Et,eta",
216 xbins=200, xmin=0, xmax=200,
217 ybins=200, ymin=0, ymax=400)
219 title = title_stub +
"loose partial isolation"
220 monTool.defineHistogram(
"iso_loose",
224 xbins=200, xmin=0, xmax=10)
226 title = title_stub +
"medium partial isolation"
227 monTool.defineHistogram(
"iso_medium",
231 xbins=200, xmin=0, xmax=10)
234 title = title_stub +
"tight partial isolation"
235 monTool.defineHistogram(
"iso_tight",
239 xbins=200, xmin=0, xmax=10)
241 tool.monTool = monTool