2 /**************************************************************************
3 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * Author: The ALICE Off-line Project. *
6 * Contributors are mentioned in the code where appropriate. *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
16 //--------------------------------------------------------------------//
18 // AliCFFrame Class //
19 // Class to accumulate data on an N-dimensional grid, to be used //
20 // as input to get corrections for Reconstruction & Trigger efficiency//
22 // -- Author : S.Arcelli //
23 // Still to be done: //
24 // --Implement methods to merge cells //
25 // --Interpolate among bins in a range //
26 //--------------------------------------------------------------------//
33 #include "AliCFFrame.h"
35 //____________________________________________________________________
38 //____________________________________________________________________
39 AliCFFrame::AliCFFrame() :
42 // default constructor
45 //____________________________________________________________________
46 AliCFFrame::AliCFFrame(const Char_t* name, const Char_t* title) :
52 //____________________________________________________________________
53 void AliCFFrame::Save(const Char_t *outfile) const
56 // Save 'this' to a root file
59 const char *dirname = "./";
60 TString filename = outfile;
62 if((gSystem->FindFile(dirname,filename))!=NULL){
63 file = new TFile( outfile,"UPDATE");
66 file = new TFile( outfile,"RECREATE");
69 //write the object to a file
70 this->Write(GetName(),TObject::kSingleKey);