17 #include "TApplication.h"
28 g->GetXaxis()->SetLabelFont(font);
29 g->GetXaxis()->SetTitleFont(font);
30 g->GetYaxis()->SetLabelFont(font);
31 g->GetYaxis()->SetTitleFont(font);
37 int main(
int argc,
char** argv){
46 cout <<
" usage: plotGampMassDep AMP|VES|KACH|LASS|RPRIME|BW [inv_mass(def 600MeV)] [width(def 600MeV)] [pi|K (def pi)] [pi|K (def pi)] [PDG name (mass and width will be ignored)]" << endl;
54 mass=
atoi(argv[2])/1000.;
57 width=
atoi(argv[3])/1000.;
67 cout <<
" using PDG values for " << part << endl;
80 cout <<
" plotting " << opt <<
" with a mass of " << mass <<
" and width of " << width <<
" decaying into " << part1 <<
" " << part2 << endl;
94 if(opt==
"AMP")dep=
new AMP_M();
95 else if(opt==
"VES")dep=
new AMP_ves();
96 else if(opt==
"KACH")dep=
new AMP_kach();
97 else if(opt==
"LASS")dep=
new AMP_LASS();
98 else if(opt==
"RPRIME")dep=
new rhoPrime();
103 TApplication app(
"", 0, 0);
104 gROOT->SetStyle(
"Plain");
107 TGraph* intens=
new TGraph(n);
108 TGraph* argand=
new TGraph(n);
109 TGraph* phase=
new TGraph(n);
113 double mstep=(mend-mstart)/(
double)
n;
116 for(
unsigned int i=0;
i<
n; ++
i){
118 double mass=mstart+
i*mstep;
120 complex<double> amp=dep->
val(myp);
122 intens->SetPoint(
i,mass,norm(amp));
123 double phaseval=arg(amp);
124 if(phaseval<0)phaseval+=2*TMath::Pi();
125 phase->SetPoint(
i,mass,phaseval);
128 argand->SetPoint(
i,rho*amp.real(),rho*amp.imag());
134 gStyle->SetOptStat(0);
135 gStyle->SetOptTitle(0);
136 gStyle->SetStripDecimals(1);
137 TGaxis::SetMaxDigits(3);
141 gStyle->SetTextFont(font);
142 gStyle->SetLabelFont(font);
147 TCanvas* c=
new TCanvas(
"c",
"Mass Dep",10,10,1200,600);
150 intens->SetTitle(
"Intensity");
153 intens->GetXaxis()->SetTitle(
"Mass of (#pi#pi) system (GeV/c^{2})");
154 intens->GetYaxis()->SetTitle(
"Intensity");
156 phase->SetTitle(
"Phase");
159 phase->GetXaxis()->SetTitle(
"Mass of (#pi#pi) system (GeV/c^{2})");
160 phase->GetYaxis()->SetTitle(
"Phase");
169 gApplication->SetReturnFromRun(kFALSE);