]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - T0/AliT0RawReader.cxx
more on dir creation
[u/mrichter/AliRoot.git] / T0 / AliT0RawReader.cxx
index 9b2b01fcf51ddd4edfe43d374902726605ddb5b9..618324151fcf236a98c81c3f73bab80b54a26222 100644 (file)
@@ -106,7 +106,7 @@ Bool_t  AliT0RawReader::Next()
   Int_t trm_chain_header =  0x00000000;
   Int_t  trm_chain_trailer =  0x10000000;
   
-  Int_t  filler =  0x70000000;
+  UInt_t  filler =  0x70000000;
   Bool_t correct=kTRUE;
   Int_t header;
 
@@ -170,6 +170,7 @@ Bool_t  AliT0RawReader::Next()
            //      for (; tdcTime==1; tdcTime) 
            while(tdcTime==1)
              {
+               correct = kTRUE;
                //                      cout<<" packed "<<word<<endl;
                itdc=AliBitPacking::UnpackWord(word,24,27);
                ichannel=AliBitPacking::UnpackWord(word,21,23);
@@ -188,8 +189,8 @@ Bool_t  AliT0RawReader::Next()
                if(correct){
                  hit=koefhits[koef];
                  if(hit>5) {  
-                   AliWarning(Form("Too many hits for %i channel  ! ",koef)); 
-                   break; 
+                   AliWarning(Form("Too many hits for %i channel - %i ! ",koef,koefhits[koef] )); 
+                   hit=5;
                  }
                  fAllData[koef][hit]=time; 
                  koefhits[koef]++;