Pluto v6.3.0
Loading...
Searching...
No Matches
thermal_rho.C
Go to the documentation of this file.
1//TITLE <b>Thermal macros (PFireball):</b> Test thermal source of rho's
2// (R.H. 21/3/2006)
3
4{
5
6 //Add user-defined model without VDM M**3 scaling
7 PFixedDecay *pmodel = new PFixedDecay("rho0_novdm_e-_e+", "Rho decay without VDM", -1);
8 pmodel->Add("rho0, parent");
9 pmodel->Add("e+, daughter");
10 pmodel->Add("e-, daughter");
11 makeDistributionManager()->Add(pmodel); //This enables the model
12
13 //Enable this for removing the pi-cutoff:
14 //makeDistributionManager()->Enable("rho0_ee_e-_e+");
15
16 //Re-enabling VDM support:
17 makeDistributionManager()->Enable("rho_picutoff_e-_e+");
18
19 //Finally check what we have done:
20 makeDistributionManager()->Print("decay_models");
21
22 //PFireball *source = new PFireball("rho0", 0., 0.02, 0.0, 1, 0., 0., 0.0, 0.0, 0.0);
23 PFireball *source = new PFireball("rho0", 1.0, 0.055, 0.0, 1.0, 0.0, 0., 0., 0., 0.); //1AGeV temp.
24 source->setTrueThermal(kFALSE);
25
26 PParticle *rho = new PParticle("rho0");
28 PChannel *c1 = new PChannel(s1, 1, 1);
29
30 PParticle *ep = new PParticle("e+");
31 PParticle *em = new PParticle("e-");
32 PParticle *s2[] = {rho, ep, em};
33 PChannel *c2 = new PChannel(s2, 2, 1);
34
35 PChannel *cc[] = {c1, c2};
36 PReaction *r = new PReaction(cc, "thermal_rho", 2, 1, 1);
37 r->Print();
38 r->SetHGeant(0); // set to 1, if PLUTO run from HGeant prompt
39 r->loop(10000);
40
41 //data->Draw("M()","ID()==41","");
42
43}
PParticle * ep
PParticle * em
PReaction r(c,"eta_dalitz", 3, 0, 0, 0, 1)
PParticle * s2[]
PParticle * s1[]
PChannel * c2
PChannel * cc[]
PFermiMomentumDD * pmodel
Definition fermi_dd.C:38
PChannelModel * rho
PFireball source("pi0", 0.1, 0)
makeDistributionManager() -> Add(pmodel)