Hi Exaos, If you use ROOT directly, you do not need any histogram factory. You can call directly the ROOT histograming package. See examples in tutorials hsimple.C, hsum.C, etc >The second question, how to convert an <xxxx.aida> file into a ><xxxx.root> file? There is nothing like xxxx.aida file. If the aida backend is hbook, aida produces a hbook file. If the aida backend is ROOT, aida produces a ROOT file directly. You can convert a hbook file to ROOT via h2root h2root file.hbook file.root Rene Brun Exaos Lee wrote: > > Dear ROOTer, > I want to change some codes based on AIDA to root as the following > ---- > ... > // Creating the analysis factory > AIDA::IAnalysisFactory* af = AIDA_createAnalysisFactory(); > > // Creating the tree factory > AIDA::ITreeFactory* tf = af->createTreeFactory(); > > ... > AIDA::ITree* tree = tf->create("testaa.paw", "hbook", readOnly=false, > createNew = true); > > // Creating a historam factory > AIDA::IHistogramFactory* hf = af->createHistogramFactory(*tree); > ... > ----- > What are the corresponding classes in ROOT to AIDA::IAnalysisFactory, > AIDA::ITreeFactory and AIDA::IHistogramFactory? > > The second question, how to convert an <xxxx.aida> file into a > <xxxx.root> file? > > Regards. > > Exaos
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET