Pluto
v6.3.0
Loading...
Searching...
No Matches
conversion_demo.C
Go to the documentation of this file.
1
{
2
3
4
PReaction
my_reaction
(
"_T1 = 2.2"
,
"p"
,
"p"
,
"p p eta [g g]"
,
"eta_conv"
,0,0,1,1);
5
6
Float_t
Zmean
= 79;
7
Float_t
pconv
= 20.;
// 0 => do lookup, >0 => use fixed value
8
PGammaConversion
*
conv
=
new
PGammaConversion
(
Zmean
,
pconv
,2);
9
conv
->SetVertex(1,2,3);
10
11
//if(conv->readHist("HGeantSim_white_gamma_vertex.root")<0){
12
// cout<<"COULD NOT READ VERTEXHIST!"<<endl;
13
//} else {
14
// cout<<"VERTEXHIST INITIALIZED!"<<endl;
15
//}
16
17
conv
->SetPriority(51);
// needed to get conversion done last
18
19
my_reaction
.AddBulk(
conv
);
20
my_reaction
.Print();
//The "Print()" statement is optional
21
my_reaction
.Loop(5);
22
}
PGammaConversion
Definition
PGammaConversion.h:24
PReaction
Definition
PReaction.h:37
conv
PGammaConversion * conv
Definition
conversion_demo.C:8
pconv
Float_t pconv
Definition
conversion_demo.C:7
Zmean
Float_t Zmean
Definition
conversion_demo.C:6
my_reaction
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
pluto6
plugins
tools
macros
conversion_demo.C
Generated by
1.14.0