]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZERORawStream.cxx
Major fixes to the raw-data simulation. The ADC samples and signal width are added...
[u/mrichter/AliRoot.git] / VZERO / AliVZERORawStream.cxx
index 1d1306d92d892991a317e54e4e028ce18d5ce81c..dac7e880c30534b33ab89875438c836062ce972b 100644 (file)
@@ -180,16 +180,14 @@ Bool_t AliVZERORawStream::Next()
 
     } 
 
-//    for(Int_t iChannel = iCIU*8; iChannel < (iCIU*8) + 8; iChannel++) { 
-//    In fact times are stored the other way around in raw data...
-      for(Int_t iChannel = (iCIU*8) + 7; iChannel >= iCIU*8; iChannel--) { 
-        UInt_t time = GetNextWord();
-       Float_t coarse1  = 25. * ((time >> 8) & 0xf );
-       Float_t coarse2  = 25. / 8. * ((time >> 5) & 0x7 );
-       Float_t fine     = 25. / 256. * (time & 0x1f);
-       // fTime[iChannel] = time & 0xfff;
-       fTime[iChannel]  = coarse1 + coarse2 + fine;
-       fWidth[iChannel] = 0.4 * ( (time >> 12) & 0x7f);   // HPTDC used in pairing mode
+    for(Int_t iChannel = (iCIU*8) + 7; iChannel >= iCIU*8; iChannel--) { 
+      UInt_t time = GetNextWord();
+      Float_t coarse1  = 25. * ((time >> 8) & 0xf );
+      Float_t coarse2  = 25. / 8. * ((time >> 5) & 0x7 );
+      Float_t fine     = 25. / 256. * (time & 0x1f);
+
+      fTime[iChannel]  = coarse1 + coarse2 + fine;
+      fWidth[iChannel] = 0.4 * ( (time >> 12) & 0x7f);   // HPTDC used in pairing mode
     }
     
     // End of decoding of one CIU card