Pluto v6.3.0
Loading...
Searching...
No Matches
jpsi.C
Go to the documentation of this file.
1{ //test J/Psi decays
2 gROOT->Reset();
5 pdm->SetVerbose(1); // comment out to skip details
6 pdm->SetDefault("J/Psi");
7 pdm->SetDefault("pi0");
8 pdm->SetDefault("dilepton");
9
10 PParticle *p1 = new PParticle("p",25.0); // proton beam, Tlab (GeV)
11 PParticle *p2 = new PParticle("p"); // proton target
12 PParticle *s = new PParticle(*p1 + *p2);
13 c = new PDecayChannel; // define the decay channel
14 c->AddChannel(1.0, "p", "p", "J/Psi"); // add decay mode with weight + products
15
16 pdm->InitReaction(s, c); // J/Psi production in p + p
17 Int_t n = pdm->loop(10000, 0, "jpsi", 0, 0, 0, 0); // make events
18 cout << "Events processed: " << n << endl;
19}
20
21
22
PChannel * c[]
PParticle p2("p")
PParticle p1("p", beam_energy)
PParticle * s
Definition dp_mult.C:25
PDecayManager * pdm
Definition dp_w_dalitz.C:5
Int_t n
Definition etap+omeg.C:21