1 #define CM_ENERGY 7000.0
2 #include "TLorentzVector.h"
37 double dt_qt =
D.X() *
Q.X() +
D.Y() *
Q.Y();
39 pow(
D.Pt() /
Q.Mag(), 2) - 1.0 /
pow(
Q.Mag(), 2) / (
pow(
Q.Mag(), 2) +
pow(
Q.Pt(), 2)) *
pow(dt_qt, 2);
47 TVector3
R = Pbeam.Vect().Cross(
Q.Vect());
48 TVector3 Runit =
R.Unit();
51 TVector3 Qt =
Q.Vect();
53 TVector3 Qtunit = Qt.Unit();
55 TVector3 Dt =
D.Vect();
57 double tanphi =
sqrt(
pow(
Q.Mag(), 2) +
pow(
Q.Pt(), 2)) /
Q.Mag() * Dt.Dot(Runit) / Dt.Dot(Qtunit);