Wrong usage of exit() corrected (Sun)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Apr 2002 10:52:41 +0000 (10:52 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Apr 2002 10:52:41 +0000 (10:52 +0000)
START/AliSTARTDigitizer.cxx
START/AliSTARTvertex.cxx

index d9c4ca1..3ad3d45 100644 (file)
@@ -117,7 +117,8 @@ void AliSTARTDigitizer::Exec(Option_t* option)
     if (brHits) {
       START->SetHitsAddressBranch(brHits);
     }else{
-      cerr<<"EXEC Branch START hit not found"<<exit;
+      cerr<<"EXEC Branch START hit not found"<<endl;
+      exit(111);
     } 
     Int_t ntracks    = (Int_t) th->GetEntries();
     if (ntracks<=0) return;
@@ -180,8 +181,8 @@ void AliSTARTDigitizer::Exec(Option_t* option)
 // trick to find out output dir:
     TTree *outTree = fManager->GetTreeD();
     if (!outTree) {
-      cerr<<"something wrong with output...."<<exit;
-      return;
+      cerr<<"something wrong with output...."<<endl;
+      exit(111);
     }
     TDirectory *wd = gDirectory;
     outTree->GetDirectory()->cd();
index 26360c3..2f9a791 100644 (file)
@@ -14,6 +14,9 @@
  **************************************************************************/
 /*
 $Log$
+Revision 1.7  2002/04/15 08:04:01  alla
+Digits and reconstruction with TObject
+
 Revision 1.6  2001/10/19 05:29:38  alla
 bug in meduim fixed
 
@@ -86,8 +89,8 @@ void AliSTARTvertex::Reconstruct(Int_t evNumber=1)
   printf("%s\n",nameTD);
   
   if (!td) {
-    cerr<<"something wrong with output...."<<exit;
-    return;
+    cerr<<"something wrong with output...."<<endl;
+    exit(111);
   }
   td->Read(nameTD);
   digits->Read(nameTD);
@@ -104,13 +107,13 @@ void AliSTARTvertex::Reconstruct(Int_t evNumber=1)
       }
     TTree *outTree = gAlice->TreeR();
     if (!outTree) {
-      cerr<<"something wrong with output...."<<exit;
-      return;
+      cerr<<"something wrong with output...."<<endl;
+      exit(111);
     }
     TTree *outTreeR = gAlice->TreeR();
     if (!outTreeR) {
-      cerr<<"something wrong with output...."<<exit;
-      return;
+      cerr<<"something wrong with output...."<<endl;
+      exit(111);
     }
   sprintf(nameTR,"START_R_%d",evNumber);
   printf("%s\n",nameTR);