]>
Commit | Line | Data |
---|---|---|
e751e1d9 | 1 | TGraphErrors* v2CMS2030(Int_t color=1, Int_t marker=20, Int_t first=-1,Int_t last=-1) |
2 | { | |
3 | //commentme | |
4 | Int_t _nPoints = 6; | |
5 | if (last>_nPoints-1) last=_nPoints-1; | |
6 | if (last<0 && first<0) last=_nPoints-1; | |
7 | if (last<0) last=_nPoints-1+last; | |
8 | if (first<0) first=0; | |
9 | ||
10 | Double_t _x[] = {1.79, 2.24, 2.74, 3.46, 4.89, 6.75}; | |
11 | Double_t _y[] = {0.161, 0.154, 0.169, 0.166, 0.131, 0.107}; | |
12 | Double_t _xerr[] = {0, 0, 0, 0, 0, 0}; | |
13 | Double_t _yerr[] = {0.033, 0.031, 0.022, 0.033, 0.029, 0.034}; | |
14 | ||
15 | ||
16 | TGraphErrors* graph = new TGraphErrors(last-first+1, &_x[first], &_y[first], &_xerr[first], &_yerr[first]); | |
17 | graph->SetLineColor(color); | |
18 | graph->SetMarkerColor(color); | |
19 | graph->SetMarkerStyle(marker); | |
20 | return graph; | |
21 | } | |
22 | TGraphErrors* v2CMS3040(Int_t color=1, Int_t marker=20, Int_t first=-1,Int_t last=-1) | |
23 | { | |
24 | //commentme | |
25 | Int_t _nPoints = 6; | |
26 | if (last>_nPoints-1) last=_nPoints-1; | |
27 | if (last<0 && first<0) last=_nPoints-1; | |
28 | if (last<0) last=_nPoints-1+last; | |
29 | if (first<0) first=0; | |
30 | ||
31 | Double_t _x[] = {1.79, 2.24, 2.74, 3.46, 4.89, 6.75}; | |
32 | Double_t _y[] = {0.178, 0.175, 0.192, 0.180, 0.137, 0.118}; | |
33 | Double_t _xerr[] = {0, 0, 0, 0, 0, 0}; | |
34 | Double_t _yerr[] = {0.016, 0.017, 0.023, 0.024, 0.024, 0.018}; | |
35 | ||
36 | ||
37 | TGraphErrors* graph = new TGraphErrors(last-first+1, &_x[first], &_y[first], &_xerr[first], &_yerr[first]); | |
38 | graph->SetLineColor(color); | |
39 | graph->SetMarkerColor(color); | |
40 | graph->SetMarkerStyle(marker); | |
41 | return graph; | |
42 | } | |
43 | TGraphErrors* v2CMS4050(Int_t color=1, Int_t marker=20, Int_t first=-1,Int_t last=-1) | |
44 | { | |
45 | //commentme | |
46 | Int_t _nPoints = 6; | |
47 | if (last>_nPoints-1) last=_nPoints-1; | |
48 | if (last<0 && first<0) last=_nPoints-1; | |
49 | if (last<0) last=_nPoints-1+last; | |
50 | if (first<0) first=0; | |
51 | ||
52 | Double_t _x[] = {1.79, 2.24, 2.74, 3.46, 4.89, 6.75}; | |
53 | Double_t _y[] = {0.192, 0.189, 0.194, 0.182, 0.153, 0.108}; | |
54 | Double_t _xerr[] = {0, 0, 0, 0, 0, 0}; | |
55 | Double_t _yerr[] = {0.012, 0.013, 0.020, 0.017, 0.016, 0.016}; | |
56 | ||
57 | ||
58 | TGraphErrors* graph = new TGraphErrors(last-first+1, &_x[first], &_y[first], &_xerr[first], &_yerr[first]); | |
59 | graph->SetLineColor(color); | |
60 | graph->SetMarkerColor(color); | |
61 | graph->SetMarkerStyle(marker); | |
62 | return graph; | |
63 | } | |
64 |