Bugfix for AMORE (Jochen)
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Apr 2011 09:46:01 +0000 (09:46 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 12 Apr 2011 09:46:01 +0000 (09:46 +0000)
TRD/AliTRDrawStream.cxx

index 9d9382e..2f00ac1 100644 (file)
@@ -292,9 +292,9 @@ Bool_t AliTRDrawStream::ReadEvent(TTree *trackletTree)
        // check for link monitor error flag
        if (fCurrLinkMonitorFlags[fCurrSlot*fgkNlinks + fCurrLink] != 0)
          LinkError(kLinkMonitor);
-
-       // read the data from one HC
-       ReadLinkData();
+       else
+         // read the data from one HC
+         ReadLinkData();
 
        // read all data endmarkers
        SeekNextLink();
@@ -409,9 +409,9 @@ Int_t AliTRDrawStream::NextChamber(AliTRDdigitsManager *digMgr, UInt_t ** /* tra
 
   if (fCurrLinkMonitorFlags[fCurrSlot*fgkNlinks + fCurrLink] != 0)
     LinkError(kLinkMonitor);
-
-  // read the data from one HC
-  ReadLinkData();
+  else
+    // read the data from one HC
+    ReadLinkData();
   
   // read all data endmarkers
   SeekNextLink();
@@ -567,7 +567,7 @@ Int_t AliTRDrawStream::ReadLinkData()
 
   if (fMarkers)
     new ((*fMarkers)[fMarkers->GetEntriesFast()])
-      AliTRDrawStreamError(-kHCactive, fCurrSm, fCurrStack, fCurrLink);
+      AliTRDrawStreamError(-kHCactive, fCurrEquipmentId-1024, fCurrStack, fCurrLink);
 
   if (fErrorFlags & kDiscardHC)
     return count;