242 std::cout <<
"done filling histograms..." << std::endl;
246 <<
" entries" << std::endl;
249 std::cout <<
"hist vect is empty!" << std::endl;
254 uint8_t mac = macHist.first;
255 vector<TH1F*>* hvec = macHist.second;
257 std::cout <<
"construct instance of CrtCal for mac5 " << (short)mac << std::endl;
261 std::cout <<
"retreiving cal data..." << std::endl;
262 fMac5 = macHist.first;
263 bool* ptrActive = cal->GetActive();
264 float* ptrGain = cal->GetGain();
265 float* ptrGainErr = cal->GetGainErr();
266 float* ptrGainXsqr = cal->GetGainXsqr();
267 short* ptrGainNdf = cal->GetGainNdf();
268 float* ptrGainPed = cal->GetGainPed();
269 float* ptrGainPedErr = cal->GetGainPedErr();
270 short* ptrNpeak = cal->GetNpeak();
271 float** ptrPeakNorm = cal->GetPeakNorm();
272 float** ptrPeakNormErr = cal->GetPeakNormErr();
273 float** ptrPeakSigma = cal->GetPeakSigma();
274 float** ptrPeakSigmaErr = cal->GetPeakSigmaErr();
275 float** ptrPeakMean = cal->GetPeakMean();
276 float** ptrPeakMeanErr = cal->GetPeakMeanErr();
277 float** ptrPeakXsqr = cal->GetPeakXsqr();
278 short** ptrPeakNdf = cal->GetPeakNdf();
279 float* ptrPed = cal->GetPed();
280 float* ptrPedErr = cal->GetPedErr();
281 float* ptrPedXsqr = cal->GetPedXsqr();
282 short* ptrPedNdf = cal->GetPedNdf();
283 float* ptrPedSigma = cal->GetPedSigma();
284 float* ptrPedSigmaErr = cal->GetPedSigmaErr();
285 float* ptrPedNorm = cal->GetPedNorm();
286 float* ptrPedNormErr = cal->GetPedNormErr();
287 int* ptrThreshADC = cal->GetThreshADC();
288 float* ptrThreshPE = cal->GetThreshPE();
289 int* ptrNabove = cal->GetNabove();
292 for(
size_t i=0; i<32; i++){
293 if(ptrActive!=
nullptr)
fActive[i] = ptrActive[i];
294 if(ptrGain!=
nullptr)
fGain[i] = ptrGain[i];
295 if(ptrGainErr!=
nullptr)
fGainErr[i] = ptrGainErr[i];
296 if(ptrGainXsqr!=
nullptr)
fGainXsqr[i] = ptrGainXsqr[i];
297 if(ptrGainNdf!=
nullptr)
fGainNdf[i] = ptrGainNdf[i];
298 if(ptrGainPed!=
nullptr)
fGainPed[i] = ptrGainPed[i];
299 if(ptrGainPedErr!=
nullptr)
fGainPedErr[i] = ptrGainPedErr[i];
300 if(ptrNpeak!=
nullptr)
fNpeak[i] = ptrNpeak[i];
301 if(ptrPed!=
nullptr)
fPed[i] = ptrPed[i];
302 if(ptrPedErr!=
nullptr)
fPedErr[i] = ptrPedErr[i];
303 if(ptrPedXsqr!=
nullptr)
fPedXsqr[i] = ptrPedXsqr[i];
304 if(ptrPedNdf!=
nullptr)
fPedNdf[i] = ptrPedNdf[i];
305 if(ptrPedSigma!=
nullptr)
fPedSigma[i] = ptrPedSigma[i];
306 if(ptrPedSigmaErr!=
nullptr)
fPedSigmaErr[i] = ptrPedSigmaErr[i];
307 if(ptrPedNorm!=
nullptr)
fPedNorm[i] = ptrPedNorm[i];
308 if(ptrPedNormErr!=
nullptr)
fPedNormErr[i] = ptrPedNormErr[i];
309 if(ptrThreshADC!=
nullptr)
fThreshADC[i] = ptrThreshADC[i];
310 if(ptrThreshPE!=
nullptr)
fThreshPE[i] = ptrThreshPE[i];
311 if(ptrNabove!=
nullptr)
fNabove[i] = ptrNabove[i];
313 for(
size_t j=0; j<5; j++){
314 if(ptrPeakNorm!=
nullptr)
fPeakNorm[i][j] = ptrPeakNorm[i][j];
315 if(ptrPeakNormErr!=
nullptr)
fPeakNormErr[i][j] = ptrPeakNormErr[i][j];
316 if(ptrPeakSigma!=
nullptr)
fPeakSigma[i][j] = ptrPeakSigma[i][j];
317 if(ptrPeakSigmaErr!=
nullptr)
fPeakSigmaErr[i][j] = ptrPeakSigmaErr[i][j];
318 if(ptrPeakMean!=
nullptr)
fPeakMean[i][j] = ptrPeakMean[i][j];
319 if(ptrPeakMeanErr!=
nullptr)
fPeakMeanErr[i][j] = ptrPeakMeanErr[i][j];
320 if(ptrPeakXsqr!=
nullptr)
fPeakXsqr[i][j] = ptrPeakXsqr[i][j];
321 if(ptrPeakNdf!=
nullptr)
fPeakNdf[i][j] = ptrPeakNdf[i][j];
325 std::cout <<
"fill tree event" << std::endl;
float fPeakSigmaErr[32][5]
float fPeakNormErr[32][5]
float fPeakMeanErr[32][5]
map< uint8_t, vector< TH1F * > * > macToHistos
BEGIN_PROLOG could also be cout