Pluto v6.3.0
Loading...
Searching...
No Matches
pp_collider_elastic.C
Go to the documentation of this file.
1//TITLE pp elastic scattering with different beam tilts
2
3{
4 PData::SetWeightVersion(0); //Disable 1/N_ev * BR weighting
5
6 TH1F *histo2 = new TH1F ("histo2", "cos theta of pp", 20, -1., 1.);
7
8 PReaction my_reaction("_T1=0.4; _T2=0.4;", "p", "p", "p p");
9 //PReaction my_reaction("_T1=0.4; _T2=0.4; _theta1=90*TMath::DegToRad(); _theta2=-90*TMath::DegToRad(); ","p","p","p p");
10
11 my_reaction.Do(histo2,"p1=[p,1]; p1->Boost([p + p]); _x=cos(p1->Theta())");
12
13 my_reaction.Print();
14
15 my_reaction.Loop(5000);
16
17 histo2->Draw("e1");
18}
static void SetWeightVersion(Int_t i)
Definition PData.h:20
PReaction my_reaction("_T1=0.4; _T2=0.4;", "p", "p", "p p")
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
TH2F * histo2