Option to remove output files.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Aug 2003 14:38:27 +0000 (14:38 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Aug 2003 14:38:27 +0000 (14:38 +0000)
STRUCT/AliALIFE.cxx
STRUCT/AliALIFE.h

index 63c1954..9bfcbb4 100644 (file)
@@ -427,7 +427,7 @@ void AliALIFE::Comment(char* Comment)
 }
 
 
-void AliALIFE::Finish()
+void AliALIFE::Finish(Bool_t iremove)
 {
 // Finish geometry definition
     char s[BUFSIZ];
@@ -440,6 +440,10 @@ void AliALIFE::Finish()
     
     fclose(fFile1);
     fclose(fFile2);    
+    if (iremove) {
+       remove(fVolumeFile);
+       remove(fBodyFile);
+    }
 }
 
 void AliALIFE::Copy(AliALIFE&) const
index 9216fb5..2263143 100644 (file)
@@ -45,7 +45,7 @@ class AliALIFE : public  TObject {
     
     void Comment(char* Comment);
 
-    void Finish();
+    void Finish(Bool_t remove = 0);
 
     void SetDefaultVolume(TString vol1, TString vol2) 
        {fDefaultVolume1=vol1; fDefaultVolume2=vol2;}