Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
reconstruction_benchmarks
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
benchmarks
reconstruction_benchmarks
Merge requests
!195
Draft: Resolve "Add Roman Pots Reconstruction Matrix"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Draft: Resolve "Add Roman Pots Reconstruction Matrix"
70-add-roman-pots-reconstruction-matrix
into
master
Overview
0
Commits
73
Pipelines
0
Changes
1
Open
Alex Jentsch
requested to merge
70-add-roman-pots-reconstruction-matrix
into
master
3 years ago
Overview
0
Commits
73
Pipelines
0
Changes
1
Expand
Closes
#70
0
0
Merge request reports
Viewing commit
f29ca606
Show latest version
1 file
+
7
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
f29ca606
Change the generator file to generate protons in the right momentum/angular range.
· f29ca606
Alex Jentsch
authored
3 years ago
benchmarks/far_forward/scripts/gen_far_forward_protons.cxx
+
7
−
3
Options
@@ -17,8 +17,12 @@ using namespace HepMC3;
void
gen_far_forward_protons
(
int
n_events
=
100
,
const
char
*
out_fname
=
"far_forward_protons.hepmc"
)
{
double
cos_theta_min
=
std
::
cos
(
0.3
*
(
M_PI
/
180.0
));
double
cos_theta_max
=
std
::
cos
(
2.0
*
(
M_PI
/
180.0
));
double
minMomentum
=
270.0
;
//GeV
double
maxMomentum
=
275.0
;
//GeV
double
cos_theta_min
=
std
::
cos
(
0.0
*
(
M_PI
/
180.0
));
//we need MRAD for the units - syntax is degrees*Pi/180
double
cos_theta_max
=
std
::
cos
(
1.15
*
(
M_PI
/
180.0
));
//FF region is 0.0 to 20.0 mrad
WriterAscii
hepmc_output
(
out_fname
);
int
events_parsed
=
0
;
@@ -39,7 +43,7 @@ void gen_far_forward_protons(int n_events = 100,
FourVector
(
0.0
,
0.0
,
0.0
,
0.938
),
2212
,
4
);
// Define momentum
Double_t
p
=
r1
->
Uniform
(
1.0
,
10.0
);
Double_t
p
=
r1
->
Uniform
(
minMomentum
,
maxMomentum
);
Double_t
phi
=
r1
->
Uniform
(
0.0
,
2.0
*
M_PI
);
Double_t
costh
=
r1
->
Uniform
(
cos_theta_min
,
cos_theta_max
);
Double_t
th
=
std
::
acos
(
costh
);
Loading