{ //=========Macro generated from canvas: c1/c1 //========= (Sun Feb 24 22:33:19 2013) by ROOT version5.34/04 TCanvas *c1 = new TCanvas("c1", "c1",642,72,700,500); gStyle->SetOptTitle(0); c1->Range(-5.297297,0.2336726,52.81081,0.4889262); c1->SetFillColor(0); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetTickx(1); c1->SetTicky(1); c1->SetLeftMargin(0.16); c1->SetTopMargin(0.05); c1->SetBottomMargin(0.16); c1->SetFrameBorderMode(0); c1->SetFrameBorderMode(0); TH1D *High Gain A (Black/Red) = new TH1D("High Gain A (Black/Red)","HIGH gain, All EMB",50,0,50); High Gain A (Black/Red)->SetBinContent(6,0.4604116); High Gain A (Black/Red)->SetBinContent(7,0.4344114); High Gain A (Black/Red)->SetBinContent(8,0.4162896); High Gain A (Black/Red)->SetBinContent(9,0.4022155); High Gain A (Black/Red)->SetBinContent(10,0.3899821); High Gain A (Black/Red)->SetBinContent(11,0.3792617); High Gain A (Black/Red)->SetBinContent(12,0.3705049); High Gain A (Black/Red)->SetBinContent(13,0.3645634); High Gain A (Black/Red)->SetBinContent(14,0.3586992); High Gain A (Black/Red)->SetBinContent(15,0.3530831); High Gain A (Black/Red)->SetBinContent(16,0.3490695); High Gain A (Black/Red)->SetBinContent(17,0.3472252); High Gain A (Black/Red)->SetBinContent(18,0.345556); High Gain A (Black/Red)->SetBinContent(19,0.3460548); High Gain A (Black/Red)->SetBinContent(20,0.3424862); High Gain A (Black/Red)->SetBinContent(21,0.3397841); High Gain A (Black/Red)->SetBinContent(22,0.3398936); High Gain A (Black/Red)->SetBinContent(23,0.3404421); High Gain A (Black/Red)->SetBinContent(24,0.3362498); High Gain A (Black/Red)->SetBinContent(25,0.3361199); High Gain A (Black/Red)->SetBinContent(26,0.3344767); High Gain A (Black/Red)->SetBinContent(27,0.3350152); High Gain A (Black/Red)->SetBinContent(28,0.3275733); High Gain A (Black/Red)->SetBinContent(29,0.3299978); High Gain A (Black/Red)->SetBinContent(30,0.3332096); High Gain A (Black/Red)->SetBinContent(31,0.3337935); High Gain A (Black/Red)->SetBinContent(32,0.3045767); High Gain A (Black/Red)->SetBinContent(33,0.3332951); High Gain A (Black/Red)->SetBinContent(34,0.3209236); High Gain A (Black/Red)->SetBinContent(35,0.3330249); High Gain A (Black/Red)->SetBinContent(36,0.3285822); High Gain A (Black/Red)->SetBinContent(37,0.3091462); High Gain A (Black/Red)->SetBinContent(38,0.3332557); High Gain A (Black/Red)->SetBinContent(39,0.3110624); High Gain A (Black/Red)->SetBinContent(40,0.3415945); High Gain A (Black/Red)->SetBinError(6,0.0004492257); High Gain A (Black/Red)->SetBinError(7,0.0004007019); High Gain A (Black/Red)->SetBinError(8,0.0003965264); High Gain A (Black/Red)->SetBinError(9,0.000417365); High Gain A (Black/Red)->SetBinError(10,0.0004564592); High Gain A (Black/Red)->SetBinError(11,0.0005047036); High Gain A (Black/Red)->SetBinError(12,0.0005778419); High Gain A (Black/Red)->SetBinError(13,0.0006685184); High Gain A (Black/Red)->SetBinError(14,0.0007881224); High Gain A (Black/Red)->SetBinError(15,0.0009551568); High Gain A (Black/Red)->SetBinError(16,0.001156809); High Gain A (Black/Red)->SetBinError(17,0.001412034); High Gain A (Black/Red)->SetBinError(18,0.001599512); High Gain A (Black/Red)->SetBinError(19,0.001959305); High Gain A (Black/Red)->SetBinError(20,0.002263099); High Gain A (Black/Red)->SetBinError(21,0.002522177); High Gain A (Black/Red)->SetBinError(22,0.002737231); High Gain A (Black/Red)->SetBinError(23,0.003223066); High Gain A (Black/Red)->SetBinError(24,0.003526782); High Gain A (Black/Red)->SetBinError(25,0.00411303); High Gain A (Black/Red)->SetBinError(26,0.004303198); High Gain A (Black/Red)->SetBinError(27,0.005260592); High Gain A (Black/Red)->SetBinError(28,0.005252908); High Gain A (Black/Red)->SetBinError(29,0.006320102); High Gain A (Black/Red)->SetBinError(30,0.00699104); High Gain A (Black/Red)->SetBinError(31,0.007409777); High Gain A (Black/Red)->SetBinError(32,0.007886518); High Gain A (Black/Red)->SetBinError(33,0.009559389); High Gain A (Black/Red)->SetBinError(34,0.009690054); High Gain A (Black/Red)->SetBinError(35,0.0110222); High Gain A (Black/Red)->SetBinError(36,0.01298065); High Gain A (Black/Red)->SetBinError(37,0.0116637); High Gain A (Black/Red)->SetBinError(38,0.01669939); High Gain A (Black/Red)->SetBinError(39,0.0187999); High Gain A (Black/Red)->SetBinError(40,0.020717); High Gain A (Black/Red)->SetMinimum(0.2745132); High Gain A (Black/Red)->SetMaximum(0.4761635); High Gain A (Black/Red)->SetEntries(35); TPaveStats *ptstats = new TPaveStats(0.2155172,0.7742616,0.4367816,0.9367089,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); TText *text = ptstats->AddText("High Gain A (Black/Red)"); text->SetTextSize(0.02490858); text = ptstats->AddText("Entries = 35 "); text = ptstats->AddText("Mean = 21.7"); text = ptstats->AddText("RMS = 10.27"); text = ptstats->AddText("p0 = 2.016 #pm 0.010 "); text = ptstats->AddText("p1 = 0.3261 #pm 0.0006 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); High Gain A (Black/Red)->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(High Gain A (Black/Red)); TF1 *PrevFitTMP = new TF1("PrevFitTMP","sqrt(sq([0]/x)+sq([1]))",8,40); PrevFitTMP->SetFillColor(19); PrevFitTMP->SetFillStyle(0); PrevFitTMP->SetMarkerStyle(20); PrevFitTMP->SetMarkerSize(1.2); PrevFitTMP->SetLineColor(2); PrevFitTMP->SetLineWidth(3); PrevFitTMP->SetChisquare(42.50071); PrevFitTMP->SetNDF(30); PrevFitTMP->GetXaxis()->SetLabelFont(42); PrevFitTMP->GetXaxis()->SetLabelSize(0.05); PrevFitTMP->GetXaxis()->SetTitleSize(0.05); PrevFitTMP->GetXaxis()->SetTitleFont(42); PrevFitTMP->GetYaxis()->SetLabelFont(42); PrevFitTMP->GetYaxis()->SetLabelSize(0.05); PrevFitTMP->GetYaxis()->SetTitleSize(0.05); PrevFitTMP->GetYaxis()->SetTitleFont(42); PrevFitTMP->SetParameter(0,2.016054); PrevFitTMP->SetParError(0,0.01037428); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.3261134); PrevFitTMP->SetParError(1,0.0006007346); PrevFitTMP->SetParLimits(1,0,0); High Gain A (Black/Red)->GetListOfFunctions()->Add(PrevFitTMP); High Gain A (Black/Red)->SetLineWidth(2); High Gain A (Black/Red)->SetMarkerStyle(20); High Gain A (Black/Red)->SetMarkerSize(1.2); High Gain A (Black/Red)->GetXaxis()->SetTitle("Cell Energy [GeV]"); High Gain A (Black/Red)->GetXaxis()->SetRange(5,47); High Gain A (Black/Red)->GetXaxis()->SetLabelFont(42); High Gain A (Black/Red)->GetXaxis()->SetLabelSize(0.05); High Gain A (Black/Red)->GetXaxis()->SetTitleSize(0.05); High Gain A (Black/Red)->GetXaxis()->SetTitleFont(42); High Gain A (Black/Red)->GetYaxis()->SetTitle("Timing Resolution [ns]"); High Gain A (Black/Red)->GetYaxis()->SetRange(1,1); High Gain A (Black/Red)->GetYaxis()->SetLabelFont(42); High Gain A (Black/Red)->GetYaxis()->SetLabelSize(0.05); High Gain A (Black/Red)->GetYaxis()->SetTitleSize(0.05); High Gain A (Black/Red)->GetYaxis()->SetTitleFont(42); High Gain A (Black/Red)->GetZaxis()->SetLabelFont(42); High Gain A (Black/Red)->GetZaxis()->SetLabelSize(0.05); High Gain A (Black/Red)->GetZaxis()->SetTitleSize(0.05); High Gain A (Black/Red)->GetZaxis()->SetTitleFont(42); High Gain A (Black/Red)->Draw(""); TH1D *High Gain B (Blue/Green) = new TH1D("High Gain B (Blue/Green)","HIGH gain, All EMB",50,0,50); High Gain B (Blue/Green)->SetBinContent(6,0.4053853); High Gain B (Blue/Green)->SetBinContent(7,0.3916574); High Gain B (Blue/Green)->SetBinContent(8,0.3805124); High Gain B (Blue/Green)->SetBinContent(9,0.37477); High Gain B (Blue/Green)->SetBinContent(10,0.3702449); High Gain B (Blue/Green)->SetBinContent(11,0.3661586); High Gain B (Blue/Green)->SetBinContent(12,0.360503); High Gain B (Blue/Green)->SetBinContent(13,0.3539771); High Gain B (Blue/Green)->SetBinContent(14,0.3490094); High Gain B (Blue/Green)->SetBinContent(15,0.3437922); High Gain B (Blue/Green)->SetBinContent(16,0.3388237); High Gain B (Blue/Green)->SetBinContent(17,0.3365375); High Gain B (Blue/Green)->SetBinContent(18,0.333193); High Gain B (Blue/Green)->SetBinContent(19,0.3312341); High Gain B (Blue/Green)->SetBinContent(20,0.3295127); High Gain B (Blue/Green)->SetBinContent(21,0.3296589); High Gain B (Blue/Green)->SetBinContent(22,0.3259433); High Gain B (Blue/Green)->SetBinContent(23,0.3271687); High Gain B (Blue/Green)->SetBinContent(24,0.3242944); High Gain B (Blue/Green)->SetBinContent(25,0.3234547); High Gain B (Blue/Green)->SetBinContent(26,0.3213477); High Gain B (Blue/Green)->SetBinContent(27,0.3242339); High Gain B (Blue/Green)->SetBinContent(28,0.3225688); High Gain B (Blue/Green)->SetBinContent(29,0.3252447); High Gain B (Blue/Green)->SetBinContent(30,0.3170048); High Gain B (Blue/Green)->SetBinContent(31,0.3163018); High Gain B (Blue/Green)->SetBinContent(32,0.3207761); High Gain B (Blue/Green)->SetBinContent(33,0.3254032); High Gain B (Blue/Green)->SetBinContent(34,0.3172137); High Gain B (Blue/Green)->SetBinContent(35,0.3316069); High Gain B (Blue/Green)->SetBinContent(36,0.3058816); High Gain B (Blue/Green)->SetBinContent(37,0.3189659); High Gain B (Blue/Green)->SetBinContent(38,0.3185904); High Gain B (Blue/Green)->SetBinContent(39,0.3176381); High Gain B (Blue/Green)->SetBinContent(40,0.318581); High Gain B (Blue/Green)->SetBinContent(41,0.3256097); High Gain B (Blue/Green)->SetBinContent(42,0.3414381); High Gain B (Blue/Green)->SetBinError(6,0.0008282669); High Gain B (Blue/Green)->SetBinError(7,0.0005130471); High Gain B (Blue/Green)->SetBinError(8,0.00043933); High Gain B (Blue/Green)->SetBinError(9,0.0004143059); High Gain B (Blue/Green)->SetBinError(10,0.0004276756); High Gain B (Blue/Green)->SetBinError(11,0.0004503188); High Gain B (Blue/Green)->SetBinError(12,0.0004870945); High Gain B (Blue/Green)->SetBinError(13,0.0005213288); High Gain B (Blue/Green)->SetBinError(14,0.0005678297); High Gain B (Blue/Green)->SetBinError(15,0.0006266809); High Gain B (Blue/Green)->SetBinError(16,0.0007017672); High Gain B (Blue/Green)->SetBinError(17,0.0008100562); High Gain B (Blue/Green)->SetBinError(18,0.0009152785); High Gain B (Blue/Green)->SetBinError(19,0.001084149); High Gain B (Blue/Green)->SetBinError(20,0.00124429); High Gain B (Blue/Green)->SetBinError(21,0.001484709); High Gain B (Blue/Green)->SetBinError(22,0.001627576); High Gain B (Blue/Green)->SetBinError(23,0.00186408); High Gain B (Blue/Green)->SetBinError(24,0.001950367); High Gain B (Blue/Green)->SetBinError(25,0.002271675); High Gain B (Blue/Green)->SetBinError(26,0.002422187); High Gain B (Blue/Green)->SetBinError(27,0.002827309); High Gain B (Blue/Green)->SetBinError(28,0.003131871); High Gain B (Blue/Green)->SetBinError(29,0.003631075); High Gain B (Blue/Green)->SetBinError(30,0.003531284); High Gain B (Blue/Green)->SetBinError(31,0.004109757); High Gain B (Blue/Green)->SetBinError(32,0.004702655); High Gain B (Blue/Green)->SetBinError(33,0.004924238); High Gain B (Blue/Green)->SetBinError(34,0.005328096); High Gain B (Blue/Green)->SetBinError(35,0.006011793); High Gain B (Blue/Green)->SetBinError(36,0.006035036); High Gain B (Blue/Green)->SetBinError(37,0.006839141); High Gain B (Blue/Green)->SetBinError(38,0.007378734); High Gain B (Blue/Green)->SetBinError(39,0.008942848); High Gain B (Blue/Green)->SetBinError(40,0.0100665); High Gain B (Blue/Green)->SetBinError(41,0.01287866); High Gain B (Blue/Green)->SetBinError(42,0.02139562); High Gain B (Blue/Green)->SetMinimum(0.2745132); High Gain B (Blue/Green)->SetMaximum(0.4761635); High Gain B (Blue/Green)->SetEntries(37); ptstats = new TPaveStats(0.4396552,0.7721519,0.6681034,0.9367089,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); text = ptstats->AddText("High Gain B (Blue/Green)"); text->SetTextSize(0.02523207); text = ptstats->AddText("Entries = 37 "); text = ptstats->AddText("Mean = 22.91"); text = ptstats->AddText("RMS = 10.84"); text = ptstats->AddText("p0 = 2.011 #pm 0.014 "); text = ptstats->AddText("p1 = 0.314 #pm 0.001 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); High Gain B (Blue/Green)->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(High Gain B (Blue/Green)); TF1 *PrevFitTMP = new TF1("PrevFitTMP","sqrt(sq([0]/x)+sq([1]))",10,40); PrevFitTMP->SetFillColor(19); PrevFitTMP->SetFillStyle(0); PrevFitTMP->SetMarkerStyle(20); PrevFitTMP->SetMarkerSize(1.2); PrevFitTMP->SetLineColor(3); PrevFitTMP->SetLineWidth(3); PrevFitTMP->SetChisquare(52.87948); PrevFitTMP->SetNDF(28); PrevFitTMP->GetXaxis()->SetLabelFont(42); PrevFitTMP->GetXaxis()->SetLabelSize(0.05); PrevFitTMP->GetXaxis()->SetTitleSize(0.05); PrevFitTMP->GetXaxis()->SetTitleFont(42); PrevFitTMP->GetYaxis()->SetLabelFont(42); PrevFitTMP->GetYaxis()->SetLabelSize(0.05); PrevFitTMP->GetYaxis()->SetTitleSize(0.05); PrevFitTMP->GetYaxis()->SetTitleFont(42); PrevFitTMP->SetParameter(0,2.011278); PrevFitTMP->SetParError(0,0.01440129); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.3140022); PrevFitTMP->SetParError(1,0.0005550742); PrevFitTMP->SetParLimits(1,0,0); High Gain B (Blue/Green)->GetListOfFunctions()->Add(PrevFitTMP); High Gain B (Blue/Green)->SetLineColor(4); High Gain B (Blue/Green)->SetLineWidth(2); High Gain B (Blue/Green)->SetMarkerColor(4); High Gain B (Blue/Green)->SetMarkerStyle(20); High Gain B (Blue/Green)->SetMarkerSize(1.2); High Gain B (Blue/Green)->GetXaxis()->SetTitle("Cell Energy [GeV]"); High Gain B (Blue/Green)->GetXaxis()->SetRange(5,47); High Gain B (Blue/Green)->GetXaxis()->SetLabelFont(42); High Gain B (Blue/Green)->GetXaxis()->SetLabelSize(0.05); High Gain B (Blue/Green)->GetXaxis()->SetTitleSize(0.05); High Gain B (Blue/Green)->GetXaxis()->SetTitleFont(42); High Gain B (Blue/Green)->GetYaxis()->SetTitle("Timing Resolution [ns]"); High Gain B (Blue/Green)->GetYaxis()->SetRange(1,1); High Gain B (Blue/Green)->GetYaxis()->SetLabelFont(42); High Gain B (Blue/Green)->GetYaxis()->SetLabelSize(0.05); High Gain B (Blue/Green)->GetYaxis()->SetTitleSize(0.05); High Gain B (Blue/Green)->GetYaxis()->SetTitleFont(42); High Gain B (Blue/Green)->GetZaxis()->SetLabelFont(42); High Gain B (Blue/Green)->GetZaxis()->SetLabelSize(0.05); High Gain B (Blue/Green)->GetZaxis()->SetTitleSize(0.05); High Gain B (Blue/Green)->GetZaxis()->SetTitleFont(42); High Gain B (Blue/Green)->Draw("sames"); TH1D *High Gain C (Magenta/LightBlue) = new TH1D("High Gain C (Magenta/LightBlue)","HIGH gain, All EMB",50,0,50); High Gain C (Magenta/LightBlue)->SetBinContent(6,0.3786547); High Gain C (Magenta/LightBlue)->SetBinContent(7,0.375825); High Gain C (Magenta/LightBlue)->SetBinContent(8,0.3671934); High Gain C (Magenta/LightBlue)->SetBinContent(9,0.3582861); High Gain C (Magenta/LightBlue)->SetBinContent(10,0.3534693); High Gain C (Magenta/LightBlue)->SetBinContent(11,0.3503501); High Gain C (Magenta/LightBlue)->SetBinContent(12,0.3483449); High Gain C (Magenta/LightBlue)->SetBinContent(13,0.3460398); High Gain C (Magenta/LightBlue)->SetBinContent(14,0.3418797); High Gain C (Magenta/LightBlue)->SetBinContent(15,0.339465); High Gain C (Magenta/LightBlue)->SetBinContent(16,0.3342749); High Gain C (Magenta/LightBlue)->SetBinContent(17,0.3304786); High Gain C (Magenta/LightBlue)->SetBinContent(18,0.3283599); High Gain C (Magenta/LightBlue)->SetBinContent(19,0.3256497); High Gain C (Magenta/LightBlue)->SetBinContent(20,0.3233815); High Gain C (Magenta/LightBlue)->SetBinContent(21,0.318234); High Gain C (Magenta/LightBlue)->SetBinContent(22,0.3187314); High Gain C (Magenta/LightBlue)->SetBinContent(23,0.3171636); High Gain C (Magenta/LightBlue)->SetBinContent(24,0.3169265); High Gain C (Magenta/LightBlue)->SetBinContent(25,0.3148974); High Gain C (Magenta/LightBlue)->SetBinContent(26,0.3151535); High Gain C (Magenta/LightBlue)->SetBinContent(27,0.3132091); High Gain C (Magenta/LightBlue)->SetBinContent(28,0.3129238); High Gain C (Magenta/LightBlue)->SetBinContent(29,0.313861); High Gain C (Magenta/LightBlue)->SetBinContent(30,0.3147116); High Gain C (Magenta/LightBlue)->SetBinContent(31,0.314466); High Gain C (Magenta/LightBlue)->SetBinContent(32,0.3035233); High Gain C (Magenta/LightBlue)->SetBinContent(33,0.3032636); High Gain C (Magenta/LightBlue)->SetBinContent(34,0.306771); High Gain C (Magenta/LightBlue)->SetBinContent(35,0.3062644); High Gain C (Magenta/LightBlue)->SetBinContent(36,0.3036916); High Gain C (Magenta/LightBlue)->SetBinContent(37,0.3008824); High Gain C (Magenta/LightBlue)->SetBinContent(38,0.311899); High Gain C (Magenta/LightBlue)->SetBinContent(39,0.3132184); High Gain C (Magenta/LightBlue)->SetBinContent(40,0.3096626); High Gain C (Magenta/LightBlue)->SetBinContent(41,0.3168902); High Gain C (Magenta/LightBlue)->SetBinContent(42,0.3165167); High Gain C (Magenta/LightBlue)->SetBinContent(43,0.3228841); High Gain C (Magenta/LightBlue)->SetBinError(6,0.006314021); High Gain C (Magenta/LightBlue)->SetBinError(7,0.0008181992); High Gain C (Magenta/LightBlue)->SetBinError(8,0.0005164719); High Gain C (Magenta/LightBlue)->SetBinError(9,0.0004295634); High Gain C (Magenta/LightBlue)->SetBinError(10,0.0003964804); High Gain C (Magenta/LightBlue)->SetBinError(11,0.0003939602); High Gain C (Magenta/LightBlue)->SetBinError(12,0.0004266449); High Gain C (Magenta/LightBlue)->SetBinError(13,0.0004571498); High Gain C (Magenta/LightBlue)->SetBinError(14,0.0004900847); High Gain C (Magenta/LightBlue)->SetBinError(15,0.0005397553); High Gain C (Magenta/LightBlue)->SetBinError(16,0.0005697025); High Gain C (Magenta/LightBlue)->SetBinError(17,0.0006304557); High Gain C (Magenta/LightBlue)->SetBinError(18,0.0006974922); High Gain C (Magenta/LightBlue)->SetBinError(19,0.000767517); High Gain C (Magenta/LightBlue)->SetBinError(20,0.0008537243); High Gain C (Magenta/LightBlue)->SetBinError(21,0.0009390896); High Gain C (Magenta/LightBlue)->SetBinError(22,0.001082107); High Gain C (Magenta/LightBlue)->SetBinError(23,0.001219134); High Gain C (Magenta/LightBlue)->SetBinError(24,0.001363449); High Gain C (Magenta/LightBlue)->SetBinError(25,0.001548788); High Gain C (Magenta/LightBlue)->SetBinError(26,0.001752467); High Gain C (Magenta/LightBlue)->SetBinError(27,0.002029523); High Gain C (Magenta/LightBlue)->SetBinError(28,0.00224176); High Gain C (Magenta/LightBlue)->SetBinError(29,0.002413737); High Gain C (Magenta/LightBlue)->SetBinError(30,0.00264332); High Gain C (Magenta/LightBlue)->SetBinError(31,0.002810287); High Gain C (Magenta/LightBlue)->SetBinError(32,0.002929913); High Gain C (Magenta/LightBlue)->SetBinError(33,0.003103048); High Gain C (Magenta/LightBlue)->SetBinError(34,0.003360599); High Gain C (Magenta/LightBlue)->SetBinError(35,0.003779157); High Gain C (Magenta/LightBlue)->SetBinError(36,0.003751833); High Gain C (Magenta/LightBlue)->SetBinError(37,0.00401451); High Gain C (Magenta/LightBlue)->SetBinError(38,0.004459634); High Gain C (Magenta/LightBlue)->SetBinError(39,0.005231004); High Gain C (Magenta/LightBlue)->SetBinError(40,0.005607893); High Gain C (Magenta/LightBlue)->SetBinError(41,0.007692737); High Gain C (Magenta/LightBlue)->SetBinError(42,0.009839586); High Gain C (Magenta/LightBlue)->SetBinError(43,0.01615124); High Gain C (Magenta/LightBlue)->SetMinimum(0.2745132); High Gain C (Magenta/LightBlue)->SetMaximum(0.4761635); High Gain C (Magenta/LightBlue)->SetEntries(38); ptstats = new TPaveStats(0.670977,0.7742616,0.8793103,0.9367089,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); text = ptstats->AddText("High Gain C (Magenta/LightBlue)"); text->SetTextSize(0.02490858); text = ptstats->AddText("Entries = 38 "); text = ptstats->AddText("Mean = 23.42"); text = ptstats->AddText("RMS = 11.1"); text = ptstats->AddText("p0 = 1.97 #pm 0.02 "); text = ptstats->AddText("p1 = 0.3072 #pm 0.0005 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); High Gain C (Magenta/LightBlue)->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(High Gain C (Magenta/LightBlue)); TF1 *PrevFitTMP = new TF1("PrevFitTMP","sqrt(sq([0]/x)+sq([1]))",11,39); PrevFitTMP->SetFillColor(19); PrevFitTMP->SetFillStyle(0); PrevFitTMP->SetMarkerStyle(20); PrevFitTMP->SetMarkerSize(1.2); PrevFitTMP->SetLineColor(7); PrevFitTMP->SetLineWidth(3); PrevFitTMP->SetChisquare(208.5671); PrevFitTMP->SetNDF(26); PrevFitTMP->GetXaxis()->SetLabelFont(42); PrevFitTMP->GetXaxis()->SetLabelSize(0.05); PrevFitTMP->GetXaxis()->SetTitleSize(0.05); PrevFitTMP->GetXaxis()->SetTitleFont(42); PrevFitTMP->GetYaxis()->SetLabelFont(42); PrevFitTMP->GetYaxis()->SetLabelSize(0.05); PrevFitTMP->GetYaxis()->SetTitleSize(0.05); PrevFitTMP->GetYaxis()->SetTitleFont(42); PrevFitTMP->SetParameter(0,1.96968); PrevFitTMP->SetParError(0,0.01506614); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.3072274); PrevFitTMP->SetParError(1,0.0004753309); PrevFitTMP->SetParLimits(1,0,0); High Gain C (Magenta/LightBlue)->GetListOfFunctions()->Add(PrevFitTMP); High Gain C (Magenta/LightBlue)->SetLineColor(6); High Gain C (Magenta/LightBlue)->SetLineWidth(2); High Gain C (Magenta/LightBlue)->SetMarkerColor(6); High Gain C (Magenta/LightBlue)->SetMarkerStyle(20); High Gain C (Magenta/LightBlue)->SetMarkerSize(1.2); High Gain C (Magenta/LightBlue)->GetXaxis()->SetTitle("Cell Energy [GeV]"); High Gain C (Magenta/LightBlue)->GetXaxis()->SetRange(5,47); High Gain C (Magenta/LightBlue)->GetXaxis()->SetLabelFont(42); High Gain C (Magenta/LightBlue)->GetXaxis()->SetLabelSize(0.05); High Gain C (Magenta/LightBlue)->GetXaxis()->SetTitleSize(0.05); High Gain C (Magenta/LightBlue)->GetXaxis()->SetTitleFont(42); High Gain C (Magenta/LightBlue)->GetYaxis()->SetTitle("Timing Resolution [ns]"); High Gain C (Magenta/LightBlue)->GetYaxis()->SetRange(1,1); High Gain C (Magenta/LightBlue)->GetYaxis()->SetLabelFont(42); High Gain C (Magenta/LightBlue)->GetYaxis()->SetLabelSize(0.05); High Gain C (Magenta/LightBlue)->GetYaxis()->SetTitleSize(0.05); High Gain C (Magenta/LightBlue)->GetYaxis()->SetTitleFont(42); High Gain C (Magenta/LightBlue)->GetZaxis()->SetLabelFont(42); High Gain C (Magenta/LightBlue)->GetZaxis()->SetLabelSize(0.05); High Gain C (Magenta/LightBlue)->GetZaxis()->SetTitleSize(0.05); High Gain C (Magenta/LightBlue)->GetZaxis()->SetTitleFont(42); High Gain C (Magenta/LightBlue)->Draw("sames"); TH1D *High Gain D (Brown/Purple) = new TH1D("High Gain D (Brown/Purple)","HIGH gain, All EMB",50,0,50); High Gain D (Brown/Purple)->SetBinContent(7,0.339847); High Gain D (Brown/Purple)->SetBinContent(8,0.3520066); High Gain D (Brown/Purple)->SetBinContent(9,0.3473407); High Gain D (Brown/Purple)->SetBinContent(10,0.3423349); High Gain D (Brown/Purple)->SetBinContent(11,0.3383147); High Gain D (Brown/Purple)->SetBinContent(12,0.3340756); High Gain D (Brown/Purple)->SetBinContent(13,0.3324074); High Gain D (Brown/Purple)->SetBinContent(14,0.3307887); High Gain D (Brown/Purple)->SetBinContent(15,0.3296629); High Gain D (Brown/Purple)->SetBinContent(16,0.3284454); High Gain D (Brown/Purple)->SetBinContent(17,0.3242728); High Gain D (Brown/Purple)->SetBinContent(18,0.3223043); High Gain D (Brown/Purple)->SetBinContent(19,0.3201545); High Gain D (Brown/Purple)->SetBinContent(20,0.3161036); High Gain D (Brown/Purple)->SetBinContent(21,0.3143696); High Gain D (Brown/Purple)->SetBinContent(22,0.3116091); High Gain D (Brown/Purple)->SetBinContent(23,0.30865); High Gain D (Brown/Purple)->SetBinContent(24,0.3100359); High Gain D (Brown/Purple)->SetBinContent(25,0.3066579); High Gain D (Brown/Purple)->SetBinContent(26,0.3079654); High Gain D (Brown/Purple)->SetBinContent(27,0.3067146); High Gain D (Brown/Purple)->SetBinContent(28,0.3049285); High Gain D (Brown/Purple)->SetBinContent(29,0.3007041); High Gain D (Brown/Purple)->SetBinContent(30,0.3040966); High Gain D (Brown/Purple)->SetBinContent(31,0.2987242); High Gain D (Brown/Purple)->SetBinContent(32,0.3016729); High Gain D (Brown/Purple)->SetBinContent(33,0.2966532); High Gain D (Brown/Purple)->SetBinContent(34,0.3003486); High Gain D (Brown/Purple)->SetBinContent(35,0.3002837); High Gain D (Brown/Purple)->SetBinContent(36,0.2954581); High Gain D (Brown/Purple)->SetBinContent(37,0.299501); High Gain D (Brown/Purple)->SetBinContent(38,0.3081292); High Gain D (Brown/Purple)->SetBinContent(39,0.3019075); High Gain D (Brown/Purple)->SetBinContent(40,0.3015836); High Gain D (Brown/Purple)->SetBinContent(41,0.3067374); High Gain D (Brown/Purple)->SetBinContent(42,0.3200076); High Gain D (Brown/Purple)->SetBinContent(43,0.3135533); High Gain D (Brown/Purple)->SetBinError(7,0.007260646); High Gain D (Brown/Purple)->SetBinError(8,0.0009030343); High Gain D (Brown/Purple)->SetBinError(9,0.0005357886); High Gain D (Brown/Purple)->SetBinError(10,0.0004476948); High Gain D (Brown/Purple)->SetBinError(11,0.0003935859); High Gain D (Brown/Purple)->SetBinError(12,0.0003756259); High Gain D (Brown/Purple)->SetBinError(13,0.0003829381); High Gain D (Brown/Purple)->SetBinError(14,0.0004106225); High Gain D (Brown/Purple)->SetBinError(15,0.0004565); High Gain D (Brown/Purple)->SetBinError(16,0.0004916635); High Gain D (Brown/Purple)->SetBinError(17,0.0005279884); High Gain D (Brown/Purple)->SetBinError(18,0.0005760915); High Gain D (Brown/Purple)->SetBinError(19,0.0006160295); High Gain D (Brown/Purple)->SetBinError(20,0.0006794744); High Gain D (Brown/Purple)->SetBinError(21,0.0007342294); High Gain D (Brown/Purple)->SetBinError(22,0.0007836505); High Gain D (Brown/Purple)->SetBinError(23,0.0008573848); High Gain D (Brown/Purple)->SetBinError(24,0.0009394377); High Gain D (Brown/Purple)->SetBinError(25,0.00107974); High Gain D (Brown/Purple)->SetBinError(26,0.001246038); High Gain D (Brown/Purple)->SetBinError(27,0.001424319); High Gain D (Brown/Purple)->SetBinError(28,0.00159047); High Gain D (Brown/Purple)->SetBinError(29,0.00178885); High Gain D (Brown/Purple)->SetBinError(30,0.001979407); High Gain D (Brown/Purple)->SetBinError(31,0.002083715); High Gain D (Brown/Purple)->SetBinError(32,0.002301144); High Gain D (Brown/Purple)->SetBinError(33,0.002331287); High Gain D (Brown/Purple)->SetBinError(34,0.002463513); High Gain D (Brown/Purple)->SetBinError(35,0.002685824); High Gain D (Brown/Purple)->SetBinError(36,0.002585025); High Gain D (Brown/Purple)->SetBinError(37,0.003012824); High Gain D (Brown/Purple)->SetBinError(38,0.003377508); High Gain D (Brown/Purple)->SetBinError(39,0.003619686); High Gain D (Brown/Purple)->SetBinError(40,0.003999995); High Gain D (Brown/Purple)->SetBinError(41,0.004655464); High Gain D (Brown/Purple)->SetBinError(42,0.00633838); High Gain D (Brown/Purple)->SetBinError(43,0.01170197); High Gain D (Brown/Purple)->SetMinimum(0.2745132); High Gain D (Brown/Purple)->SetMaximum(0.4761635); High Gain D (Brown/Purple)->SetEntries(37); ptstats = new TPaveStats(0.2945402,0.5843882,0.5215517,0.7637131,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); text = ptstats->AddText("High Gain D (Brown/Purple)"); text->SetTextSize(0.02749648); text = ptstats->AddText("Entries = 37 "); text = ptstats->AddText("Mean = 24.06"); text = ptstats->AddText("RMS = 10.78"); text = ptstats->AddText("p0 = 2.381 #pm 0.035 "); text = ptstats->AddText("p1 = 0.2916 #pm 0.0007 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); High Gain D (Brown/Purple)->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(High Gain D (Brown/Purple)); TF1 *PrevFitTMP = new TF1("PrevFitTMP","sqrt(sq([0]/x)+sq([1]))",16,37); PrevFitTMP->SetFillColor(19); PrevFitTMP->SetFillStyle(0); PrevFitTMP->SetMarkerStyle(20); PrevFitTMP->SetMarkerSize(1.2); PrevFitTMP->SetLineColor(51); PrevFitTMP->SetLineWidth(3); PrevFitTMP->SetChisquare(30.38136); PrevFitTMP->SetNDF(19); PrevFitTMP->GetXaxis()->SetLabelFont(42); PrevFitTMP->GetXaxis()->SetLabelSize(0.05); PrevFitTMP->GetXaxis()->SetTitleSize(0.05); PrevFitTMP->GetXaxis()->SetTitleFont(42); PrevFitTMP->GetYaxis()->SetLabelFont(42); PrevFitTMP->GetYaxis()->SetLabelSize(0.05); PrevFitTMP->GetYaxis()->SetTitleSize(0.05); PrevFitTMP->GetYaxis()->SetTitleFont(42); PrevFitTMP->SetParameter(0,2.380651); PrevFitTMP->SetParError(0,0.03456251); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.2916377); PrevFitTMP->SetParError(1,0.0007414465); PrevFitTMP->SetParLimits(1,0,0); High Gain D (Brown/Purple)->GetListOfFunctions()->Add(PrevFitTMP); High Gain D (Brown/Purple)->SetLineColor(50); High Gain D (Brown/Purple)->SetLineWidth(2); High Gain D (Brown/Purple)->SetMarkerColor(50); High Gain D (Brown/Purple)->SetMarkerStyle(20); High Gain D (Brown/Purple)->SetMarkerSize(1.2); High Gain D (Brown/Purple)->GetXaxis()->SetTitle("Cell Energy [GeV]"); High Gain D (Brown/Purple)->GetXaxis()->SetRange(5,47); High Gain D (Brown/Purple)->GetXaxis()->SetLabelFont(42); High Gain D (Brown/Purple)->GetXaxis()->SetLabelSize(0.05); High Gain D (Brown/Purple)->GetXaxis()->SetTitleSize(0.05); High Gain D (Brown/Purple)->GetXaxis()->SetTitleFont(42); High Gain D (Brown/Purple)->GetYaxis()->SetTitle("Timing Resolution [ns]"); High Gain D (Brown/Purple)->GetYaxis()->SetRange(1,1); High Gain D (Brown/Purple)->GetYaxis()->SetLabelFont(42); High Gain D (Brown/Purple)->GetYaxis()->SetLabelSize(0.05); High Gain D (Brown/Purple)->GetYaxis()->SetTitleSize(0.05); High Gain D (Brown/Purple)->GetYaxis()->SetTitleFont(42); High Gain D (Brown/Purple)->GetZaxis()->SetLabelFont(42); High Gain D (Brown/Purple)->GetZaxis()->SetLabelSize(0.05); High Gain D (Brown/Purple)->GetZaxis()->SetTitleSize(0.05); High Gain D (Brown/Purple)->GetZaxis()->SetTitleFont(42); High Gain D (Brown/Purple)->Draw("sames"); TH1D *High Gain E (Yellow/Beige) = new TH1D("High Gain E (Yellow/Beige)","HIGH gain, All EMB",50,0,50); High Gain E (Yellow/Beige)->SetBinContent(9,0.3345); High Gain E (Yellow/Beige)->SetBinContent(10,0.3281524); High Gain E (Yellow/Beige)->SetBinContent(11,0.3243468); High Gain E (Yellow/Beige)->SetBinContent(12,0.3199891); High Gain E (Yellow/Beige)->SetBinContent(13,0.3161314); High Gain E (Yellow/Beige)->SetBinContent(14,0.3135304); High Gain E (Yellow/Beige)->SetBinContent(15,0.311339); High Gain E (Yellow/Beige)->SetBinContent(16,0.3100638); High Gain E (Yellow/Beige)->SetBinContent(17,0.3077503); High Gain E (Yellow/Beige)->SetBinContent(18,0.3057706); High Gain E (Yellow/Beige)->SetBinContent(19,0.3047908); High Gain E (Yellow/Beige)->SetBinContent(20,0.3023147); High Gain E (Yellow/Beige)->SetBinContent(21,0.3026109); High Gain E (Yellow/Beige)->SetBinContent(22,0.3003178); High Gain E (Yellow/Beige)->SetBinContent(23,0.2994172); High Gain E (Yellow/Beige)->SetBinContent(24,0.2998727); High Gain E (Yellow/Beige)->SetBinContent(25,0.2977291); High Gain E (Yellow/Beige)->SetBinContent(26,0.2976053); High Gain E (Yellow/Beige)->SetBinContent(27,0.2952809); High Gain E (Yellow/Beige)->SetBinContent(28,0.293926); High Gain E (Yellow/Beige)->SetBinContent(29,0.2912493); High Gain E (Yellow/Beige)->SetBinContent(30,0.2924031); High Gain E (Yellow/Beige)->SetBinContent(31,0.2897733); High Gain E (Yellow/Beige)->SetBinContent(32,0.2912276); High Gain E (Yellow/Beige)->SetBinContent(33,0.2898714); High Gain E (Yellow/Beige)->SetBinContent(34,0.2886532); High Gain E (Yellow/Beige)->SetBinContent(35,0.2889173); High Gain E (Yellow/Beige)->SetBinContent(36,0.2856974); High Gain E (Yellow/Beige)->SetBinContent(37,0.2907801); High Gain E (Yellow/Beige)->SetBinContent(38,0.2850566); High Gain E (Yellow/Beige)->SetBinContent(39,0.2852239); High Gain E (Yellow/Beige)->SetBinContent(40,0.2895037); High Gain E (Yellow/Beige)->SetBinContent(41,0.2971914); High Gain E (Yellow/Beige)->SetBinContent(42,0.3002145); High Gain E (Yellow/Beige)->SetBinContent(43,0.3073014); High Gain E (Yellow/Beige)->SetBinContent(44,0.3266966); High Gain E (Yellow/Beige)->SetBinContent(45,0.295606); High Gain E (Yellow/Beige)->SetBinError(9,0.001520688); High Gain E (Yellow/Beige)->SetBinError(10,0.0007258811); High Gain E (Yellow/Beige)->SetBinError(11,0.0005276597); High Gain E (Yellow/Beige)->SetBinError(12,0.0004432232); High Gain E (Yellow/Beige)->SetBinError(13,0.0003816553); High Gain E (Yellow/Beige)->SetBinError(14,0.0003550737); High Gain E (Yellow/Beige)->SetBinError(15,0.0003487048); High Gain E (Yellow/Beige)->SetBinError(16,0.0003500516); High Gain E (Yellow/Beige)->SetBinError(17,0.0003652106); High Gain E (Yellow/Beige)->SetBinError(18,0.0003834376); High Gain E (Yellow/Beige)->SetBinError(19,0.0004098827); High Gain E (Yellow/Beige)->SetBinError(20,0.0004348037); High Gain E (Yellow/Beige)->SetBinError(21,0.0004704772); High Gain E (Yellow/Beige)->SetBinError(22,0.000501852); High Gain E (Yellow/Beige)->SetBinError(23,0.0005354698); High Gain E (Yellow/Beige)->SetBinError(24,0.0005870838); High Gain E (Yellow/Beige)->SetBinError(25,0.0006526775); High Gain E (Yellow/Beige)->SetBinError(26,0.0007642213); High Gain E (Yellow/Beige)->SetBinError(27,0.0009118036); High Gain E (Yellow/Beige)->SetBinError(28,0.001058498); High Gain E (Yellow/Beige)->SetBinError(29,0.001137444); High Gain E (Yellow/Beige)->SetBinError(30,0.001228116); High Gain E (Yellow/Beige)->SetBinError(31,0.001293729); High Gain E (Yellow/Beige)->SetBinError(32,0.001394259); High Gain E (Yellow/Beige)->SetBinError(33,0.001463571); High Gain E (Yellow/Beige)->SetBinError(34,0.001577453); High Gain E (Yellow/Beige)->SetBinError(35,0.00170331); High Gain E (Yellow/Beige)->SetBinError(36,0.001825042); High Gain E (Yellow/Beige)->SetBinError(37,0.001885867); High Gain E (Yellow/Beige)->SetBinError(38,0.001935499); High Gain E (Yellow/Beige)->SetBinError(39,0.002147327); High Gain E (Yellow/Beige)->SetBinError(40,0.00223551); High Gain E (Yellow/Beige)->SetBinError(41,0.00265408); High Gain E (Yellow/Beige)->SetBinError(42,0.003329566); High Gain E (Yellow/Beige)->SetBinError(43,0.005123656); High Gain E (Yellow/Beige)->SetBinError(44,0.01086425); High Gain E (Yellow/Beige)->SetBinError(45,0.01411993); High Gain E (Yellow/Beige)->SetMinimum(0.2745132); High Gain E (Yellow/Beige)->SetMaximum(0.4761635); High Gain E (Yellow/Beige)->SetEntries(37); ptstats = new TPaveStats(0.533046,0.5864979,0.7844828,0.7594937,"brNDC"); ptstats->SetName("stats"); ptstats->SetBorderSize(1); ptstats->SetFillColor(0); ptstats->SetFillStyle(1); ptstats->SetTextAlign(12); text = ptstats->AddText("High Gain E (Yellow/Beige)"); text->SetTextSize(0.02652602); text = ptstats->AddText("Entries = 37 "); text = ptstats->AddText("Mean = 26.21"); text = ptstats->AddText("RMS = 10.8"); text = ptstats->AddText("p0 = 2.499 #pm 0.073 "); text = ptstats->AddText("p1 = 0.2794 #pm 0.0010 "); ptstats->SetOptStat(1111); ptstats->SetOptFit(11); ptstats->Draw(); High Gain E (Yellow/Beige)->GetListOfFunctions()->Add(ptstats); ptstats->SetParent(High Gain E (Yellow/Beige)); TF1 *PrevFitTMP = new TF1("PrevFitTMP","sqrt(sq([0]/x)+sq([1]))",22,39); PrevFitTMP->SetFillColor(19); PrevFitTMP->SetFillStyle(0); PrevFitTMP->SetMarkerStyle(20); PrevFitTMP->SetMarkerSize(1.2); PrevFitTMP->SetLineColor(42); PrevFitTMP->SetLineWidth(3); PrevFitTMP->SetChisquare(22.27495); PrevFitTMP->SetNDF(15); PrevFitTMP->GetXaxis()->SetLabelFont(42); PrevFitTMP->GetXaxis()->SetLabelSize(0.05); PrevFitTMP->GetXaxis()->SetTitleSize(0.05); PrevFitTMP->GetXaxis()->SetTitleFont(42); PrevFitTMP->GetYaxis()->SetLabelFont(42); PrevFitTMP->GetYaxis()->SetLabelSize(0.05); PrevFitTMP->GetYaxis()->SetTitleSize(0.05); PrevFitTMP->GetYaxis()->SetTitleFont(42); PrevFitTMP->SetParameter(0,2.49897); PrevFitTMP->SetParError(0,0.07290796); PrevFitTMP->SetParLimits(0,0,0); PrevFitTMP->SetParameter(1,0.2793975); PrevFitTMP->SetParError(1,0.001013683); PrevFitTMP->SetParLimits(1,0,0); High Gain E (Yellow/Beige)->GetListOfFunctions()->Add(PrevFitTMP); High Gain E (Yellow/Beige)->SetLineColor(5); High Gain E (Yellow/Beige)->SetLineWidth(2); High Gain E (Yellow/Beige)->SetMarkerColor(5); High Gain E (Yellow/Beige)->SetMarkerStyle(20); High Gain E (Yellow/Beige)->SetMarkerSize(1.2); High Gain E (Yellow/Beige)->GetXaxis()->SetTitle("Cell Energy [GeV]"); High Gain E (Yellow/Beige)->GetXaxis()->SetRange(5,47); High Gain E (Yellow/Beige)->GetXaxis()->SetLabelFont(42); High Gain E (Yellow/Beige)->GetXaxis()->SetLabelSize(0.05); High Gain E (Yellow/Beige)->GetXaxis()->SetTitleSize(0.05); High Gain E (Yellow/Beige)->GetXaxis()->SetTitleFont(42); High Gain E (Yellow/Beige)->GetYaxis()->SetTitle("Timing Resolution [ns]"); High Gain E (Yellow/Beige)->GetYaxis()->SetRange(1,1); High Gain E (Yellow/Beige)->GetYaxis()->SetLabelFont(42); High Gain E (Yellow/Beige)->GetYaxis()->SetLabelSize(0.05); High Gain E (Yellow/Beige)->GetYaxis()->SetTitleSize(0.05); High Gain E (Yellow/Beige)->GetYaxis()->SetTitleFont(42); High Gain E (Yellow/Beige)->GetZaxis()->SetLabelFont(42); High Gain E (Yellow/Beige)->GetZaxis()->SetLabelSize(0.05); High Gain E (Yellow/Beige)->GetZaxis()->SetTitleSize(0.05); High Gain E (Yellow/Beige)->GetZaxis()->SetTitleFont(42); High Gain E (Yellow/Beige)->Draw("sames"); c1->Modified(); c1->cd(); c1->SetSelected(c1); }