X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=RAW%2FAliRawDB.cxx;fp=RAW%2FAliRawDB.cxx;h=b0abd58e8e60da408e895e164b4c228346a93ff7;hp=4da8a7e35b44d4472004a53ed3581245b3b48793;hb=c3f47a4ccfe7abbf7b9934423c3a0a29efe87ee1;hpb=d38002cf52215b6d11bb0775d0353933344cc597 diff --git a/RAW/AliRawDB.cxx b/RAW/AliRawDB.cxx index 4da8a7e35b4..b0abd58e8e6 100644 --- a/RAW/AliRawDB.cxx +++ b/RAW/AliRawDB.cxx @@ -354,16 +354,16 @@ Int_t AliRawDB::Fill() AliRawEvent *subEvent = fEvent->GetSubEvent(iSubEvent); for(Int_t iEquipment = 0; iEquipment < subEvent->GetNEquipments(); iEquipment++) { AliRawEquipment *equipment = subEvent->GetEquipment(iEquipment); - UInt_t eqId = equipment->GetEquipmentHeader()->GetId(); - Int_t ddlIndex; - Int_t iDet = AliDAQ::DetectorIDFromDdlID(eqId,ddlIndex); - Int_t iBranch; - if (iDet < 0 || iDet > AliDAQ::kNDetectors) { - iDet = AliDAQ::kNDetectors; - iBranch = 0; // can we split somehow the unrecognized data??? For the moment - no - } - else { - iBranch = (ddlIndex * fgkDetBranches[iDet])/AliDAQ::NumberOfDdls(iDet); + Int_t iDet = AliDAQ::kNDetectors; + Int_t iBranch = 0; // can we split somehow the unrecognized data??? For the moment - no + if(equipment->GetEquipmentHeader()->GetEquipmentSize()) { + UInt_t eqId = equipment->GetEquipmentHeader()->GetId(); + Int_t ddlIndex = -1; + iDet = AliDAQ::DetectorIDFromDdlID(eqId,ddlIndex); + if (iDet < 0 || iDet >= AliDAQ::kNDetectors) + iDet = AliDAQ::kNDetectors; + else + iBranch = (ddlIndex * fgkDetBranches[iDet])/AliDAQ::NumberOfDdls(iDet); } equipment->SetRawDataRef(fDetRawData[iDet][iBranch]); }