10 Float_t x[50]={0.,5.,10.,15.,20.,25.,30.,35.,40.,45.,50.};
11 Float_t y[31][11],ey[31][11];
14 East =
new TH1D(
"East",
"East",50,30,50);
15 West =
new TH1D(
"West",
"West",50,30,50);
17 in0.open(
"timing.tex");
19 for(Int_t is=0;is<11;is++) {
21 for(Int_t ic=0;ic<30;ic++) {
23 ey[ic][is]=sqrt(y[ic][is]);
49 Float_t yf[5],ef[5],xf[5];
51 gStyle->SetOptStat(0);
53 c1 =
new TCanvas(
"c1",
"Timing of BEMC Crate", 200, 10, 700, 500);
55 for(
int j=0;j<15;j++){
57 Float_t yy[11],eyy[11];
61 for(Int_t i=0;i<11;i++){
66 for(Int_t i=0;i<5;i++){
72 graph1 =
new TGraphErrors(11, x, yy,0,eyy);
73 graph1->SetMarkerStyle(20);
74 graph1->SetMarkerSize(1.0);
75 graph1->SetMarkerColor(1);
78 graph2 =
new TGraphErrors(5, xf, yf,0,ef);
79 graph2->SetMarkerStyle(20);
80 graph2->SetMarkerSize(1.0);
81 graph2->SetMarkerColor(2);
85 graph2->GetXaxis()->SetTitle(
"TCD Phase (ns)");
86 graph2->GetYaxis()->SetTitle(
"Integral 100<ADC<2000");
88 East->Fill(gaus->GetParameter(1));
90 TLine *tl =
new TLine(36.,0.,36.,1.e+07);
94 Float_t gl=gaus->GetParameter(1);
95 TLine *t2 =
new TLine(gl,0.,gl,1.e+07);
103 gStyle->SetOptStat(1);
104 gStyle->SetOptStat(1);
108 c2 =
new TCanvas(
"c2",
"Timing of BEMC Crate", 200, 10, 700, 500);
109 gStyle->SetOptStat(0);
112 for(
int j=15;j<30;j++){
114 Float_t yy[11],eyy[11];
118 for(Int_t i=0;i<11;i++){
123 for(Int_t i=0;i<5;i++){
130 graph1 =
new TGraphErrors(11, x, yy,0,eyy);
131 graph1->SetMarkerStyle(20);
132 graph1->SetMarkerSize(1.0);
133 graph1->SetMarkerColor(1);
136 graph2 =
new TGraphErrors(5, xf, yf,0,ef);
137 graph2->SetMarkerStyle(20);
138 graph2->SetMarkerSize(1.0);
139 graph2->SetMarkerColor(2);
142 graph2->GetXaxis()->SetTitle(
"TCD Phase (ns)");
143 graph2->GetYaxis()->SetTitle(
"Integral 100<ADC<2000");
145 West->Fill(gaus->GetParameter(1));
147 TLine *tl =
new TLine(36.,0.,36.,1.e+07);
151 Float_t gl=gaus->GetParameter(1);
152 TLine *t2 =
new TLine(gl,0.,gl,1.e+07);
159 gStyle->SetOptStat(1);