]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Patch for AMORE
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Mar 2011 21:59:05 +0000 (21:59 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Mar 2011 21:59:05 +0000 (21:59 +0000)
TRD/AliTRDrawStream.cxx
TRD/AliTRDrawStream.h

index c12d8d9b572b9fe1684e14d2f08c2da329fb33b0..9d9382ea2e0aa510fdc40fe3374715b5ad695fe0 100644 (file)
@@ -254,6 +254,10 @@ Bool_t AliTRDrawStream::ReadEvent(TTree *trackletTree)
       continue;
     }
 
+    if (fMarkers)
+      new ((*fMarkers)[fMarkers->GetEntriesFast()])
+       AliTRDrawStreamError(-kSecactive, fCurrEquipmentId - 1024);
+
     // setting the pointer to data and current reading position
     fPayloadCurr = fPayloadStart = (UInt_t*) (buffer);
     fPayloadSize = fRawReader->GetDataSize() / sizeof(UInt_t);
@@ -324,6 +328,10 @@ Bool_t AliTRDrawStream::NextDDL()
       continue;
     }
 
+    if (fMarkers)
+      new ((*fMarkers)[fMarkers->GetEntriesFast()])
+       AliTRDrawStreamError(-kSecactive, fCurrEquipmentId - 1024);
+
     // setting the pointer to data and current reading position
     fPayloadCurr = fPayloadStart = (UInt_t*) (buffer);
     fPayloadSize = fRawReader->GetDataSize() / sizeof(UInt_t);
index 4b50242b09abb00d62d47b256f29fcd270277931..f5b9402cc67196c4ad0fd4cb9a08baa3ec9b2506 100644 (file)
@@ -96,12 +96,26 @@ class AliTRDrawStream : public TObject
   };
 
   enum MarkerCode_t {
-    kHCactive = 1
+    kHCactive = 1,
+    kSecactive = 2
   };
 
   TTree* GetErrorTree() const { return fErrors; }
   static const char* GetErrorMessage(ErrorCode_t errCode);
 
+  class AliTRDrawStreamError : public TObject {
+  public:
+    AliTRDrawStreamError(Int_t error = 0, Int_t sector = -1, Int_t stack = -1, Int_t link = -1, Int_t rob = -1, Int_t mcm = -1); 
+    virtual ~AliTRDrawStreamError() {}
+    Int_t fError;                               // error code
+    Int_t fSector;                             // sector
+    Int_t fStack;                              // stack
+    Int_t fLink;                               // link
+    Int_t fRob;                                        // ROB no
+    Int_t fMcm;                                        // MCM no
+    ClassDef(AliTRDrawStreamError, 1);
+  };
+
   // event statistics
   class AliTRDrawStats : public TObject {
   public:
@@ -209,18 +223,7 @@ class AliTRDrawStream : public TObject
   AliTRDdigitsParam   *fDigitsParam;            // pointer to the parameters belonging to the digits
 
   TTree *fErrors;                               // tree containing the occured error codes
-  class AliTRDrawStreamError : public TObject {
-  public: 
-    AliTRDrawStreamError(Int_t error = 0, Int_t sector = -1, Int_t stack = -1, Int_t link = -1, Int_t rob = -1, Int_t mcm = -1); 
-    virtual ~AliTRDrawStreamError() {}
-    Int_t fError;                               // error code
-    Int_t fSector;                             // sector
-    Int_t fStack;                              // stack
-    Int_t fLink;                               // link
-    Int_t fRob;                                        // ROB no
-    Int_t fMcm;                                        // MCM no
-    ClassDef(AliTRDrawStreamError, 1);
-  } fLastError;                                 // last error which occured
+  AliTRDrawStreamError fLastError;              // last error which occured
   UInt_t fErrorFlags;                           // error flags used to steer subsequent reading
   char   fErrorBuffer[100];                     // buffer for error message