Problem 241

Summary: "RandEngine.stat" file has no "newline" at the end
Product: Geant4 Reporter: Sanya.Solodkov
Component: runAssignee: Gabriele Cosmo <Gabriele.Cosmo>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P2    
Version: 3.0   
Hardware: All   
OS: All   

Description Sanya.Solodkov 2001-04-05 05:13:19 CEST
when I do
> cat RandEngine.stat
I see only one zero, because second line has no "newline" at the end
Is it possible to add one more "endl" in
G4RunManager::StoreRandomNumberStatus() ?

in fact, this is bug(or feature) of CLHEP -
in some generators they have "endl" as separator,
and in others - space without any "endl"

e.g.

     for (HepInt i=0; i<3; ++i) {
       outFile << cseed[i] << HepStd::endl;
       dummy[i] = cseed[i];
     }

and

     for (HepInt i=0; i<2; ++i)
       outFile << table[theSeed][i] << " ";
Comment 1 Gabriele Cosmo 2001-04-10 01:41:59 CEST
Problem reported to CLHEP editor.
Thanks.