Pluto v6.3.0
Loading...
Searching...
No Matches
test_phi2170_ingo.C
Go to the documentation of this file.
1{
2
3
4 //acticate the plugin in advance:
5 //makeDistributionManager()->Exec("exotics:init");
6 //loop over std physics to generate the model objects
7 //makeDistributionManager()->ActivateStdModels();
8 //listParticle("phi2170");
9
10 //PHadronDecayM2Mesh *model = new PHadronDecayM2Mesh("m2@phi2170#to#phi#f0_980", "Mesh decay for phi2170", -2);
11 //makeDistributionManager()->Add(model);
12
13 PReaction r(29., "p", "p", "p p phi2170 [phi [K+ K-] f0_980]");
14 //PReaction r(29., "p", "p", "p p phi2170 [phi f0_980]");
15
16 TH1F *histo = new TH1F("histo", "phi2170 mass", 100, 1.6, 3.0);
17 TH2F *histo2 = new TH2F("histo2", "phi2170 vs f0 mass", 100, 1.6, 2.6, 100, 0.6, 1.2);
18 r.Do(histo, "_x = [phi2170]->M()");
19 r.Do(histo2, "_x = [phi2170]->M(); _y=[f0_980]->M();");
20
21 r.Print();
22
23 r.Loop(100000);
24
25 //get the decay indices:
26 Int_t phi2170_to_phi_pipi_idx = makeStaticData()->GetDecayIdx("phi2170", "phi, pi+, pi-");
27 Int_t phi2170_to_KKpipi_idx = makeStaticData()->GetDecayIdx("phi2170", "K+, K-, pi+, pi-");
28 Int_t phi2170_to_phif0_idx = makeStaticData()->GetDecayIdx("phi2170", "phi, f0_980");
29
30 //the name of the distributions as obtained with listParticle
35 phi2170->SetParameter(0, 0);
36 phi2170->SetParameter(1, -1);
37 phi2170->SetName("total");
39 phi2170_to_phi_pipi->SetName("phi_pipi");
41 phi2170_to_KKpipi->SetName("KKpipi");
43 phi2170_to_phif0->SetName("phif0");
44
45 //dummy to create the meshes
46 Double_t mass;
47 phi2170->GetWidth(2.2,&mass);
48
49 phi2170_to_phi_pipi->SetLineColor(1); //pipi black
50 phi2170_to_phif0->SetLineColor(3); //phif0 green
51
52 histo->Scale(1000. * 0.3 * 0.7 * 0.95 * 0.8 * 0.9);
53 histo->Draw();
54 phi2170_to_phif0->Draw("same");
55
56
57}
PDistributionManager * makeDistributionManager()
PStaticData * makeStaticData()
PDistribution * GetDistribution(const Char_t *id)
virtual PDistribution * Clone(const char *delme=NULL) const
int GetDecayIdx(int *pid, int n)
PReaction r(c,"eta_dalitz", 3, 0, 0, 0, 1)
Int_t phi2170_to_phi_pipi_idx
PBreitWigner * phi2170
Int_t phi2170_to_KKpipi_idx
PBreitWigner * phi2170_to_KKpipi
PBreitWigner * phi2170_to_phi_pipi
Int_t phi2170_to_phif0_idx
Double_t mass
PBreitWigner * phi2170_to_phif0
TH2F * histo2
TH1F * histo