Pluto v6.3.0
Loading...
Searching...
No Matches
pion_beam_example.C
Go to the documentation of this file.
1//TITLE Example how to use the pion beam plugin
2
3{
4
5 gSystem->Load("../../libPluto.so");
6 //Enable the pion beam plugin:
7 makeDistributionManager()->Exec("pion_beam");
8
9 //Set the term
10 PPionBeamAmplitude* ampl_orig=(PPionBeamAmplitude*) makeDistributionManager()->GetDistribution("Pi_minusBeamAmplitude");
11 ampl_orig->SetTerm(0);
12 //0=coherent sum, 1=rho, 2=omega
13
14 //Add particle smearing if needed
15 //PHadesParticleSmearer * smearer = new PHadesParticleSmearer();
16 //smearer->SetResolutionFactor(2);
17
18 TH1F *histo1 = new TH1F("histo1","Dilepton Mass",100,0.,0.8);
19 histo1->Sumw2();
20
21 //0.832 => sqrt=1.65
22 PReaction my_reaction("0.832","pi-","p","n dilepton [e+ e-]");
23 //my_reaction.AddBulk(smearer);
24
25 my_reaction.Do(histo1,"_x = ([e+]+[e-])->M()");
26 my_reaction.Print();
27 my_reaction.Loop(10000);
28
30 histo1->Draw("");
31
32}
static void correct(TH1 *histo)
PPionBeamAmplitude * ampl_orig
makeDistributionManager() -> Exec("pion_beam")
PReaction my_reaction("0.832","pi-","p","n dilepton [e+ e-]")
TH1F * histo1
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")