6 return (1+x[0]*x[0])/2;
16 TF1 *angles1 =
new TF1(
"angles1",
"(1+x*x)/2", -1, 1);
22 for (Int_t i=0; i<
n; i++) {
23 x[i] = i*(1./Double_t(
n-1));
24 y[i] = (1+x[i]*x[i])/2;
31 TGraph *angles3 =
new TGraph(
n, x, y);
34 ang->
Add(
"q,parent,reference");
35 ang->
Add(
"p,daughter");
36 ang->
Add(
"NP11+,daughter,primary");
PDistributionManager * makeDistributionManager()
void Print(const Option_t *delme=NULL) const
void SetAngleFunction(TF1 *f)
void Print(const Option_t *delme="root") const
int Add(PDistribution *dist)
Int_t Add(const Char_t *opt)
double f_my_function(double *x, double *par)
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
void useAngularDistribution(void)
double f_my_function(double *x, double *par)