]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Before opening a new file the previously opened one is closed. The earlier modificati...
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Apr 2002 13:54:52 +0000 (13:54 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Apr 2002 13:54:52 +0000 (13:54 +0000)
EMCAL/AliEMCALGetter.cxx

index d443d57c135e40d3069ba1a408b27c169fc52cfd..dba47af1acaaf419f7260bd3091706429bf12a4c 100644 (file)
@@ -104,13 +104,7 @@ AliEMCALGetter::AliEMCALGetter(const char* headerFile, const char* branchTitle,
   fTasksFolder   = dynamic_cast<TFolder*>(gROOT->FindObjectAny("Folders/Tasks")) ; 
 
   fFailed = kFALSE ; 
-  if (!fFile) 
-    fFile = new TFile() ; 
-
-  if (fFile->IsOpen() )
-    fFile->Close() ; 
-                  
+                  
   if ( fHeaderFile != "aliroot"  ) { // to call the getter without a file
 
     //open headers file