]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding a method to get the raw-data event header. For the moment it works only for...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Oct 2006 11:36:34 +0000 (11:36 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Oct 2006 11:36:34 +0000 (11:36 +0000)
RAW/AliRawReader.h
RAW/AliRawReaderRoot.cxx
RAW/AliRawReaderRoot.h

index 586d05b92035395035f6184c7dc8b77804b414dd..daf56642212428be8a1a40949426c5f667745d03 100644 (file)
@@ -15,6 +15,7 @@
 #include <TArrayI.h>
 #include "AliRawDataHeader.h"
 
+class AliRawEventHeaderBase;
 
 class AliRawReader: public TObject {
   public :
@@ -36,6 +37,8 @@ class AliRawReader: public TObject {
     virtual void     RequireHeader(Bool_t required)
       {fRequireHeader = required;};
 
+    virtual const AliRawEventHeaderBase* GetEventHeader() const {return NULL;};
+
     virtual UInt_t   GetType() const = 0;
     virtual UInt_t   GetRunNumber() const = 0;
     virtual const UInt_t* GetEventId() const = 0;
index 71aabc0b3f4cb4ab74781d85a19760f499d16bfa..f2575dc7c3c4ffae9c83b78ab41b4df4bd6f3e7c 100644 (file)
@@ -186,6 +186,13 @@ AliRawReaderRoot::~AliRawReaderRoot()
   }
 }
 
+const AliRawEventHeaderBase* AliRawReaderRoot::GetEventHeader() const
+{
+  // Get the even header
+  // Return NULL in case of failure
+  if (!fEvent) return NULL;
+  return fEvent->GetHeader();
+}
 
 UInt_t AliRawReaderRoot::GetType() const
 {
index a6ca8029073b3b1c9bd40e91c3a1fbeeeb256e62..eed26bea23de590fdfef77b0732e068548b8716e 100644 (file)
@@ -28,6 +28,8 @@ class AliRawReaderRoot: public AliRawReader {
     AliRawReaderRoot& operator = (const AliRawReaderRoot& rawReader);
     virtual ~AliRawReaderRoot();
 
+    virtual const AliRawEventHeaderBase* GetEventHeader() const;
+
     virtual UInt_t   GetType() const;
     virtual UInt_t   GetRunNumber() const;
     virtual const UInt_t* GetEventId() const;