TH1 projection to different axis bin defenition

From: Akira OKUMURA <oxon_at_juno.phys.s.u-tokyo.ac.jp>
Date: Wed, 7 Oct 2009 15:42:06 +0900


Hello ROOTers,

TH1D* h1 = new TH1D("h1", "", 100, -5, 5); // original histo h1->FillRandom("gaus");

TH1D* h2 = new TH1D("h2", "", 83, -9, 13); // empty one with different bin definition

Is there any direct way to project h1 to h2? I am looking for a method which automatically calculate bin contents and errors for a different axis bins.

Regards,

OKUMURA, Akira oxon_at_juno.phys.s.u-tokyo.ac.jp Department of Physics, The University of Tokyo 7-3-1 Hongo, Bunkyo-ku, Tokyo 113-0033
TEL/FAX +81 3-5841-4173/4059
Skype : okumura.akira Received on Wed Oct 07 2009 - 08:42:27 CEST

This archive was generated by hypermail 2.2.0 : Wed Oct 07 2009 - 11:50:03 CEST