1 // Author: Dariusz Miskowiec <mailto:d.miskowiec@gsi.de> 2007
3 //=============================================================================
4 // parent class of all analyzers
5 // keeps the obj array of histograms filled by the daughter
6 // takes care of storing them on file at the end
7 //=============================================================================
15 TDatabasePDG AliDAnal::fgPDG;
17 //=============================================================================
18 AliDAnal::AliDAnal(char *nam) : TNamed(nam,nam), fHistos()
23 TDirectory *dir = gROOT->mkdir(GetName());
26 printf("%s object named %s created\n",ClassName(),GetName());
28 //=============================================================================
29 void AliDAnal::Save(const char *outfil, const char *mode)
31 // store histograms on file in a directory named after the object
32 // mode should be "update" (default) or "new"
34 printf("%s saving histograms on %s (%s)\n",GetName(),outfil,mode);
35 TFile * f = TFile::Open(outfil, mode);
36 TDirectory *dest = f->mkdir(GetName());
42 //=============================================================================