Problem 241 - "RandEngine.stat" file has no "newline" at the end
Summary: "RandEngine.stat" file has no "newline" at the end
Status: RESOLVED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: run (show other problems)
Version: 3.0
Hardware: All All
: P2 trivial
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2001-04-05 05:13 CEST by Sanya.Solodkov
Modified: 2001-04-10 01:41 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
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.