esd->SetMagneticField(AliTracker::GetBz());
hltesd->SetMagneticField(AliTracker::GetBz());
+ // Fill raw-data error log into the ESD
+ if (fRawReader) FillRawDataErrorLog(iEvent,esd);
+
// vertex finder
if (fRunVertexFinder) {
if (!ReadESD(esd, "vertex")) {
fLoader[3]->UnloadRecPoints();
}
}
+
+//_____________________________________________________________________________
+void AliReconstruction::FillRawDataErrorLog(Int_t iEvent, AliESD* esd)
+{
+ // The method reads the raw-data error log
+ // accumulated within the rawReader.
+ // It extracts the raw-data errors related to
+ // the current event and stores them into
+ // a TClonesArray inside the esd object.
+
+ if (!fRawReader) return;
+
+ for(Int_t i = 0; i < fRawReader->GetNumberOfErrorLogs(); i++) {
+
+ AliRawDataErrorLog *log = fRawReader->GetErrorLog(i);
+ if (!log) continue;
+ if (iEvent != log->GetEventNumber()) continue;
+
+ esd->AddRawDataErrorLog(log);
+ }
+
+}
void WriteAlignmentData(AliESD* esd);
+ void FillRawDataErrorLog(Int_t iEvent, AliESD* esd);
//*** Global reconstruction flags *******************
Bool_t fUniformField; // uniform field tracking flag