]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug fix: do not enrter in the while loop if no FMD data
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Dec 2007 12:38:03 +0000 (12:38 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Dec 2007 12:38:03 +0000 (12:38 +0000)
FMD/AliFMDRawReader.cxx

index 3cd577420c44aa62a5d3662357aad9748fb930ac..3d39c5d35f011cd7aed8d9bd5768e8be163471a3 100644 (file)
@@ -123,9 +123,7 @@ AliFMDRawReader::ReadAdcs(TClonesArray* array)
   // Data array is approx twice the size needed. 
   UShort_t data[2048];
 
-  Bool_t isGood = kTRUE;
-  while (isGood) {
-    isGood = input.ReadChannel(ddl, hwaddr, last, data);
+  while (input.ReadChannel(ddl, hwaddr, last, data)) {
 
     AliFMDDebug(5, ("Read channel 0x%x of size %d", hwaddr, last));
     UShort_t det, sec, str;