Re: problems with big files plotting

From: Tom Roberts <tjrob_at_fnal.gov>
Date: Thu, 4 Mar 2010 10:29:56 -0600


Big files alone are not the problem. I routinely plot >1,000,000 entries of a TNtuple in a TFile, using TH1D or TH2D or even TGraph. I don't use TH3, however.

Tom Roberts

Jerome Samarati wrote:
> Hi Rooters,
>
> I have a problem for plotting big files of datas and i have tried to
> solve it by my own but i did not succeed.
> I have generated a big file (256825 lines) which represents the energy
> loss distribution of a proton in a water cube divided in voxel (3D)
> using Geant4.
> So in my file there are 4 columns (X, Y, Z, sum of the energy losses per
> voxel) and that in a cube which is 400 mm long, 240 mm large and 240 mm
> height.
> My goal is to write a little macro to generate events in a cube. Each
> event is represented by the average distribution that i obtained with G4
> and so i would to plotted in 3D (X, Y and Z) this distribution and do
> the sum where the distribution (the events) are generated to close one
> from each other.
> So i succeed to write a little code which generates events and do the
> sum when 2 events crosses the same voxel but i did not succeed to plot
> one complete event (one complete distribution of 256825 lines), and i do
> not have any error message.
> Does anyone have an idea, perhaps my file is too big to be plotted in a
> TH3D ??
> Thank you for your help,
> Cheers,
>
> Samarati Jerome, PH
> Bld 182 R 009
> tel. 79672
>
Received on Thu Mar 04 2010 - 17:29:59 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 04 2010 - 23:50:01 CET