Dear Rene,
I have received a reply of Alberto Pulvirenti and i have checked it this morning and it works fine, it does what i want. I am running a G4 simulation with an output file containing my histos and the one that i was talking about is the energy of particles that reach a certain volume. I described it in bin of 1 keV and i wanted to transform it in bin of 1 MeV (doing the sum of the bin entries of 1 keV to get the histogram with MeV scale). Do you still want me to post a small script ?? Cheers,
Samarati Jerome, PH
Bld 182 R 009
tel. 79672
-----Original Message-----
From: Rene Brun
Sent: Tue 11/9/2010 6:58 PM
To: Jerome Samarati
Cc: roottalk_at_root.cern.ch
Subject: Re: [ROOT] rebin
Could you post a small script and data file such that we understand what you are doing?
Rene Brun
On 09/11/2010 18:16, Jerome Samarati wrote:
>
> Hi rooters,
>
> I have a very naive question : i have a TH1D histo which has 250001
> bins from -0.5 to 250000.5 keV.
> I would like to rebin it in order to get the same histo from -0.5 to
> 250.5 MeV.
> I tried to use the rebin method but it does not work and moreover i do
> not understand what the variable called ngroups ??
> Is someone has an idea ??
> Cheers,
>
> Samarati Jerome, PH
> Bld 182 R 009
> tel. 79672
>
Received on Wed Nov 10 2010 - 10:32:13 CET
This archive was generated by hypermail 2.2.0 : Wed Nov 10 2010 - 17:50:01 CET