|Message: 3D histogram||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
Dear Geant4 experts,
I am trying to introduce a three-dimensional histogram of deposited
energy into the example TestEm12.
It would be acceptable for me to have the same limits and number of bins
along the three axes; so I modified in HistoManager.hh:
class IHistogram3D; ... private: ... AIDA::IHistogram3D* histo[MaxHisto];
and, in HistoManager.cc:
void HistoManager::book() ... histo = hf->createHistogram3D("EDEPOSIT", Nbins, Vmin, Vmax, Nbins, Vmin, Vmax, Nbins, Vmin, Vmax); ...
void HistoManager::FillHisto(G4int ih, G4double e, G4double weight) ... histo->fill(1.,1.,1.,1.);
Obviously, this is only a first attempt, in which at every call of Fillhisto, the (1,1,1) voxel is incremented of weight=1.
Compilation and linking is successfull, but the execution is aborted with the messages:
# An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x08056d82, pid=16342, tid=3075435296 # # Java VM: Java HotSpot(TM) Client VM (1.4.2_16-b05 mixed mode) # Problematic frame: # C [voxel+0xed82]
I use geant4 version 9.1.p02 on Linux Ubuntu 8.04.
java version "1.6.0_0" OpenJDK Runtime Environment (build 1.6.0_0-b11) OpenJDK Server VM (build 1.6.0_0-b11, mixed mode)
If necessary, I can send also the error log file.
Thank you in advance for your precious help.
Ernesto Amato (Italy)