alcap-org / g4sim

Simulation toolkit based on Geant4 and ROOT
http://wuchen1106.github.io/g4sim/
2 stars 2 forks source link

Randomness #20

Open thnam opened 10 years ago

thnam commented 10 years ago

Looking at the output from one bg4sim, I was kind of worried because of the regularity(?) of the file size:

-rwxrwxr-x. 1 nam nam    1269 Sep  5 00:56 sim_GeCal_Si16p_target_34cm_run1_7.txt.boss
drwxrwxr-x. 6 nam nam    4096 Sep  5 00:56 configure
drwxrwxr-x. 3 nam nam    4096 Sep  5 00:56 macros
-rw-r--r--. 1 nam nam 2066614 Sep  5 01:12 2_job0.raw
-rw-r--r--. 1 nam nam 2066613 Sep  5 01:12 5_job0.raw
-rw-r--r--. 1 nam nam 2066615 Sep  5 01:12 0_job0.raw
-rw-r--r--. 1 nam nam 2066613 Sep  5 01:12 4_job0.raw

Then I compared the histograms from these output files (histogram h01 means subrun 1 of job 0, ...): rndmchck_prod It is clear that all subruns in one job give the same result ... I tried another run, to confirm this:

bg4sim_sub -t sim -b 0 -e 7 -Y GeCallibration Randomness_check

The result looks similar:

[nam@ana2 scripts]$ ll ../output/Randomness_check/
total 3524
-rwxrwxr-x. 1 nam nam   1128 Sep  6 10:55 sim_Randomness_check_0.txt.boss
-rwxrwxr-x. 1 nam nam   1128 Sep  6 10:55 sim_Randomness_check_1.txt.boss
-rwxrwxr-x. 1 nam nam   1128 Sep  6 10:55 sim_Randomness_check_2.txt.boss
-rwxrwxr-x. 1 nam nam   1128 Sep  6 10:55 sim_Randomness_check_3.txt.boss
-rwxrwxr-x. 1 nam nam   1128 Sep  6 10:55 sim_Randomness_check_4.txt.boss
-rwxrwxr-x. 1 nam nam   1128 Sep  6 10:55 sim_Randomness_check_5.txt.boss
-rwxrwxr-x. 1 nam nam   1128 Sep  6 10:55 sim_Randomness_check_6.txt.boss
-rwxrwxr-x. 1 nam nam   1128 Sep  6 10:55 sim_Randomness_check_7.txt.boss
drwxrwxr-x. 6 nam nam   4096 Sep  6 10:55 configure
drwxrwxr-x. 3 nam nam   4096 Sep  6 10:55 macros
-rw-rw-r--. 1 nam nam      0 Sep  6 10:55 sim_Randomness_check_7.txt.bosserr
-rw-r--r--. 1 nam nam 142223 Sep  6 10:56 0_job0.raw
-rw-r--r--. 1 nam nam 142229 Sep  6 10:56 5_job0.raw
-rw-r--r--. 1 nam nam 142219 Sep  6 10:56 1_job0.raw
-rw-r--r--. 1 nam nam 142219 Sep  6 10:56 7_job0.raw
-rw-r--r--. 1 nam nam 142219 Sep  6 10:56 4_job0.raw
-rw-r--r--. 1 nam nam 142219 Sep  6 10:56 6_job0.raw
-rw-r--r--. 1 nam nam 142219 Sep  6 10:56 3_job0.raw
-rw-r--r--. 1 nam nam 142229 Sep  6 10:56 2_job0.raw
-rw-r--r--. 1 nam nam 147597 Sep  6 10:56 0_job1.raw
-rw-r--r--. 1 nam nam 147590 Sep  6 10:56 1_job1.raw
-rw-r--r--. 1 nam nam 147590 Sep  6 10:56 5_job1.raw
-rw-r--r--. 1 nam nam 147590 Sep  6 10:56 2_job1.raw
-rw-r--r--. 1 nam nam 147590 Sep  6 10:56 7_job1.raw
-rw-r--r--. 1 nam nam 147590 Sep  6 10:56 4_job1.raw
-rw-r--r--. 1 nam nam 147590 Sep  6 10:56 6_job1.raw
-rw-r--r--. 1 nam nam 147590 Sep  6 10:56 3_job1.raw
-rw-r--r--. 1 nam nam 143779 Sep  6 10:57 0_job2.raw

rndmchck_check

The conclusion is that all subruns are the same!!! I will check why it is the case.

wuchen1106 commented 10 years ago

Hi Nam, Can you post the configure files and macros? I want to have a check. I use bg4sim_sub to generate different random seeds for different jobs. In principle we shouldn't get this regularity...

thnam commented 10 years ago

Hi Chen, I was using the GeCallibration script in the alcap-org/commit@8ad84a8c2216e708

bg4sim_sub -t sim -b 0 -e 7 -Y GeCallibration Randomness_check