Pluto v6.3.0
Loading...
Searching...
No Matches
batch_use_PHadesAcc.C
Go to the documentation of this file.
1#include "PHadesAcc.C"
2
3
5
6 TH1F * histo1 = new TH1F ("histo1","opang",50,0,3.14);
7 histo1->Sumw2();
8 TH1F * histo2 = new TH1F ("histo2","opang",50,0,3.14);
9 histo2->Sumw2();
10
11 PReaction my_reaction(3.13,"p","p","p p pi0 [dilepton [e+ e-] g]");
12 my_reaction.AddBulk(new PHadesAcc());
13
14 //Use prepared variable to supress output:
15 my_reaction.Do("#filter = _hadacc * _opang");
16 //Use prepared variable to select histogram content:
17 my_reaction.Do(histo1,"if(_opang && _hadacc);_ep=[e+]; _em=[e-]; _x=_ep->Angle(_em)");
18
19 cout << my_reaction.Loop(10000) << endl;
20
21 histo1->Draw("e1");
22
23 makeDistributionManager()->Disable("helicity_angles");
24
25 PReaction my_reaction2(3.13,"p","p","p p pi0 [dilepton [e+ e-] g]");
26 my_reaction2.AddBulk(new PHadesAcc());
27
28 //Use prepared variable to supress output:
29 my_reaction2.Do("#filter = _hadacc * _opang");
30 //Use prepared variable to select histogram content:
31 my_reaction2.Do(histo2,"if(_opang && _hadacc);_ep=[e+]; _em=[e-]; _x=_ep->Angle(_em)");
32
33 my_reaction2.Loop(10000);
34
35 histo2->Draw("e1same");
36
37
38}
PDistributionManager * makeDistributionManager()
void batch_use_PHadesAcc(void)
void Disable(const Char_t *id)
PReaction my_reaction2("2.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
TH1F * histo1
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
TH2F * histo2