10 my_reaction.Do(
"foreach(*); [*]->Push(Branch(particles_stage1))");
13 my_reaction.Do(
"loop: theta_ep = ([*]->Theta() * 180.)/TMath::Pi()");
14 my_reaction.Do(
"theta_em = ([*]->Theta() * 180.)/TMath::Pi()");
15 my_reaction.Do(
"if ((theta_ep<18 || theta_ep>85 || theta_em<18 || theta_em>85) && ![*]->HasID(w.pid)); [*]->SetInActive(); ");
19 my_reaction.Do(
"[w]->SetM(([e+]+[e-])->M()); else; [w]->SetInActive();");
22 my_reaction.Do(
"foreach(*); [*]->Push(Branch(particles_stage2))");
25 my_reaction.Do(
"foreach(*); mom = [*]->P(); newmom = sampleGaus(mom,0.1*mom);[*]->SetMom(newmom);");
35 data->Draw(
"particles_stage1.M() >> htemp1",
"particles_stage1.ID() == 52");
36 htemp1->SetLineColor(1);
37 data->Draw(
"particles_stage2.M() >> htemp2",
"particles_stage2.ID() == 52",
"same");
38 htemp2->SetLineColor(2);
39 data->Draw(
"Particles.M() >> htemp3",
"Particles.ID() == 52",
"same");
static void SetSeed(UInt_t s)
PReaction my_reaction("_T1 = 2.2", "p", "p", "p p w [e+ e-]", "w_multiple_branches")
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")