19 double M_mu = 0.10566;
29 double a = M_W*M_W - M_mu*M_mu + 2.0*pxmu*pxnu + 2.0*pymu*pynu;
30 double A = 4.0*(emu*emu - pzmu*pzmu);
31 double B = -4.0*a*pzmu;
32 double C = 4.0*emu*emu*(pxnu*pxnu + pynu*pynu) - a*a;
34 double tmproot = B*B - 4.0*A*
C;
44 double tmpsol1 = (-B + TMath::Sqrt(tmproot))/(2.0*A);
45 double tmpsol2 = (-B - TMath::Sqrt(tmproot))/(2.0*A);
72 p3w.SetXYZ(pxmu+pxnu, pymu+pynu, pzmu+ tmpsol1);
73 p3mu.SetXYZ(pxmu, pymu, pzmu );
75 double sinthcm1 = 2.*(p3mu.Perp(p3w))/M_W;
76 p3w.SetXYZ(pxmu+pxnu, pymu+pynu, pzmu+ tmpsol2);
77 double sinthcm2 = 2.*(p3mu.Perp(p3w))/M_W;
79 double costhcm1 = TMath::Sqrt(1. - sinthcm1*sinthcm1);
80 double costhcm2 = TMath::Sqrt(1. - sinthcm2*sinthcm2);
82 if ( costhcm1 > costhcm2 ) pznu = tmpsol1;
virtual double px() const final
x coordinate of momentum vector
virtual double energy() const final
energy
virtual ~METzCalculator()
destructor
static const std::string B
METzCalculator()
constructor
virtual double pz() const final
z coordinate of momentum vector
double Calculate(int type=0)
member functions
virtual double py() const final
y coordinate of momentum vector