fErrorCode(0),
fEventNumber(-1),
fErrorLogs("AliRawDataErrorLog",100),
- fHeaderSwapped(NULL)
+ fHeaderSwapped(NULL),
+ fIsValid(kTRUE)
{
// default constructor: initialize data members
// Allocate the swapped header in case of Mac
fErrorCode(0),
fEventNumber(-1),
fErrorLogs("AliRawDataErrorLog",100),
- fHeaderSwapped(NULL)
+ fHeaderSwapped(NULL),
+ fIsValid(rawReader.fIsValid)
{
// copy constructor
// Allocate the swapped header in case of Mac
fEventNumber = rawReader.fEventNumber;
fErrorLogs = *((TClonesArray*)rawReader.fErrorLogs.Clone());
+ fIsValid = rawReader.fIsValid;
+
return *this;
}
}
}
+ if (!rawReader->IsRawReaderValid()) {
+ AliErrorClass(Form("Raw-reader is invalid - check the input URI (%s)",fileURI.Data()));
+ delete rawReader;
+ fields->Delete();
+ delete fields;
+ return NULL;
+ }
+
// Now apply event selection criteria (if specified)
if (fields->GetEntries() > 1) {
Int_t eventType = -1;