Pluto v6.3.0
Loading...
Searching...
No Matches
user_eta_3pi_decay_histo.C
Go to the documentation of this file.
1//TITLE Demo using a histogram to change the Dalitz plot eta -> 3pi
2
3{
4
5 makeDistributionManager()->Disable("eta_hadronic_decay");
6
8 new PDalitzDistribution("my_hadronic_decay",
9 "Eta matrix element for decay into charged pions");
10 decay->Add("eta, parent");
11 decay->Add("pi0, daughter, primary");
12 decay->Add("pi+, daughter, s1");
13 decay->Add("pi-, daughter, s2");
14
15
16 //N.B.: this demo uses the histogram generated by user_eta_3pi_decay.C
17 //But this is only a demo!
18 //One can exchange the histogram as well as the commands to use it:
19 TFile *f = new TFile("histo.root");
20 TH2F *hf1old = new TH2F(*hf1);
21 decay->SetMax(hf1old->GetMaximum());
22 decay->AddHistogram(hf1old, "_x = (_s2 + _primary)->M2(); _y = (_s1 + _primary)->M2(); _f = Eval();");
23
25
26 TH2F *hf1new = new TH2F("hf1new", "", 100, 0.06, .2, 100, 0.06, .2);
27
28 PReaction my_reaction("2.2", "p", "p", "p p eta [pi+ pi- pi0]", NULL, 1, 0, 0, 0);
29
30 my_reaction.Do(hf1new, "_x = ([pi-] + [pi0])->M2() ; _y = ([pi+] + [pi0])->M2()");
31 my_reaction.Print();
32 my_reaction.Loop(100000);
33 hf1new->Draw("box");
34
35}
TH1F * hf1
TFile * f
Definition analyze_g12C.C:8
PReaction my_reaction("3.5","p","7Li","p (n) phi [K+ K-] (6Li)","delme")
PDalitzDistribution * decay
PReaction my_reaction("2.2", "p", "p", "p p eta [pi+ pi- pi0]", NULL, 1, 0, 0, 0)
makeDistributionManager() -> Add(decay)
TH2F * hf1new
TH2F * hf1old