226 m_outFile <<
"Det Eta,Phi,D Mean Error" << std::endl;
228 m_outFile <<
"Det Eta,Phi,D Peak Error" << std::endl;
230 m_outFile <<
"Det Eta,Phi,D Mean Error Peak Error MeanEv Error PeakEv Error" 237 time1 =
_meol->second[10].first->GetMean();
242 for (
int j = 0;
j < 10;
j++)
246 _meol->second[10].first->Fit(
"landau",
"Q");
248 TF1*
fit =
_meol->second[10].first->GetFunction(
"landau");
250 time2 =
fit->GetParameter(1);
251 dtime2 =
fit->GetParError(1);
254 time3 =
_meol->second[12].first->GetMean();
255 dtime3 =
_meol->second[12].first->GetRMS() /
sqrt((
float)
_meol->second[12].first->GetEntries());
258 time4 =
_meol->second[13].first->GetMean();
259 dtime4 =
_meol->second[13].first->GetRMS() /
sqrt((
float)
_meol->second[13].first->GetEntries());
261 for (
int i = 0;
i < 10;
i++) {
262 _meol->second[
i].first->GetXaxis()->SetTitle(
"Pulse height (fC)");
263 _meol->second[
i].first->GetYaxis()->SetTitle(
"Counts");
266 _meol->second[10].first->GetXaxis()->SetTitle(
"Time slice");
267 _meol->second[10].first->GetYaxis()->SetTitle(
"Averaged pulse (fC)");
269 _meol->second[10].first->Write();
270 _meol->second[10].second.first[0].push_back(time1);
271 _meol->second[10].second.first[1].push_back(dtime1);
272 _meol->second[11].second.first[0].push_back(time2);
273 _meol->second[11].second.first[1].push_back(dtime2);
274 _meol->second[12].first->GetXaxis()->SetTitle(
"Mean TS");
275 _meol->second[12].first->GetYaxis()->SetTitle(
"Counts");
277 _meol->second[12].first->Write();
278 _meol->second[12].second.first[0].push_back(time3);
279 _meol->second[12].second.first[1].push_back(dtime3);
280 _meol->second[13].first->GetXaxis()->SetTitle(
"Peak TS");
281 _meol->second[13].first->GetYaxis()->SetTitle(
"Counts");
283 _meol->second[13].first->Write();
284 _meol->second[13].second.first[0].push_back(time4);
285 _meol->second[13].second.first[1].push_back(dtime4);
286 _meol->second[14].first->GetXaxis()->SetTitle(
"Peak TS error");
287 _meol->second[14].first->GetYaxis()->SetTitle(
"Counts");
289 _meol->second[14].first->Write();
290 _meol->second[15].first->GetXaxis()->SetTitle(
"Chi2/NDF");
291 _meol->second[15].first->GetYaxis()->SetTitle(
"Counts");
293 _meol->second[15].first->Write();
294 _meol->second[16].first->GetXaxis()->SetTitle(
"Integrated Signal");
295 _meol->second[16].first->Write();
302 m_outFile << detid <<
" " << time1 <<
" " << dtime1 << std::endl;
306 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
324 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
328 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time1);
331 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime1);
340 m_outFile << detid <<
" " << time2 <<
" " << dtime2 << std::endl;
344 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
361 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
365 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time2);
368 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime2);
378 m_outFile << detid <<
" " << time3 <<
" " << dtime3 << std::endl;
382 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
399 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
403 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time3);
406 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime3);
414 m_outFile << detid <<
" " << time4 <<
" " << dtime4 << std::endl;
418 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
435 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
439 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time4);
442 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime4);
452 m_outFile << detid <<
" " << time1 <<
" " << dtime1 <<
" " << time2 <<
" " << dtime2 <<
" " << time3
453 <<
" " << dtime3 <<
" " << time4 <<
" " << dtime4 << std::endl;
constexpr int zside() const
get the z-side of the cell (1/-1)
constexpr int ietaAbs() const
get the absolute value of the cell ieta
constexpr HcalSubdetector subdet() const
get the subdetector
std::map< HcalDetId, std::map< int, LEDBUNCH > >::iterator _meol
std::ofstream m_outputFileXML
constexpr uint32_t rawId() const
get the raw id
std::string m_outputFileText
constexpr int iphi() const
get the cell iphi
constexpr int depth() const
get the tower depth