Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
datasets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
datasets
Commits
52783599
Commit
52783599
authored
4 years ago
by
Tom Polakovic
Browse files
Options
Downloads
Patches
Plain Diff
RNG seed as environmental variable
parent
79438db4
No related branches found
No related tags found
1 merge request
!3
RNG seed as environmental variable
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
forward_ions.cxx
+1
-1
1 addition, 1 deletion
forward_ions.cxx
setup.sh
+1
-0
1 addition, 0 deletions
setup.sh
with
2 additions
and
1 deletion
forward_ions.cxx
+
1
−
1
View file @
52783599
...
@@ -13,7 +13,7 @@ void forward_ions(){
...
@@ -13,7 +13,7 @@ void forward_ions(){
WriterAscii
hepmc_output
(
"data/forward_ions.hepmc"
);
WriterAscii
hepmc_output
(
"data/forward_ions.hepmc"
);
int
events_parsed
=
0
;
int
events_parsed
=
0
;
GenEvent
evt
(
Units
::
GEV
,
Units
::
MM
);
GenEvent
evt
(
Units
::
GEV
,
Units
::
MM
);
std
::
mt19937
gen
(
1337
);
std
::
mt19937
gen
(
std
::
stoi
(
std
::
getenv
(
"SEED"
))
);
std
::
uniform_real_distribution
<
double
>
phi_distr
(
0
,
6.2831853072
);
std
::
uniform_real_distribution
<
double
>
phi_distr
(
0
,
6.2831853072
);
std
::
uniform_real_distribution
<
double
>
theta_distr
(
0
,
0.01745329252
);
std
::
uniform_real_distribution
<
double
>
theta_distr
(
0
,
0.01745329252
);
...
...
This diff is collapsed.
Click to expand it.
setup.sh
0 → 100644
+
1
−
0
View file @
52783599
export
SEED
=
"1337"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment