]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 63c1954f0b857e9f295147200aeee3824e6ca722..9bfcbb461f4b116be3767399624f3d63dc43e72d 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 9216fb56494f6ca3eab0c711912ffb83a9c94acf..22631430e9a2d92f6dca1528bd90fe885e425d8c 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;}