Pluto v6.3.0
Loading...
Searching...
No Matches
useDummyModel.C
Go to the documentation of this file.
1//TITLE Use the dummy channel model
2
3#include "PDummyModel.C"
4
5void useDummyModel(void) {
6 //Add a bunch of dummy particles
7 makeStaticData()->AddParticle(-1, "A", 1.2);
10 makeStaticData()->AddParticle(-1, "b", 0.5);
11 makeStaticData()->AddParticle(-1, "c", 0.3);
12
13
14 makeStaticData()->AddDecay(-1, "A -> b + c", "A", "b,c", 1.);
15 makeStaticData()->AddDecay(-1, "A -> b + b", "A", "b,b", 1.);
16
17
18 //Construct the model from the class
19 //Use the parser
20 PDummyModel *newmodel = new PDummyModel("A_dummy_b_c", "My private model", -1);
21
22 //make it known to the Pluto world:
23 makeDistributionManager()->Add(newmodel);
25
26 //We look to the decay A -> b+b
27 PReaction my_reaction(3.13, "p", "p", "p A [b b]", "mydecay", 1, 0, 0, 0);
28 my_reaction.Print(); //The "Print()" statement is optional
29 my_reaction.Loop(20000);
30
31 //data->Draw("M()","ID()==70","e1");
32}
PDistributionManager * makeDistributionManager()
PStaticData * makeStaticData()
void Print(const Option_t *delme="root") const
int Add(PDistribution *dist)
int AddDecay(int didx, const char *name, const char *parent, const char *daughters, double br)
void SetParticleTotalWidth(Int_t id, Float_t wid)
void SetParticleBaryon(const char *id, Int_t num=1)
int AddParticle(int pid, const char *name, double mass)
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
void useDummyModel(void)