From: fca Date: Thu, 15 Jul 1999 17:37:25 +0000 (+0000) Subject: Use TObject:Error in ReadEuclid X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=07a68c1d0f2f3c8cf5ddb5847c4bd89a4d18ae22;p=u%2Fmrichter%2FAliRoot.git Use TObject:Error in ReadEuclid --- diff --git a/STEER/AliRun.cxx b/STEER/AliRun.cxx index 15b5b24ee4a..dff9df4e6ad 100644 --- a/STEER/AliRun.cxx +++ b/STEER/AliRun.cxx @@ -645,7 +645,7 @@ Int_t AliRun::GetEvent(Int_t event) sprintf(treeName,"TreeD%d",event); fTreeD = (TTree*)gDirectory->Get(treeName); if (!fTreeD) { - printf("WARNING: cannot find Digits Tree for event:%d\n",event); + Warning("GetEvent","cannot find Digits Tree for event:%d\n",event); } @@ -1443,7 +1443,7 @@ void AliRun::ReadEuclid(const char* filnam, const AliModule *det, char* topvol) lun=fopen(filtmp,"r"); delete [] filtmp; if(!lun) { - printf(" *** GREUCL *** Could not open file %s\n",filnam); + Error("ReadEuclid","Could not open file %s\n",filnam); return; } //* --- definition of rotation matrix 0 --- @@ -1527,7 +1527,7 @@ void AliRun::ReadEuclid(const char* filnam, const AliModule *det, char* topvol) flag=0; for(i=1;i<=nvol;i++) { if (istop[i] && flag) { - printf(" *** GREUCL *** warning: %s is another possible top volume\n",volst[i]); + Warning("ReadEuclid"," %s is another possible top volume\n",volst[i]); } if (istop[i] && !flag) { strcpy(topvol,volst[i]); @@ -1536,7 +1536,7 @@ void AliRun::ReadEuclid(const char* filnam, const AliModule *det, char* topvol) } } if (!flag) { - printf("*** GREUCL *** warning: top volume not found\n"); + Warning("ReadEuclid","top volume not found\n"); } fclose (lun); //* @@ -1546,7 +1546,7 @@ void AliRun::ReadEuclid(const char* filnam, const AliModule *det, char* topvol) return; //* L20: - printf(" *** GREUCL *** reading error or premature end of file\n"); + Error("ReadEuclid","reading error or premature end of file\n"); } //_____________________________________________________________________________