From e59713afda1f68f2fd159a5a2089cb549bb308d2 Mon Sep 17 00:00:00 2001 From: morsch Date: Thu, 14 Aug 2003 14:38:27 +0000 Subject: [PATCH] Option to remove output files. --- STRUCT/AliALIFE.cxx | 6 +++++- STRUCT/AliALIFE.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/STRUCT/AliALIFE.cxx b/STRUCT/AliALIFE.cxx index 63c1954f0b8..9bfcbb461f4 100644 --- a/STRUCT/AliALIFE.cxx +++ b/STRUCT/AliALIFE.cxx @@ -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 diff --git a/STRUCT/AliALIFE.h b/STRUCT/AliALIFE.h index 9216fb56494..22631430e9a 100644 --- a/STRUCT/AliALIFE.h +++ b/STRUCT/AliALIFE.h @@ -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;} -- 2.43.0