]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RAW/AliRawEventHeaderBase.cxx
Fix for 64-bit platforms
[u/mrichter/AliRoot.git] / RAW / AliRawEventHeaderBase.cxx
index 5d8d366387eec0151f9da1d2d9ba2adac0287f6f..59ae47e649cb035e68a756591c4e19ba24ab207a 100644 (file)
@@ -1,5 +1,3 @@
-// Author: Cvetan Cheshkov  10/10/2005
-
 /**************************************************************************
  * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
  *                                                                        *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
+/* $Id$ */
+
+// Author: Cvetan Cheshkov  10/10/2005
+
 //////////////////////////////////////////////////////////////////////////
 //                                                                      //
 // AliRawEventHeaderBase                                                //
 
 #include <unistd.h>
 
+#include <Bytes.h>
 #include <TClass.h>
 #include <TDataMember.h>
+#include <TList.h>
 #include <TMethodCall.h>
 
 #include "AliLog.h"
 
 ClassImp(AliRawEventHeaderBase)
 
+//______________________________________________________________________________
+AliRawEventHeaderBase::AliRawEventHeaderBase():
+fSize(0),
+fMagic(0),
+fHeadSize(0),
+fVersion(0),
+fExtendedDataSize(0),
+fExtendedData(NULL),
+fIsSwapped(kFALSE)
+{
+  // Default constructor
+}
 
 //______________________________________________________________________________
 void *AliRawEventHeaderBase::HeaderBegin()
@@ -129,6 +145,18 @@ const char *AliRawEventHeaderBase::GetTypeName()
       case kFormatError:
          return "EVENT_FORMAT_ERROR";
          break;
+      case kStartOfData:
+        return "START_OF_DATA";
+        break;
+      case kEndOfData:
+        return "END_OF_DATA";
+        break;
+      case kSystemSoftwareTriggerEvent:
+        return "SYSTEM_SOFTWARE_TRIGGER_EVENT";
+        break;
+      case kDetectorSoftwareTriggerEvent:
+        return "DETECTOR_SOFTWARE_TRIGGER_EVENT";
+        break;
       default:
         return "UNKNOWN EVENT TYPE NUMBER";
          break;
@@ -253,7 +281,7 @@ Int_t AliRawEventHeaderBase::ReadHeader(char*& data)
 }
 
 //______________________________________________________________________________
-UInt_t AliRawEventHeaderBase::Get(const char *datamember)
+UInt_t AliRawEventHeaderBase::Get(const char *datamember) const
 {
   // The method to get a data member from the header object
   // Except for the data members of the base class, all the
@@ -286,7 +314,7 @@ UInt_t AliRawEventHeaderBase::Get(const char *datamember)
 }
 
 //______________________________________________________________________________
-const UInt_t* AliRawEventHeaderBase::GetP(const char *datamember)
+const UInt_t* AliRawEventHeaderBase::GetP(const char *datamember) const
 {
   // The method to get a data member from the header object
   // Except for the data members of the base class, all the
@@ -303,10 +331,10 @@ const UInt_t* AliRawEventHeaderBase::GetP(const char *datamember)
     return 0;
   }
 
-  if (member->GetArrayDim() == 0) {
-    AliFatal(Form("Member %s is not an array! Use the Get() method!",buf));
-    return 0;
-  }
+  //  if (member->GetArrayDim() == 0) {
+  //    AliFatal(Form("Member %s is not an array! Use the Get() method!",buf));
+  //    return 0;
+  //  }
 
   if (strcmp(member->GetTypeName(),"UInt_t") != 0) {
     AliFatal(Form("Member %s is not of type UInt_t*!",buf));