Message: Openscientist-14 SLC3 g++-3.2.3/ TestEm1 / xml and root formats/ ok for me Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Openscientist-14 SLC3 g++-3.2.3/ TestEm1 / xml and root formats/ ok for me 

Keywords: Example A01, Openscientist, histogram, OnX,
Forum: Analysis
Re: Question Problem running example A01app (Sylvia Studeny)
Re: Note Openscientist (Sylvia Studeny)
Date: 31 Aug, 2005
From: Guy Barrand <Guy Barrand>

 Hello Sylvia

  Then I have rebuild a geant4-7.1 with a clhep-1.9.2.1 and a OpenScientist-14.0 on
my SLC3-g++-3.2.3. 
  I have reconstructed the TestEm1. The problem I have encoutered is that the default
writing file format is "hbook" which is not supported in OSC-14. I have done :
       Linux-csh> <various setups>
       Linux-csh> TestEm1 < TestEm1.in
It appears that the program, with AIDA/OSC, gently says that the default hbook format
is not supported and then... crashes ! This comes from a lack of protection in the
TestEm1/src/HistogramManager.cxx::Fill method. In it,  instead of :
  #ifdef G4ANALYSIS_USE
    if(exist[ih]) histo[ih]->fill(e/Unit[ih], weight);
  #endif
someone should have :
   #ifdef G4ANALYSIS_USE
    if(exist[ih] && histo[ih]) histo[ih]->fill(e/Unit[ih], weight);
  #endif

That is to say this test program is lacking a protection in case someone asks for an histo
(see TestEm1.in on how to do that) but the histo had not been created because the file
format is not supported in writing for the AIDA implementation (then here OSC-14).

  I have submitted the patch to the authors with an advise to check the other examples...

  With the upper patch, the program gently complains that OSC does not support hbook file writing
and continues without crash. Fine. One problem identified.

  Then I have changed the default file format in the TestEm1.in from hbook to xml
and I have been able to produce some file readble by opaw (or the onx program being setup
to run with the default GUI of the Lab package). Then for me, things are technically
ok here.

  I am going to look for A01....I know that I had problem to built it some time ago....

  This being said, then I am convinced that you number one problem is clearly
in a correct installation (then from source for you) of OSC. As I have said, I can have a look
on your SuSE machine to see if there something awckward (relative to a SLC or RedHat) 
somewhere on you environment. 

  Then I am going to coop with A01... More news later.

      Best regards

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Openscientist-14 SLC3 g++-3.2.3/ TestEm1 / xml and root formats/ ok for me   (Vladimir IVANTCHENKO - 31 Aug, 2005)
(_ None: Re: Openscientist-14 SLC3 g++-3.2.3/ TestEm1 / xml and root formats/ ok for me   (Guy Barrand - 31 Aug, 2005)
(_ None: Re: Openscientist-14 SLC3 g++-3.2.3/ TestEm1 / xml and root formats/ ok for me   (Vladimir IVANTCHENKO - 31 Aug, 2005)
(_ None: Re: Openscientist-14 SLC3 g++-3.2.3/ TestEm1 / xml and root formats/ ok for me   (Guy Barrand - 31 Aug, 2005)
 Add Message Add Message
to: "Openscientist-14 SLC3 g++-3.2.3/ TestEm1 / xml and root formats/ ok for me"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]