Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
physics_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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
physics_benchmarks
Commits
407818a3
Commit
407818a3
authored
Dec 28, 2020
by
Whitney Armstrong
Browse files
Options
Downloads
Patches
Plain Diff
Changed use of acos to atan2
parent
f9721b09
No related branches found
No related tags found
1 merge request
!21
Added jpsi kinematics plots
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dvmp/analysis/util.h
+3
-4
3 additions, 4 deletions
dvmp/analysis/util.h
with
3 additions
and
4 deletions
dvmp/analysis/util.h
+
3
−
4
View file @
407818a3
...
...
@@ -139,9 +139,8 @@ get_phi(const std::pair<ROOT::Math::PxPyPzMVector, ROOT::Math::PxPyPzMVector>&
particle_pair
)
{
double
px_pair
=
(
particle_pair
.
first
+
particle_pair
.
second
).
px
();
double
py_pair
=
(
particle_pair
.
first
+
particle_pair
.
second
).
py
();
double
phi_pair
=
acos
(
py_pair
/
sqrt
(
px_pair
*
px_pair
+
py_pair
*
py_pair
));
if
(
py_pair
<=
0.
)
phi_pair
=
-
phi_pair
;
double
phi_pair
=
std
::
atan2
(
py_pair
,
px_pair
);
//if(py_pair <= 0.) phi_pair = - phi_pair;
return
phi_pair
;
}
...
...
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