pp elastic scattering with different beam tilts


{
    PData::SetWeightVersion(0); //Disable 1/N_ev * BR weighting
    
    TH1F *histo2 = new TH1F ("histo2", "cos theta of pp", 20, -1., 1.);
    
    PReaction my_reaction("_T1=0.4; _T2=0.4;", "p", "p", "p p");
    //PReaction my_reaction("_T1=0.4; _T2=0.4; _theta1=90*TMath::DegToRad(); _theta2=-90*TMath::DegToRad(); ","p","p","p p");

    my_reaction.Do(histo2,"p1=[p,1]; p1->Boost([p + p]); _x=cos(p1->Theta())");

    my_reaction.Print();

    my_reaction.Loop(5000);

    histo2->Draw("e1");
}
 pp_collider_elastic.C:1
 pp_collider_elastic.C:2
 pp_collider_elastic.C:3
 pp_collider_elastic.C:4
 pp_collider_elastic.C:5
 pp_collider_elastic.C:6
 pp_collider_elastic.C:7
 pp_collider_elastic.C:8
 pp_collider_elastic.C:9
 pp_collider_elastic.C:10
 pp_collider_elastic.C:11
 pp_collider_elastic.C:12
 pp_collider_elastic.C:13
 pp_collider_elastic.C:14
 pp_collider_elastic.C:15
 pp_collider_elastic.C:16
 pp_collider_elastic.C:17
 pp_collider_elastic.C:18