Additional protection for the raw-data reading. Getter to the raw-data payload (Chris...
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Apr 2007 12:26:29 +0000 (12:26 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 5 Apr 2007 12:26:29 +0000 (12:26 +0000)
MUON/AliMUONRawStreamTracker.cxx
MUON/AliMUONRawStreamTracker.h

index 98b6dfa43afa4c80f5694a679df4e0627724e1db..eb89e755e6e629e45a4dd172ca6d5ca651fdfa91 100644 (file)
@@ -179,13 +179,13 @@ Bool_t AliMUONRawStreamTracker::NextDDL()
   fRawReader->Reset();
   fRawReader->Select("MUONTRK", fDDL, fDDL);  //Select the DDL file to be read  
 
-  fRawReader->ReadHeader();
+  if(!fRawReader->ReadHeader()) return kFALSE;
 
   Int_t totalDataWord  = fRawReader->GetDataSize(); // in bytes
 
   UInt_t *buffer = new UInt_t[totalDataWord/4];
 
-  fRawReader->ReadNext((UChar_t*)buffer, totalDataWord); 
+  if(!fRawReader->ReadNext((UChar_t*)buffer, totalDataWord)) return kFALSE;
 
   fPayload->Decode(buffer, totalDataWord/4);
 
index 20f16a3caa3951f8cb0f7466ae59d558ac0f72d5..84f190da7313e15a0c16657199a4aa1cc36dad74 100644 (file)
@@ -50,10 +50,14 @@ class AliMUONRawStreamTracker: public TObject {
     /// Set object for reading the raw data
     void SetReader(AliRawReader* rawReader) {fRawReader = rawReader;}
 
-    /// Return pointer for buspatch structure
-    AliMUONDDLTracker*      GetDDLTracker()   const {return fPayload->GetDDLTracker();}
+    /// Return pointer for DDL
+    AliMUONDDLTracker*      GetDDLTracker() const {return fPayload->GetDDLTracker();}
+
+    /// Return pointer for payload
+    AliMUONPayloadTracker*  GetPayLoad()    const {return fPayload;}
+
     /// Return number of DDL
-    Int_t                   GetDDL()          const {return fDDL - 1;}
+    Int_t                   GetDDL()        const {return fDDL - 1;}
 
   private :
     /// Not implemented