Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
detector_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
detector_benchmarks
Commits
465bce7a
Commit
465bce7a
authored
3 years ago
by
Zhenyu Ye
Browse files
Options
Downloads
Patches
Plain Diff
run BTOF with eta=-1.0
parent
a0744812
Branches
Branches containing commit
No related tags found
1 merge request
!100
Resolve "Add BTOF benchmarks"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
benchmarks/tof/scripts/gen_tof_hits.cxx
+1
-1
1 addition, 1 deletion
benchmarks/tof/scripts/gen_tof_hits.cxx
with
1 addition
and
1 deletion
benchmarks/tof/scripts/gen_tof_hits.cxx
+
1
−
1
View file @
465bce7a
...
...
@@ -35,7 +35,7 @@ void gen_tof_hits(int n_events = 100,
// pdgid 111 - pi0
// pdgid 2212 - proton
Double_t
p
=
r1
->
Uniform
(
0
,
3.5
);
Double_t
costh
=
-
1
*
cos
(
4
1.
/
180
*
3.1415926
);
//r1->Uniform(cos_theta_min, cos_theta_max);
Double_t
costh
=
-
1
*
cos
(
4
0.999
/
180
*
3.1415926
);
//r1->Uniform(cos_theta_min, cos_theta_max);
Double_t
th
=
std
::
acos
(
costh
);
Double_t
phi
=
r1
->
Uniform
(
0.0
,
2.0
*
M_PI
);
Double_t
px
=
p
*
std
::
cos
(
phi
)
*
std
::
sin
(
th
);
...
...
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