Skip to content
Snippets Groups Projects

Add t in dvmp; add a place holder for InvQuant in REC

Merged Ziyue Zhang requested to merge ziyue_work_branch into master
Compare and
2 files
+ 6
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -28,7 +28,7 @@ namespace util {
// for structure functions
struct inv_quant { // add more when needed
double nu, Q2, x;
double nu, Q2, x, t;
};
// for simu
@@ -36,10 +36,12 @@ namespace util {
{
ROOT::Math::PxPyPzMVector q(parts[0] - parts[2]);
ROOT::Math::PxPyPzMVector P(parts[3]);
ROOT::Math::PxPyPzMVector Delta(parts[6] - parts[3]);
double nu = q.Dot(P) / P.mass();
double Q2 = -q.Dot(q);
inv_quant quantities = {nu, Q2, Q2 / 2. / P.mass() / nu};
double t = Delta.Dot(Delta);
inv_quant quantities = {nu, Q2, Q2 / 2. / P.mass() / nu, t};
return quantities;
}
Loading