From: schutz Date: Tue, 4 Jun 2002 16:32:44 +0000 (+0000) Subject: Add a method that closes the header file X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=68853e3af0379fad3fccb9f7b8e98cac93d28283;p=u%2Fmrichter%2FAliRoot.git Add a method that closes the header file --- diff --git a/EMCAL/AliEMCALGetter.h b/EMCAL/AliEMCALGetter.h index 646d2caa3b6..ee3bceb7603 100644 --- a/EMCAL/AliEMCALGetter.h +++ b/EMCAL/AliEMCALGetter.h @@ -20,6 +20,7 @@ #include "TClonesArray.h" #include "TFolder.h" #include "TTree.h" +#include "TFile.h" class TString ; class TParticle ; class TTask ; @@ -61,6 +62,7 @@ class AliEMCALGetter : public TObject { virtual ~AliEMCALGetter() ; + void CloseFile() { fFile->Close() ; } const Bool_t HasFailed(void) const {return fFailed ;} Bool_t PostHits(void ) const ; Bool_t PostSDigits( const char * name, const char * file = 0) const ; diff --git a/PHOS/AliPHOSGetter.h b/PHOS/AliPHOSGetter.h index d69b4727036..560545c65ce 100644 --- a/PHOS/AliPHOSGetter.h +++ b/PHOS/AliPHOSGetter.h @@ -20,6 +20,7 @@ #include "TClonesArray.h" #include "TFolder.h" #include "TTree.h" +#include "TFile.h" class TString ; class TParticle ; class TTask ; @@ -61,6 +62,7 @@ class AliPHOSGetter : public TObject { virtual ~AliPHOSGetter() ; + void CloseFile() { fFile->Close() ; } void ListBranches(Int_t event=0) const ; void NewBranch(TString name, Int_t event = 0) ; Bool_t AliPHOSGetter::NewFile(TString name) ;