228 m_outFile <<
"Det Eta,Phi,D Mean Error" << std::endl;
230 m_outFile <<
"Det Eta,Phi,D Peak Error" << std::endl;
232 m_outFile <<
"Det Eta,Phi,D Mean Error Peak Error MeanEv Error PeakEv Error" 239 time1 =
_meol->second[10].first->GetMean();
244 for (
int j = 0;
j < 10;
j++)
248 _meol->second[10].first->Fit(
"landau",
"Q");
250 TF1*
fit =
_meol->second[10].first->GetFunction(
"landau");
252 time2 =
fit->GetParameter(1);
253 dtime2 =
fit->GetParError(1);
256 time3 =
_meol->second[12].first->GetMean();
257 dtime3 =
_meol->second[12].first->GetRMS() /
sqrt((
float)
_meol->second[12].first->GetEntries());
260 time4 =
_meol->second[13].first->GetMean();
261 dtime4 =
_meol->second[13].first->GetRMS() /
sqrt((
float)
_meol->second[13].first->GetEntries());
263 for (
int i = 0;
i < 10;
i++) {
264 _meol->second[
i].first->GetXaxis()->SetTitle(
"Pulse height (fC)");
265 _meol->second[
i].first->GetYaxis()->SetTitle(
"Counts");
268 _meol->second[10].first->GetXaxis()->SetTitle(
"Time slice");
269 _meol->second[10].first->GetYaxis()->SetTitle(
"Averaged pulse (fC)");
271 _meol->second[10].first->Write();
272 _meol->second[10].second.first[0].push_back(time1);
273 _meol->second[10].second.first[1].push_back(dtime1);
274 _meol->second[11].second.first[0].push_back(time2);
275 _meol->second[11].second.first[1].push_back(dtime2);
276 _meol->second[12].first->GetXaxis()->SetTitle(
"Mean TS");
277 _meol->second[12].first->GetYaxis()->SetTitle(
"Counts");
279 _meol->second[12].first->Write();
280 _meol->second[12].second.first[0].push_back(time3);
281 _meol->second[12].second.first[1].push_back(dtime3);
282 _meol->second[13].first->GetXaxis()->SetTitle(
"Peak TS");
283 _meol->second[13].first->GetYaxis()->SetTitle(
"Counts");
285 _meol->second[13].first->Write();
286 _meol->second[13].second.first[0].push_back(time4);
287 _meol->second[13].second.first[1].push_back(dtime4);
288 _meol->second[14].first->GetXaxis()->SetTitle(
"Peak TS error");
289 _meol->second[14].first->GetYaxis()->SetTitle(
"Counts");
291 _meol->second[14].first->Write();
292 _meol->second[15].first->GetXaxis()->SetTitle(
"Chi2/NDF");
293 _meol->second[15].first->GetYaxis()->SetTitle(
"Counts");
295 _meol->second[15].first->Write();
296 _meol->second[16].first->GetXaxis()->SetTitle(
"Integrated Signal");
297 _meol->second[16].first->Write();
304 m_outFile << detid <<
" " << time1 <<
" " << dtime1 << std::endl;
308 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
326 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
330 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time1);
333 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime1);
342 m_outFile << detid <<
" " << time2 <<
" " << dtime2 << std::endl;
346 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
363 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
367 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time2);
370 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime2);
380 m_outFile << detid <<
" " << time3 <<
" " << dtime3 << std::endl;
384 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
401 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
405 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time3);
408 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime3);
416 m_outFile << detid <<
" " << time4 <<
" " << dtime4 << std::endl;
420 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
437 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId());
441 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time4);
444 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime4);
454 m_outFile << detid <<
" " << time1 <<
" " << dtime1 <<
" " << time2 <<
" " << dtime2 <<
" " << time3
455 <<
" " << 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