210 |
Bool_t st = true; |
Bool_t st = true; |
211 |
Int_t ntrkentry = 0; |
Int_t ntrkentry = 0; |
212 |
TrkLevel2 *trk = L2->GetTrkLevel2(); |
TrkLevel2 *trk = L2->GetTrkLevel2(); |
213 |
Bool_t filled = false; |
// Bool_t filled = false; |
214 |
// |
// |
215 |
if ( debug ) printf(" Processing event at OBT %u PKT %u time %u \n",OBT,PKT,atime); |
if ( debug ) printf(" Processing event at OBT %u PKT %u time %u \n",OBT,PKT,atime); |
216 |
// |
// |
|
this->Clear(); |
|
|
// |
|
217 |
// find out if we have trkseqno = -1, -2 or -3 |
// find out if we have trkseqno = -1, -2 or -3 |
218 |
// |
// |
219 |
Bool_t m1 = false; |
Bool_t m1 = false; |
226 |
}; |
}; |
227 |
if ( !withtrk ) m3 = true; |
if ( !withtrk ) m3 = true; |
228 |
// |
// |
229 |
|
// copy variables calculated during calibration process which is skipped here... this has been moved before this->Clear() for reprocessing purpose |
230 |
|
// |
231 |
|
event->clevel2->good = L2->GetCaloLevel2()->good; |
232 |
|
memcpy(event->clevel2->perr,L2->GetCaloLevel2()->perr,sizeof(L2->GetCaloLevel2()->perr)); |
233 |
|
memcpy(event->clevel2->swerr,L2->GetCaloLevel2()->swerr,sizeof(L2->GetCaloLevel2()->swerr)); |
234 |
|
memcpy(event->clevel2->crc,L2->GetCaloLevel2()->crc,sizeof(L2->GetCaloLevel2()->crc)); |
235 |
|
event->clevel2->selftrigger = L2->GetCaloLevel2()->selftrigger; |
236 |
|
// |
237 |
|
// |
238 |
|
this->Clear(); // moved after all calls to L2->GetCaloLevel2() since pcalo could be the same as L2->GetCaloLevel2() !!! |
239 |
|
// |
240 |
|
// |
241 |
if ( debug ) printf(" Fill estrip matrix needed to calculate variables \n"); |
if ( debug ) printf(" Fill estrip matrix needed to calculate variables \n"); |
242 |
// |
// |
243 |
// Fill the estrip matrix |
// Fill the estrip matrix |
345 |
// |
// |
346 |
event->clevel1->good2 = 1; |
event->clevel1->good2 = 1; |
347 |
// |
// |
348 |
// copy variables calculated during calibration process which is skipped here... |
// copy variables calculated during calibration process which is skipped here... this has to be moved before this->Clear() for reprocessing purpose |
349 |
// |
// |
350 |
event->clevel2->good = L2->GetCaloLevel2()->good; |
// event->clevel2->good = L2->GetCaloLevel2()->good; |
351 |
memcpy(event->clevel2->perr,L2->GetCaloLevel2()->perr,sizeof(L2->GetCaloLevel2()->perr)); |
// memcpy(event->clevel2->perr,L2->GetCaloLevel2()->perr,sizeof(L2->GetCaloLevel2()->perr)); |
352 |
memcpy(event->clevel2->swerr,L2->GetCaloLevel2()->swerr,sizeof(L2->GetCaloLevel2()->swerr)); |
// memcpy(event->clevel2->swerr,L2->GetCaloLevel2()->swerr,sizeof(L2->GetCaloLevel2()->swerr)); |
353 |
memcpy(event->clevel2->crc,L2->GetCaloLevel2()->crc,sizeof(L2->GetCaloLevel2()->crc)); |
// memcpy(event->clevel2->crc,L2->GetCaloLevel2()->crc,sizeof(L2->GetCaloLevel2()->crc)); |
354 |
event->clevel2->selftrigger = L2->GetCaloLevel2()->selftrigger; |
// event->clevel2->selftrigger = L2->GetCaloLevel2()->selftrigger; |
355 |
// |
// |
356 |
// Calculate variables common to all tracks (qtot, nstrip, etc.) |
// Calculate variables common to all tracks (qtot, nstrip, etc.) |
357 |
// |
// |
367 |
// |
// |
368 |
ntrkentry = 0; |
ntrkentry = 0; |
369 |
// |
// |
370 |
filled = false; |
// filled = false; |
371 |
// |
// |
372 |
// Run over tracks (tracker or calorimeter ) |
// Run over tracks (tracker or calorimeter ) |
373 |
// |
// |
404 |
|
|
405 |
|
|
406 |
ntrkentry++; |
ntrkentry++; |
407 |
filled = true; |
// filled = true; |
408 |
// |
// |
409 |
}; // loop on all the tracks |
}; // loop on all the tracks |
410 |
}; |
}; |
449 |
if ( debug ) printf("-3 a Call FillTrkVar() \n"); |
if ( debug ) printf("-3 a Call FillTrkVar() \n"); |
450 |
event->FillTrkVar(pcalo,ntrkentry); |
event->FillTrkVar(pcalo,ntrkentry); |
451 |
ntrkentry++; |
ntrkentry++; |
452 |
filled = true; |
// filled = true; |
453 |
// |
// |
454 |
} else { |
} else { |
455 |
if ( debug ) printf(" Selftrigger: problems with event \n"); |
if ( debug ) printf(" Selftrigger: problems with event \n"); |
496 |
if ( debug ) printf("-2 a Call FillTrkVar() \n"); |
if ( debug ) printf("-2 a Call FillTrkVar() \n"); |
497 |
event->FillTrkVar(pcalo,ntrkentry); |
event->FillTrkVar(pcalo,ntrkentry); |
498 |
ntrkentry++; |
ntrkentry++; |
499 |
filled = true; |
// filled = true; |
500 |
// |
// |
501 |
} else { |
} else { |
502 |
if ( debug ) printf(" Selftrigger: problems with event \n"); |
if ( debug ) printf(" Selftrigger: problems with event \n"); |
542 |
if ( debug ) printf("-1 a Call FillTrkVar() \n"); |
if ( debug ) printf("-1 a Call FillTrkVar() \n"); |
543 |
event->FillTrkVar(pcalo,ntrkentry); |
event->FillTrkVar(pcalo,ntrkentry); |
544 |
ntrkentry++; |
ntrkentry++; |
545 |
filled = true; |
// filled = true; |
546 |
// |
// |
547 |
} else { |
} else { |
548 |
if ( debug ) printf(" Selftrigger: problems with event \n"); |
if ( debug ) printf(" Selftrigger: problems with event \n"); |