11 #include "TApplication.h"
21 int main(
int argc,
char** argv){
26 TApplication app(
"", 0, 0);
27 gROOT->SetStyle(
"Plain");
29 unsigned int n = 1000;
30 TGraph* intens =
new TGraph(n);
31 TGraph* argand =
new TGraph(n);
35 double mstep = (mend - mstart) / (
double)
n;
37 for(
unsigned int i=0;
i<
n; ++
i) {
39 double mass = mstart +
i*mstep;
41 complex<double> amp = bw.
amp(mass) + bw2.
amp(mass);
43 intens->SetPoint(
i, mass, norm(amp));
46 argand->SetPoint(
i, rho*amp.real(), rho*amp.imag());
50 TCanvas* c =
new TCanvas(
"c",
"Mass Dep",10,10,1200,600);
53 intens->SetTitle(
"Intensity");
56 argand->SetTitle(
"Argand plot");
61 gApplication->SetReturnFromRun(kFALSE);