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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIC
benchmarks
physics_benchmarks
Merge requests
!39
Replacing nu with y
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Replacing nu with y
ziyue_work_branch
into
master
Overview
0
Commits
69
Pipelines
0
Changes
2
Merged
Ziyue Zhang
requested to merge
ziyue_work_branch
into
master
4 years ago
Overview
0
Commits
69
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Viewing commit
bcc5e545
Prev
Next
Show latest version
2 files
+
23
−
35
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
bcc5e545
WIP: Test on PID instead of pmass
· bcc5e545
Ziyue Zhang
authored
4 years ago
benchmarks/dvmp/analysis/dvmp.h
+
16
−
10
Options
@@ -120,16 +120,6 @@ namespace util {
return
momenta
;
}
inline
double
test_jpsi_pt
(
const
std
::
vector
<
ROOT
::
Math
::
PxPyPzMVector
>&
momenta
){
double
px
=
momenta
[
4
].
px
();
double
py
=
momenta
[
4
].
py
();
double
pt
=
sqrt
(
px
*
px
+
py
*
py
);
return
pt
;
}
//for Dummy rc
inline
inv_quant
calc_inv_quant_rec
(
const
std
::
vector
<
ROOT
::
Math
::
PxPyPzMVector
>&
parts
,
const
double
pdg_mass
,
const
double
daughter_mass
){
int
first
=
-
1
;
@@ -196,6 +186,22 @@ namespace util {
return
quantities
;
}
inline
inv_quant
calc_inv_quant_both
(
const
std
::
vector
<
ROOT
::
Math
::
PxPyPzMVector
>&
parts
)
{
//0:e0 1:p0 2:e1 3:p1 4:recoil system (without p1) 5:l1 from 4 6:l2 from 4
ROOT
::
Math
::
PxPyPzMVector
q
(
parts
[
0
]
-
parts
[
2
]);
ROOT
::
Math
::
PxPyPzMVector
P
(
parts
[
1
]);
ROOT
::
Math
::
PxPyPzMVector
Delta
(
parts
[
3
]
-
parts
[
1
]);
//jpsi->l l' gamma, ignore gamma
//ROOT::Math::PxPyPzMVector Delta(parts[6] - parts[3]);//exact jpsi
double
nu
=
q
.
Dot
(
P
)
/
P
.
mass
();
double
Q2
=
-
q
.
Dot
(
q
);
double
t
=
Delta
.
Dot
(
Delta
);
inv_quant
quantities
=
{
nu
,
Q2
,
Q2
/
2.
/
P
.
mass
()
/
nu
,
t
};
return
quantities
;
}
inline
double
get_nu
(
inv_quant
quantities
)
{
return
quantities
.
nu
/
1000.
;
}
inline
double
get_Q2
(
inv_quant
quantities
)
{
return
quantities
.
Q2
;
}
inline
double
get_x
(
inv_quant
quantities
)
{
return
quantities
.
x
;
}
Loading