Skip to content
Snippets Groups Projects
Commit 46553724 authored by Ziyue Zhang's avatar Ziyue Zhang
Browse files

WIP: Add y

parent 019379bf
No related branches found
No related tags found
1 merge request!39Replacing nu with y
...@@ -21,7 +21,7 @@ namespace util { ...@@ -21,7 +21,7 @@ namespace util {
// for structure functions // for structure functions
struct inv_quant { // add more when needed struct inv_quant { // add more when needed
double nu, Q2, x, t; double nu, Q2, x, y, t;
}; };
// for simu // for simu
...@@ -221,8 +221,8 @@ namespace util { ...@@ -221,8 +221,8 @@ namespace util {
//}else{ //}else{
t = Delta.Dot(Delta); t = Delta.Dot(Delta);
//} //}
double y = q.Dot(P) / parts[0].Dot(P);
inv_quant quantities = {nu, Q2, Q2/2./P.mass()/nu, t}; inv_quant quantities = {nu, Q2, Q2/2./P.mass()/nu, y, t};
return quantities; return quantities;
} }
...@@ -230,6 +230,7 @@ namespace util { ...@@ -230,6 +230,7 @@ namespace util {
inline double get_nu(inv_quant quantities) { return quantities.nu / 1000.; } inline double get_nu(inv_quant quantities) { return quantities.nu / 1000.; }
inline double get_Q2(inv_quant quantities) { return quantities.Q2; } inline double get_Q2(inv_quant quantities) { return quantities.Q2; }
inline double get_x(inv_quant quantities) { return quantities.x; } inline double get_x(inv_quant quantities) { return quantities.x; }
inline double get_y(inv_quant quantities) { return quantities.y; }
inline double get_t(inv_quant quantities) { return quantities.t; } inline double get_t(inv_quant quantities) { return quantities.t; }
// for tracking, add later // for tracking, add later
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment