Pluto
v6.3.0
Loading...
Searching...
No Matches
batch_read_ASCII.C
Go to the documentation of this file.
1
//TITLE Re-read the ASCII-file from batch_write_ntuple.C and make a bulk decay
2
3
{
4
//Define an "empty" reaction
5
PReaction
my_reaction
(
"eta_decays"
);
6
7
PProjector
*
input
=
new
PProjector
();
8
input
->AddCommand(
"myeta = P3M(0.,0.,0.,eta.mass)"
);
9
input
->AddCommand(
"myeta->SetID(eta.pid)"
);
10
input
->AddInputASCII(
"eta_sample.txt"
,
11
"readline{@px @py @pz @mass}; myeta->SetXYZM(px,py,pz,mass)"
);
12
input
->AddCommand(
"push(myeta)"
);
13
my_reaction
.AddPrologueBulk(
input
);
//The "prolog" is done before the decay
14
15
my_reaction
.SetDecayAll(1.);
16
17
my_reaction
.Print();
18
19
cout <<
my_reaction
.Loop() <<
" events recovered"
<< endl;
20
}
PProjector
Definition
PProjector.h:20
PReaction
Definition
PReaction.h:37
my_reaction
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
input
PUniGenInput * input
Definition
unigen_input.C:7
pluto6
macros
batch_read_ASCII.C
Generated by
1.14.0