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);
51 if (TMath::Abs(tmpsol2-pzmu) < TMath::Abs(tmpsol1-pzmu)) { pznu = tmpsol2;}
55 if (TMath::Abs(tmpsol1)<TMath::Abs(tmpsol2) ) pznu = tmpsol1;
61 if (TMath::Abs(tmpsol2-pzmu) < TMath::Abs(tmpsol1-pzmu)) { pznu = tmpsol2;}
66 if (TMath::Abs(tmpsol1)<TMath::Abs(tmpsol2) ) pznu = tmpsol1;
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 energy() const GCC11_FINAL
energy
virtual double pz() const GCC11_FINAL
z coordinate of momentum vector
virtual double py() const GCC11_FINAL
y coordinate of momentum vector
virtual double px() const GCC11_FINAL
x coordinate of momentum vector
virtual ~METzCalculator()
destructor
METzCalculator()
constructor
double Calculate(int type=0)
member functions