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();
3
PDecayChannel
*
c
;
4
PDecayManager
*
pdm
=
new
PDecayManager
;
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
PDecayChannel
Definition
PDecayChannel.h:28
PDecayManager
Definition
PDecayManager.h:169
PParticle
Definition
PParticle.h:25
c
PChannel * c[]
Definition
complete_eta.C:30
p2
PParticle p2("p")
p1
PParticle p1("p", beam_energy)
s
PParticle * s
Definition
dp_mult.C:25
pdm
PDecayManager * pdm
Definition
dp_w_dalitz.C:5
n
Int_t n
Definition
etap+omeg.C:21
pluto6
macros
jpsi.C
Generated by
1.14.0