Important bugfix. Missing reset of the equipment header data. It was causing a wrong...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Aug 2006 16:02:31 +0000 (16:02 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Aug 2006 16:02:31 +0000 (16:02 +0000)
RAW/AliRawEquipment.cxx
RAW/AliRawEquipmentHeader.cxx
RAW/AliRawEquipmentHeader.h

index 1855146..2b9417a 100644 (file)
@@ -104,6 +104,7 @@ void AliRawEquipment::Reset()
    // new/delete cycle). We reset the size marker for the AliRawData
    // object.
 
+   if (fEqpHdr) fEqpHdr->Reset();
    GetRawData()->SetSize(0);
 }
 
index 65e1561..1b1d4ea 100644 (file)
@@ -53,3 +53,14 @@ void AliRawEquipmentHeader::Swap()
    for (int i = 0; i < kAttributeWords; i++)
       fTypeAttribute[i] = net2host(fTypeAttribute[i]);
 }
+
+//______________________________________________________________________________
+void AliRawEquipmentHeader::Reset()
+{
+  // Reset the contents of the equipment
+  // header data
+  fSize = fEquipmentType = fEquipmentID = fBasicElementSizeType = 0;
+
+  for(Int_t i = 0; i < kAttributeWords; i++)
+    fTypeAttribute[i] = 0;
+}
index d36bed5..5104c58 100644 (file)
@@ -33,6 +33,8 @@ public:
    const UInt_t *GetTypeAttribute() const { return fTypeAttribute; }
    UInt_t        GetBasicSizeType() const { return fBasicElementSizeType; }
 
+   void          Reset();
+
    enum {
      kAttributeWords = 3
    };