source: trunk/MagicSoft/GC-Proposal/MAGIC_sensitivity.C@ 7635

Last change on this file since 7635 was 6826, checked in by hbartko, 20 years ago
*** empty log message ***
File size: 920 bytes
Line 
1void MAGIC_sensitivity(void)
2{
3 float x[13] ={0.0462, 0.0572, 0.0705, 0.1204, 0.154, 0.1874, 0.2256, 0.2325, 0.3025, 0.3865, 0.4509, 0.5009, 0.5992};
4 float ex[13];// ={0.064., 0.066., 0.080., 0.102., 0.356., 0.653.};
5 float y[13] = {9.32,6.31,4.37,1.52,0.797,0.528,0.374,0.327,0.200,0.136,0.104,0.085,0.07};
6 float ey[13]; //= {0.06e-8, 0.22e-9, 0.08e-9, 0.19e-10, 0.28e-11, 1.19e-13, 0.03};
7
8 for (int i=0; i<13; i++){
9 ex[i]=0.01*x[i];
10 y[i]*=1e-11;
11 ey[i]=0.01*y[i];
12 }
13
14
15 TGraphErrors * gr = new TGraphErrors(13,x,y,ex,ey);
16 gr->SetMinimum(1e-9);
17 gr->SetMinimum(1e-15);
18
19 TF1 * f =new TF1("f","[0]*pow(x,[1])",0.0200,3.000);
20 f->SetParameter(0,2e-13);
21 f->SetParameter(1,-2.);
22
23 // f->SetParameter(1,-4.4);
24
25 TCanvas * cc = new TCanvas("cc","cc",600,400);
26 cc->SetGridx();
27 cc->SetGridy();
28 cc->SetLogx();
29 cc->SetLogy();
30
31
32 gr->Draw("AP");
33 gr->Fit(f,"RLM","");
34 f->Draw("same");
35}
Note: See TracBrowser for help on using the repository browser.