]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CORRFW/AliCFFrame.cxx
added constructors to ReadFlatESD.C, fixed bugs in FlatESDConverter concerning timing...
[u/mrichter/AliRoot.git] / CORRFW / AliCFFrame.cxx
index 6b90cbd1592ba9de26536902e93c3c5048acfe13..7de534aa8c098c9def50b0375b0746aba5768fce 100644 (file)
@@ -49,3 +49,25 @@ AliCFFrame::AliCFFrame(const Char_t* name, const Char_t* title) :
   // named constructor
 }
 
+//____________________________________________________________________
+void AliCFFrame::Save(const Char_t *outfile) const
+{
+  //
+  // Save 'this' to a root file
+  //
+
+  const char *dirname = "./";
+  TString filename = outfile;
+  TFile *file=0x0;
+  if((gSystem->FindFile(dirname,filename))!=NULL){
+    file = new TFile( outfile,"UPDATE");
+  }
+  else{
+    file = new TFile( outfile,"RECREATE");
+  } 
+  file->cd();
+  //write the object to a file
+  this->Write(GetName(),TObject::kSingleKey);
+  file->Close();
+  delete file;
+}