Pluto v6.3.0
Loading...
Searching...
No Matches
make_phi2170_partial_fig.C
Go to the documentation of this file.
1{
2
3
4 TCanvas *c1 = new TCanvas("c1", "phi(2170) mass distribution", 800, 800);
5 c1->SetLogy(1);
6
7 //acticate the plugin in advance:
8 makeDistributionManager()->Exec("exotics:init");
9 //loop over std physics to generate the model objects
10 makeDistributionManager()->ActivateStdModels();
11 //check if it worked:
12 listParticle("phi2170");
13
14 //get the decay indices:
15 Int_t phi2170_to_phi_pipi_idx = makeStaticData()->GetDecayIdx("phi2170", "phi, pi+, pi-");
16 Int_t phi2170_to_KKpipi_idx = makeStaticData()->GetDecayIdx("phi2170", "K+, K-, pi+, pi-");
17 Int_t phi2170_to_phif0_idx = makeStaticData()->GetDecayIdx("phi2170", "phi, f0_980");
18
19 //the name of the distributions as obtained with listParticle
20 PBreitWigner *phi2170 = dynamic_cast<PBreitWigner*>(makeDistributionManager()->GetDistribution("phi2170_bw")->Clone());
24 phi2170->SetParameter(0, 0);
25 phi2170->SetParameter(1, -1);
26 phi2170->SetName("total");
28 phi2170_to_phi_pipi->SetName("phi_pipi");
30 phi2170_to_KKpipi->SetName("KKpipi");
32 phi2170_to_phif0->SetName("phif0");
33
34 //dummy to create the meshes
35 Double_t mass;
36 phi2170->GetWidth(2.2,&mass);
37
38 phi2170_to_phi_pipi->SetLineColor(1); //pipi black
39 phi2170_to_phif0->SetLineColor(3); //phif0 green
40
42 phi2170_to_phi_pipi->SetTitle("phi(2170) mass distribution");
43 phi2170_to_KKpipi->Draw("same");
44 phi2170_to_phif0->Draw("same");
45
46
47}
PStaticData * makeStaticData()
new TCanvas()
int GetDecayIdx(int *pid, int n)
makeDistributionManager() -> Exec("exotics:init")
Int_t phi2170_to_phi_pipi_idx
PBreitWigner * phi2170
Int_t phi2170_to_KKpipi_idx
listParticle("phi2170")
PBreitWigner * phi2170_to_KKpipi
PBreitWigner * phi2170_to_phi_pipi
Int_t phi2170_to_phif0_idx
Double_t mass
PBreitWigner * phi2170_to_phif0