Proper initialization of all the data members
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Aug 2006 12:32:07 +0000 (12:32 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 14 Aug 2006 12:32:07 +0000 (12:32 +0000)
RAW/AliRawEquipmentHeader.cxx
RAW/AliRawEquipmentHeader.h

index 2cea94f..65e1561 100644 (file)
 
 ClassImp(AliRawEquipmentHeader)
 
+//______________________________________________________________________________
+AliRawEquipmentHeader::AliRawEquipmentHeader():
+  fSize(0),
+  fEquipmentType(0),
+  fEquipmentID(0),
+  fBasicElementSizeType(0)
+{
+  // Default constructor
+  for(Int_t i = 0; i < kAttributeWords; i++)
+    fTypeAttribute[i] = 0;
+}
 
 //______________________________________________________________________________
 void AliRawEquipmentHeader::Swap()
index ef8c0c9..d36bed5 100644 (file)
@@ -20,7 +20,7 @@
 class AliRawEquipmentHeader : public TObject {
 
 public:
-   AliRawEquipmentHeader() { fSize = 0; }
+   AliRawEquipmentHeader();
    ~AliRawEquipmentHeader() { }
 
    void         *HeaderBegin() { return (void *) &fSize; }