Thermal macros (PFireball): Test thermal source of rho's

// (R.H. 21/3/2006)

{ 

    //Add user-defined model without VDM M**3 scaling
    PFixedDecay *pmodel = new PFixedDecay("rho0_novdm_e-_e+", "Rho decay without VDM", -1);
    pmodel->Add("rho0, parent");
    pmodel->Add("e+, daughter");
    pmodel->Add("e-, daughter");
    makeDistributionManager()->Add(pmodel); //This enables the model

    //Enable this for removing the pi-cutoff:
    //makeDistributionManager()->Enable("rho0_ee_e-_e+");

    //Re-enabling VDM support:
    makeDistributionManager()->Enable("rho_picutoff_e-_e+");

    //Finally check what we have done:
    makeDistributionManager()->Print("decay_models");

    //PFireball *source = new PFireball("rho0", 0., 0.02, 0.0, 1, 0., 0., 0.0, 0.0, 0.0);
    PFireball *source = new PFireball("rho0", 1.0, 0.055, 0.0, 1.0, 0.0, 0., 0., 0., 0.); //1AGeV temp.
    source->setTrueThermal(kFALSE);

    PParticle *rho = new PParticle("rho0");
    PParticle *s1[] = {source, rho};
    PChannel  *c1 = new PChannel(s1, 1, 1);

    PParticle *ep = new PParticle("e+");
    PParticle *em = new PParticle("e-");
    PParticle *s2[] = {rho, ep, em};
    PChannel  *c2 = new PChannel(s2, 2, 1);

    PChannel  *cc[] = {c1, c2};
    PReaction *r = new PReaction(cc, "thermal_rho", 2, 1, 1);
    r->Print();
    r->SetHGeant(0);   // set to 1, if PLUTO run from HGeant prompt
    r->loop(10000);

    //data->Draw("M()","ID()==41","");

}
 thermal_rho.C:1
 thermal_rho.C:2
 thermal_rho.C:3
 thermal_rho.C:4
 thermal_rho.C:5
 thermal_rho.C:6
 thermal_rho.C:7
 thermal_rho.C:8
 thermal_rho.C:9
 thermal_rho.C:10
 thermal_rho.C:11
 thermal_rho.C:12
 thermal_rho.C:13
 thermal_rho.C:14
 thermal_rho.C:15
 thermal_rho.C:16
 thermal_rho.C:17
 thermal_rho.C:18
 thermal_rho.C:19
 thermal_rho.C:20
 thermal_rho.C:21
 thermal_rho.C:22
 thermal_rho.C:23
 thermal_rho.C:24
 thermal_rho.C:25
 thermal_rho.C:26
 thermal_rho.C:27
 thermal_rho.C:28
 thermal_rho.C:29
 thermal_rho.C:30
 thermal_rho.C:31
 thermal_rho.C:32
 thermal_rho.C:33
 thermal_rho.C:34
 thermal_rho.C:35
 thermal_rho.C:36
 thermal_rho.C:37
 thermal_rho.C:38
 thermal_rho.C:39
 thermal_rho.C:40
 thermal_rho.C:41
 thermal_rho.C:42
 thermal_rho.C:43