]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use TObject:Error in ReadEuclid
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Jul 1999 17:37:25 +0000 (17:37 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 15 Jul 1999 17:37:25 +0000 (17:37 +0000)
STEER/AliRun.cxx

index 15b5b24ee4acb3e2dcb2eeba5068e4fefd12b0c5..dff9df4e6ad280ae884ef9c254aad1321ede9a46 100644 (file)
@@ -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");
 }
 
 //_____________________________________________________________________________