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 2cea94f8d3c2e75757c3432a43015fbaf42c5022..65e1561c584ae211b6e8286f6e7be6c36277c776 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 ef8c0c9a1a0a16309a781ce29ad66e07ecf0d125..d36bed52d6d011d66bf83b0b74eeaf8a55f4bafe 100644 (file)
@@ -20,7 +20,7 @@
 class AliRawEquipmentHeader : public TObject {
 
 public:
-   AliRawEquipmentHeader() { fSize = 0; }
+   AliRawEquipmentHeader();
    ~AliRawEquipmentHeader() { }
 
    void         *HeaderBegin() { return (void *) &fSize; }