-// 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()
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;
}
//______________________________________________________________________________
-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
}
//______________________________________________________________________________
-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
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));