Re: problems with big files plotting

From: Perles, Luis A <LAPerles_at_mdanderson.org>
Date: Thu, 4 Mar 2010 19:22:52 +0000


Hi Jerome,

I'm sure ROOT can do it for you, but big 3D histograms may require lots of memory. I have a script that reads 5x more lines (97 MB) than yours and it works perfectly in interpreted and ACLIC mode. In this script I fill a TH3D, create and fill another 3D histogram with same size and create another 1D histogram. It works perfectly in a machine with 2GB memory. If you need you can contact in pvt, but in your case I would suggest you to implement it directly in your G4 user program. That will save you time in post processing..

Luis

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 - 20:23:01 CET

This archive was generated by hypermail 2.2.0 : Fri Mar 05 2010 - 11:50:02 CET