Hi,
I do have the following problems:
1) I have a bunch of simple trees (row wise ntuple) in seperate root
files.
2) I want to fill histos (if possible with h1->Draw("adco>>histo1") and
fit them.
3) All histograms should then be saved to a single output file.
What I did:
1) Open output file
2) Book Histo
3) Open tree-file
4) Draw in Histo
5) Write an Close output file!
TFile fout("hv.root","RECREATE");
TH1F *h2 = new TH1F("h2","h2",100,0,500);
TFile fin("run1411_1.root");
h1->Draw("adc0>>h2");
fout.Write();
fout.Close();
==> Output contains empty histo h2, because Draw creates a new one in
fin.
How can I solve the problem?!
cheers
Mario
-- ------------------------------------------------------- --
* Mario Leberig *
* AG Kabuss CERN *
* Universitaet Mainz EP Division *
* Institut fuer Kernphysik Bat. 892-RA13 *
* D-55099 Mainz 1211 Geneva 23 *
* Tel. +49-6131/39-22932 Tel. +41-22-767-6461 *
* Fax +49-6131/39-22964 Fax +41-22-767-7910 *
-- ------------------------------------------------------- --
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET