209 double time2=0;
double time1=0;
double time3=0;
double time4=0;
210 double dtime2=0;
double dtime1=0;
double dtime3=0;
double dtime4=0;
216 else if(
m_fitflag==4)
m_outFile<<
"Det Eta,Phi,D Mean Error Peak Error MeanEv Error PeakEv Error"<<std::endl;
222 time1 =
_meol->second[10].first->GetMean();
227 for(
int j=0; j<10; j++)
_meol->second[10].first->SetBinError(j+1,
_meol->second[j].first->GetRMS()/
sqrt((
float)
evt_curr));
230 _meol->second[10].first->Fit(
"landau",
"Q");
232 TF1 *
fit =
_meol->second[10].first->GetFunction(
"landau");
234 time2=fit->GetParameter(1);
235 dtime2=fit->GetParError(1);
238 time3 =
_meol->second[12].first->GetMean();
239 dtime3 =
_meol->second[12].first->GetRMS()/
sqrt((
float)
_meol->second[12].first->GetEntries());
242 time4 =
_meol->second[13].first->GetMean();
243 dtime4 =
_meol->second[13].first->GetRMS()/
sqrt((
float)
_meol->second[13].first->GetEntries());
245 for (
int i=0;
i<10;
i++){
246 _meol->second[
i].first->GetXaxis()->SetTitle(
"Pulse height (fC)");
247 _meol->second[
i].first->GetYaxis()->SetTitle(
"Counts");
250 _meol->second[10].first->GetXaxis()->SetTitle(
"Time slice");
251 _meol->second[10].first->GetYaxis()->SetTitle(
"Averaged pulse (fC)");
253 _meol->second[10].second.first[0].push_back(time1);
254 _meol->second[10].second.first[1].push_back(dtime1);
255 _meol->second[11].second.first[0].push_back(time2);
256 _meol->second[11].second.first[1].push_back(dtime2);
257 _meol->second[12].first->GetXaxis()->SetTitle(
"Mean TS");
258 _meol->second[12].first->GetYaxis()->SetTitle(
"Counts");
260 _meol->second[12].second.first[0].push_back(time3);
261 _meol->second[12].second.first[1].push_back(dtime3);
262 _meol->second[13].first->GetXaxis()->SetTitle(
"Peak TS");
263 _meol->second[13].first->GetYaxis()->SetTitle(
"Counts");
265 _meol->second[13].second.first[0].push_back(time4);
266 _meol->second[13].second.first[1].push_back(dtime4);
267 _meol->second[14].first->GetXaxis()->SetTitle(
"Peak TS error");
268 _meol->second[14].first->GetYaxis()->SetTitle(
"Counts");
270 _meol->second[15].first->GetXaxis()->SetTitle(
"Chi2/NDF");
271 _meol->second[15].first->GetYaxis()->SetTitle(
"Counts");
273 _meol->second[16].first->GetXaxis()->SetTitle(
"Integrated Signal");
274 _meol->second[16].first->Write();
282 m_outFile<<detid<<
" "<<time1<<
" "<<dtime1<<std::endl;
286 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
300 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId() );
304 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time1);
307 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime1);
317 m_outFile<<detid<<
" "<<time2<<
" "<<dtime2<<std::endl;
321 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
334 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId() );
338 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time2);
341 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime2);
351 m_outFile<<detid<<
" "<<time3<<
" "<<dtime3<<std::endl;
355 m_outputFileXML <<
" <EXTENSION_TABLE_NAME>HCAL_CHANNELS</EXTENSION_TABLE_NAME>" << endl;
368 snprintf(
output,
sizeof output,
" <HCAL_CHANNEL_ID>%10i</HCAL_CHANNEL_ID>", detid.
rawId() );
372 snprintf(
output,
sizeof output,
" <MEAN_TIME>%7f</MEAN_TIME>", time3);
375 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime3);
384 m_outFile<<detid<<
" "<<time4<<
" "<<dtime4<<std::endl;
388 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>", time4);
408 snprintf(
output,
sizeof output,
" <ERROR_STAT>%7f</ERROR_STAT>", dtime4);
418 m_outFile<<detid<<
" "<<time1<<
" "<<dtime1<<
" "<<time2<<
" "<<dtime2<<
" "<<time3<<
" "<<dtime3<<
" "<<time4<<
" "<<dtime4<<std::endl;
HcalSubdetector subdet() const
get the subdetector
int zside() const
get the z-side of the cell (1/-1)
constexpr uint32_t rawId() const
get the raw id
int depth() const
get the tower depth
std::ofstream m_outputFileXML
int ietaAbs() const
get the absolute value of the cell ieta
int iphi() const
get the cell iphi
std::string m_outputFileText
std::map< HcalDetId, std::map< int, LEDBUNCH > >::iterator _meol