// this macro calculate th_min and th_max from CM to LAB frame // for pbarp elastic scattering case void CMlab_recalc(){ // double cosTh1 = -0.95; //1.5 GeV/c // double cosTh2 = 0.93; double t1 = 0.02; //4.60 GeV/c double t2 = 1; /// fixed params by channel double Plab = 4; //GeV/c bar p mom in LAB frame // double Plab = 2.43; //GeV/c bar p mom in LAB frame double M0 = 0.938;//GeV/c barp mass // double gamma = TMath::Sqrt(1+TMath::Power(Plab/M0,2)); //LAB double E1 = TMath::Sqrt(M0*M0+Plab*Plab); //LAB double E2 = M0; //LAB double Ecm = TMath::Sqrt(2*M0*M0+2*E1*E2); cout<<"Ecm = "<