}
}
+const AliRawEventHeaderBase* AliRawReaderRoot::GetEventHeader() const
+{
+ // Get the even header
+ // Return NULL in case of failure
+ if (!fEvent) return NULL;
+ return fEvent->GetHeader();
+}
UInt_t AliRawReaderRoot::GetType() const
{
if (!fFile) return kFALSE;
do {
- if (fBranch->GetEntry(fEventIndex+1) <= 0) {
- delete fEvent;
- fEvent = new AliRawEvent;
- fBranch->SetAddress(&fEvent);
+ delete fEvent;
+ fEvent = new AliRawEvent;
+ fBranch->SetAddress(&fEvent);
+ if (fBranch->GetEntry(fEventIndex+1) <= 0)
return kFALSE;
- }
fEventIndex++;
} while (!IsEventSelected());
+ fEventNumber++;
return Reset();
}
delete fEvent;
fEvent = new AliRawEvent;
fBranch->SetAddress(&fEvent);
+ fEventNumber = -1;
return Reset();
}