From: cheynis Date: Sun, 15 Nov 2009 22:56:23 +0000 (+0000) Subject: Protection added X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=d61b4baa3c9ff2275d7770c0d8f4f19714c4d588 Protection added --- diff --git a/VZERO/VZEROda.cxx b/VZERO/VZEROda.cxx index eee991773f7..551c004ea2e 100755 --- a/VZERO/VZEROda.cxx +++ b/VZERO/VZEROda.cxx @@ -208,8 +208,8 @@ int main(int argc, char **argv) { AliRawReader *rawReader = new AliRawReaderDate((void*)event); AliVZERORawStream* rawStream = new AliVZERORawStream(rawReader); - rawStream->Next(); - for(Int_t i=0; i<64; i++) { + if (rawStream.Next()) { + for(Int_t i=0; i<64; i++) { Int_t nFlag = 0; for(Int_t j=kClockMin; j <= kClockMax; j++) { // Check flags on clock range used for pedestal calculation if((rawStream->GetBBFlag(i,j)) || (rawStream->GetBGFlag(i,j))) nFlag++; @@ -226,7 +226,8 @@ int main(int argc, char **argv) { Float_t charge = (float)(rawStream->GetADC(i)); // Fill 64*2 ADCmax histograms hADCname[i + 64 * Integrator]->Fill(charge); } - } + } + } delete rawStream; rawStream = 0x0; delete rawReader;