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