Saving histos in different TFiles

From: Julien Bolmont <Julien.BOLMONT_at_lpta.in2p3.fr>
Date: Fri, 11 Mar 2005 14:28:30 +0100

Hi rooters,

I'd like to save two histograms in two different root files so I open the two files :

TFile *f1 = new ....
TFile *f2 = new ....

and I declare the two histograms :

TH1 *h1 = new...
// I fill h1 here

TH1 *h2 = new...
// I fill h2 here

My question is :
How to tell root to write h1 in f1 and h2 in f2 ?

Thanks !




Julien Bolmont
Ingeneer - PhD Student
AMS Collaboration
LPTA - Laboratoire de Physique Théorique et Astroparticules Received on Fri Mar 11 2005 - 14:28:44 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:05 MET