]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDrawData.cxx
- bugfix for TRD raw data simulation
[u/mrichter/AliRoot.git] / TRD / AliTRDrawData.cxx
index 0dab1698c2ec3720d2e56020081ee560fbf36734..d0bc0a244937ecada91d5c1296c5530adee2537a 100644 (file)
@@ -491,20 +491,18 @@ Int_t AliTRDrawData::ProduceHcData(AliTRDarrayADC *digits, Int_t side, Int_t det
              }
            }
          }
+       }
          
-         // in case of tracklet writing copy temp data to final buffer
-         if (trackletOn) {
-           if (nw + *tempnw < maxSize) {
-             memcpy(&buf[nw], tempBuffer, *tempnw * sizeof(UInt_t));
-             nw += *tempnw;
-           }
-           else {
-             AliError("Buffer overflow detected");
-           }
+       // in case of tracklet writing copy temp data to final buffer
+       if (trackletOn) {
+         if (nw + *tempnw < maxSize) {
+           memcpy(&buf[nw], tempBuffer, *tempnw * sizeof(UInt_t));
+           nw += *tempnw;
+         }
+         else {
+           AliError("Buffer overflow detected");
          }
-       }
 
-        if (trackletOn) {
          delete [] tempBuffer;
          delete tempof;
           delete tempnw;