{ //=========Macro generated from canvas: eResCnv/E res. fit process //========= (Mon Aug 17 13:57:00 2009) by ROOT version5.22/00 TCanvas *eResCnv = new TCanvas("eResCnv", "E res. fit process",378,88,800,700); gStyle->SetOptFit(1); gStyle->SetOptStat(0); gROOT->SetEditHistograms(); eResCnv->ToggleEventStatus(); eResCnv->Range(0,0,1,1); eResCnv->SetFillColor(0); eResCnv->SetBorderMode(0); eResCnv->SetBorderSize(2); eResCnv->SetFrameFillColor(19); // ------------>Primitives in pad: eResCnv_1 TPad *eResCnv_1 = new TPad("eResCnv_1", "eResCnv_1",0.01,0.01,0.99,0.99); eResCnv_1->Draw(); eResCnv_1->cd(); eResCnv_1->Range(0.8236771,-1194.384,1.130717,10402.44); eResCnv_1->SetFillColor(0); eResCnv_1->SetBorderMode(0); eResCnv_1->SetBorderSize(2); eResCnv_1->SetFrameFillColor(19); eResCnv_1->SetFrameBorderMode(0); TH1 *frame_147510984 = new TH1D("frame_147510984","tagE> 3.8&& tagE<5.5&&meanXCut&&meanYCut&& sliceVar>5.000 && sliceVar<5.200",300,0.7,1.3); frame_147510984->SetMaximum(9265.133); frame_147510984->SetDirectory(0); frame_147510984->SetStats(0); frame_147510984->GetXaxis()->SetTitle("E_{reconstructed}/E_{incident}"); frame_147510984->GetXaxis()->SetRange(78,200); frame_147510984->GetXaxis()->SetLabelSize(0.03); frame_147510984->GetYaxis()->SetTitle("Events"); frame_147510984->GetYaxis()->CenterTitle(true); frame_147510984->GetYaxis()->SetLabelSize(0.03); frame_147510984->GetYaxis()->SetTitleOffset(1.2); frame_147510984->Draw(""); TGraphAsymmErrors *grae = new TGraphAsymmErrors(100); grae->SetName("h_data"); grae->SetTitle("Histogram of data_plot__x"); grae->SetFillColor(1); grae->SetMarkerStyle(8); grae->SetPoint(0,0.703,26); grae->SetPointError(0,0.003,0.003,5.066015,6.164324); grae->SetPoint(1,0.709,17); grae->SetPointError(1,0.003,0.003,4.082184,5.203719); grae->SetPoint(2,0.715,26); grae->SetPointError(2,0.003,0.003,5.066015,6.164324); grae->SetPoint(3,0.721,27); grae->SetPointError(3,0.003,0.003,5.163771,6.260244); grae->SetPoint(4,0.727,30); grae->SetPointError(4,0.003,0.003,5.446522,6.538046); grae->SetPoint(5,0.733,35); grae->SetPointError(5,0.003,0.003,5.887675,6.97241); grae->SetPoint(6,0.739,21); grae->SetPointError(6,0.003,0.003,4.545807,5.655182); grae->SetPoint(7,0.745,30); grae->SetPointError(7,0.003,0.003,5.446522,6.538046); grae->SetPoint(8,0.751,25); grae->SetPointError(8,0.003,0.003,4.966335,6.066589); grae->SetPoint(9,0.757,24); grae->SetPointError(9,0.003,0.003,4.864612,5.966932); grae->SetPoint(10,0.763,42); grae->SetPointError(10,0.003,0.003,6.454831,7.53218); grae->SetPoint(11,0.769,31); grae->SetPointError(11,0.003,0.003,5.537565,6.627601); grae->SetPoint(12,0.775,35); grae->SetPointError(12,0.003,0.003,5.887675,6.97241); grae->SetPoint(13,0.781,28); grae->SetPointError(13,0.003,0.003,5.259711,6.354446); grae->SetPoint(14,0.787,34); grae->SetPointError(14,0.003,0.003,5.802128,6.888101); grae->SetPoint(15,0.793,41); grae->SetPointError(15,0.003,0.003,6.376898,7.455185); grae->SetPoint(16,0.799,41); grae->SetPointError(16,0.003,0.003,6.376898,7.455185); grae->SetPoint(17,0.805,46); grae->SetPointError(17,0.003,0.003,6.757581,7.831489); grae->SetPoint(18,0.811,44); grae->SetPointError(18,0.003,0.003,6.60794,7.68351); grae->SetPoint(19,0.817,52); grae->SetPointError(19,0.003,0.003,7.187836,8.257346); grae->SetPoint(20,0.823,54); grae->SetPointError(20,0.003,0.003,7.32564,8.39385); grae->SetPoint(21,0.829,45); grae->SetPointError(21,0.003,0.003,6.683179,7.757905); grae->SetPoint(22,0.835,46); grae->SetPointError(22,0.003,0.003,6.757581,7.831489); grae->SetPoint(23,0.841,62); grae->SetPointError(23,0.003,0.003,7.852713,8.916365); grae->SetPoint(24,0.847,66); grae->SetPointError(24,0.003,0.003,8.103403,9.165094); grae->SetPoint(25,0.853,69); grae->SetPointError(25,0.003,0.003,8.286444,9.346779); grae->SetPoint(26,0.859,76); grae->SetPointError(26,0.003,0.003,8.698576,9.756061); grae->SetPoint(27,0.865,77); grae->SetPointError(27,0.003,0.003,8.755868,9.812979); grae->SetPoint(28,0.871,79); grae->SetPointError(28,0.003,0.003,8.869343,9.925725); grae->SetPoint(29,0.877,90); grae->SetPointError(29,0.003,0.003,9.469177,10.522); grae->SetPoint(30,0.883,100); grae->SetPointError(30,0.003,0.003,9.983255,11.03336); grae->SetPoint(31,0.889,115); grae->SetPointError(31,0.003,0.003,10.23546,11.23546); grae->SetPoint(32,0.895,128); grae->SetPointError(32,0.003,0.003,10.82475,11.82475); grae->SetPoint(33,0.901,142); grae->SetPointError(33,0.003,0.003,11.42686,12.42686); grae->SetPoint(34,0.907,154); grae->SetPointError(34,0.003,0.003,11.91974,12.91974); grae->SetPoint(35,0.913,192); grae->SetPointError(35,0.003,0.003,13.36542,14.36542); grae->SetPoint(36,0.919,212); grae->SetPointError(36,0.003,0.003,14.0688,15.0688); grae->SetPoint(37,0.925,264); grae->SetPointError(37,0.003,0.003,15.75577,16.75577); grae->SetPoint(38,0.931,340); grae->SetPointError(38,0.003,0.003,17.94587,18.94587); grae->SetPoint(39,0.937,438); grae->SetPointError(39,0.003,0.003,20.43442,21.43442); grae->SetPoint(40,0.943,525); grae->SetPointError(40,0.003,0.003,22.41833,23.41833); grae->SetPoint(41,0.949,665); grae->SetPointError(41,0.003,0.003,25.29244,26.29244); grae->SetPoint(42,0.955,894); grae->SetPointError(42,0.003,0.003,29.40401,30.40401); grae->SetPoint(43,0.961,1209); grae->SetPointError(43,0.003,0.003,34.27427,35.27427); grae->SetPoint(44,0.967,1735); grae->SetPointError(44,0.003,0.003,41.15633,42.15633); grae->SetPoint(45,0.973,2535); grae->SetPointError(45,0.003,0.003,49.85127,50.85127); grae->SetPoint(46,0.979,3874); grae->SetPointError(46,0.003,0.003,61.74347,62.74347); grae->SetPoint(47,0.985,5426); grae->SetPointError(47,0.003,0.003,73.16308,74.16308); grae->SetPoint(48,0.991,7403); grae->SetPointError(48,0.003,0.003,85.54214,86.54214); grae->SetPoint(49,0.9964832,8485.111); grae->SetPointError(49,0.003,0.003,92.61418,93.61418); grae->SetPoint(50,1.003568,8256.812); grae->SetPointError(50,0.003,0.003,92.93581,93.93581); grae->SetPoint(51,1.009,7580); grae->SetPointError(51,0.003,0.003,86.56463,87.56463); grae->SetPoint(52,1.015,5491); grae->SetPointError(52,0.003,0.003,73.60297,74.60297); grae->SetPoint(53,1.021,3439); grae->SetPointError(53,0.003,0.003,58.14512,59.14512); grae->SetPoint(54,1.027,1911); grae->SetPointError(54,0.003,0.003,43.21785,44.21785); grae->SetPoint(55,1.033,897); grae->SetPointError(55,0.003,0.003,29.45413,30.45413); grae->SetPoint(56,1.039,412); grae->SetPointError(56,0.003,0.003,19.80394,20.80394); grae->SetPoint(57,1.045,200); grae->SetPointError(57,0.003,0.003,13.65097,14.65097); grae->SetPoint(58,1.051,84); grae->SetPointError(58,0.003,0.003,9.146873,10.20155); grae->SetPoint(59,1.057,32); grae->SetPointError(59,0.003,0.003,5.627135,6.715753); grae->SetPoint(60,1.063,27); grae->SetPointError(60,0.003,0.003,5.163771,6.260244); grae->SetPoint(61,1.069,15); grae->SetPointError(61,0.003,0.003,3.82938,4.958738); grae->SetPoint(62,1.075,10); grae->SetPointError(62,0.003,0.003,3.108694,4.26695); grae->SetPoint(63,1.081,9); grae->SetPointError(63,0.003,0.003,2.943461,4.110204); grae->SetPoint(64,1.087,8); grae->SetPointError(64,0.003,0.003,2.768386,3.945142); grae->SetPoint(65,1.093,12); grae->SetPointError(65,0.003,0.003,3.415266,4.559819); grae->SetPoint(66,1.099,12); grae->SetPointError(66,0.003,0.003,3.415266,4.559819); grae->SetPoint(67,1.105,11); grae->SetPointError(67,0.003,0.003,3.265579,4.416521); grae->SetPoint(68,1.111,4); grae->SetPointError(68,0.003,0.003,1.914339,3.162753); grae->SetPoint(69,1.117,10); grae->SetPointError(69,0.003,0.003,3.108694,4.26695); grae->SetPoint(70,1.123,6); grae->SetPointError(70,0.003,0.003,2.379931,3.583642); grae->SetPoint(71,1.129,3); grae->SetPointError(71,0.003,0.003,1.632705,2.918186); grae->SetPoint(72,1.135,10); grae->SetPointError(72,0.003,0.003,3.108694,4.26695); grae->SetPoint(73,1.141,3); grae->SetPointError(73,0.003,0.003,1.632705,2.918186); grae->SetPoint(74,1.147,2); grae->SetPointError(74,0.003,0.003,1.291815,2.63786); grae->SetPoint(75,1.153,4); grae->SetPointError(75,0.003,0.003,1.914339,3.162753); grae->SetPoint(76,1.159,2); grae->SetPointError(76,0.003,0.003,1.291815,2.63786); grae->SetPoint(77,1.165,5); grae->SetPointError(77,0.003,0.003,2.159691,3.382473); grae->SetPoint(78,1.171,1); grae->SetPointError(78,0.003,0.003,0.8272462,2.299527); grae->SetPoint(79,1.177,4); grae->SetPointError(79,0.003,0.003,1.914339,3.162753); grae->SetPoint(80,1.183,1); grae->SetPointError(80,0.003,0.003,0.8272462,2.299527); grae->SetPoint(81,1.189,4); grae->SetPointError(81,0.003,0.003,1.914339,3.162753); grae->SetPoint(82,1.195,3); grae->SetPointError(82,0.003,0.003,1.632705,2.918186); grae->SetPoint(83,1.201,2); grae->SetPointError(83,0.003,0.003,1.291815,2.63786); grae->SetPoint(84,1.207,3); grae->SetPointError(84,0.003,0.003,1.632705,2.918186); grae->SetPoint(85,1.213,3); grae->SetPointError(85,0.003,0.003,1.632705,2.918186); grae->SetPoint(86,1.219,2); grae->SetPointError(86,0.003,0.003,1.291815,2.63786); grae->SetPoint(87,1.225,1); grae->SetPointError(87,0.003,0.003,0.8272462,2.299527); grae->SetPoint(88,1.231,0); grae->SetPointError(88,0.003,0.003,0,1.147874); grae->SetPoint(89,1.237,2); grae->SetPointError(89,0.003,0.003,1.291815,2.63786); grae->SetPoint(90,1.243,2); grae->SetPointError(90,0.003,0.003,1.291815,2.63786); grae->SetPoint(91,1.249,0); grae->SetPointError(91,0.003,0.003,0,1.147874); grae->SetPoint(92,1.255,2); grae->SetPointError(92,0.003,0.003,1.291815,2.63786); grae->SetPoint(93,1.261,2); grae->SetPointError(93,0.003,0.003,1.291815,2.63786); grae->SetPoint(94,1.267,0); grae->SetPointError(94,0.003,0.003,0,1.147874); grae->SetPoint(95,1.273,1); grae->SetPointError(95,0.003,0.003,0.8272462,2.299527); grae->SetPoint(96,1.279,4); grae->SetPointError(96,0.003,0.003,1.914339,3.162753); grae->SetPoint(97,1.285,1); grae->SetPointError(97,0.003,0.003,0.8272462,2.299527); grae->SetPoint(98,1.291,0); grae->SetPointError(98,0.003,0.003,0,1.147874); grae->SetPoint(99,1.297,2); grae->SetPointError(99,0.003,0.003,1.291815,2.63786); TH1 *h_data1 = new TH1F("h_data1","Histogram of data_plot__x",100,0.64,1.36); h_data1->SetMinimum(0); h_data1->SetMaximum(9706.329); h_data1->SetDirectory(0); h_data1->SetStats(0); h_data1->GetXaxis()->SetLabelSize(0.03); h_data1->GetYaxis()->SetLabelSize(0.03); grae->SetHistogram(h_data1); grae->Draw("p"); TGraph *graph = new TGraph(302); graph->SetName("gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]"); graph->SetTitle("Projection of gauss"); graph->SetFillColor(1); Int_t ci; // for color index setting ci = TColor::GetColor("#0000ff"); graph->SetLineColor(ci); graph->SetLineWidth(3); graph->SetPoint(0,0.85,54.27423); graph->SetPoint(1,0.8508333,55.02003); graph->SetPoint(2,0.8516667,55.78008); graph->SetPoint(3,0.8525,56.55473); graph->SetPoint(4,0.8533333,57.34434); graph->SetPoint(5,0.8541667,58.14927); graph->SetPoint(6,0.855,58.96992); graph->SetPoint(7,0.8558333,59.80667); graph->SetPoint(8,0.8566667,60.65993); graph->SetPoint(9,0.8575,61.53012); graph->SetPoint(10,0.8583333,62.41768); graph->SetPoint(11,0.8591667,63.32303); graph->SetPoint(12,0.86,64.24666); graph->SetPoint(13,0.8608333,65.18902); graph->SetPoint(14,0.8616667,66.1506); graph->SetPoint(15,0.8625,67.13191); graph->SetPoint(16,0.8633333,68.13347); graph->SetPoint(17,0.8641667,69.15582); graph->SetPoint(18,0.865,70.19951); graph->SetPoint(19,0.8658333,71.2651); graph->SetPoint(20,0.8666667,72.3532); graph->SetPoint(21,0.8675,73.46441); graph->SetPoint(22,0.8683333,74.59937); graph->SetPoint(23,0.8691667,75.75872); graph->SetPoint(24,0.87,76.94314); graph->SetPoint(25,0.8708333,78.15332); graph->SetPoint(26,0.8716667,79.38999); graph->SetPoint(27,0.8725,80.65389); graph->SetPoint(28,0.8733333,81.94579); graph->SetPoint(29,0.8741667,83.26648); graph->SetPoint(30,0.875,84.6168); graph->SetPoint(31,0.8758333,85.99759); graph->SetPoint(32,0.8766667,87.40974); graph->SetPoint(33,0.8775,88.85417); graph->SetPoint(34,0.8783333,90.33181); graph->SetPoint(35,0.8791667,91.84367); graph->SetPoint(36,0.88,93.39074); graph->SetPoint(37,0.8808333,94.97409); graph->SetPoint(38,0.8816667,96.59481); graph->SetPoint(39,0.8825,98.25403); graph->SetPoint(40,0.8833333,99.95293); graph->SetPoint(41,0.8841667,101.6927); graph->SetPoint(42,0.885,103.4747); graph->SetPoint(43,0.8858333,105.3001); graph->SetPoint(44,0.8866667,107.1704); graph->SetPoint(45,0.8875,109.087); graph->SetPoint(46,0.8883333,111.0513); graph->SetPoint(47,0.8891667,113.0648); graph->SetPoint(48,0.89,115.1292); graph->SetPoint(49,0.8908333,117.246); graph->SetPoint(50,0.8916667,119.4171); graph->SetPoint(51,0.8925,121.6442); graph->SetPoint(52,0.8933333,123.9292); graph->SetPoint(53,0.8941667,126.2739); graph->SetPoint(54,0.895,128.6805); graph->SetPoint(55,0.8958333,131.1509); graph->SetPoint(56,0.8966667,133.6874); graph->SetPoint(57,0.8975,136.2923); graph->SetPoint(58,0.8983333,138.9679); graph->SetPoint(59,0.8991667,141.7167); graph->SetPoint(60,0.9,144.5413); graph->SetPoint(61,0.9008333,147.4444); graph->SetPoint(62,0.9016667,150.4287); graph->SetPoint(63,0.9025,153.4972); graph->SetPoint(64,0.9033333,156.6529); graph->SetPoint(65,0.9041667,159.8991); graph->SetPoint(66,0.905,163.2391); graph->SetPoint(67,0.9058333,166.6763); graph->SetPoint(68,0.9066667,170.2145); graph->SetPoint(69,0.9075,173.8574); graph->SetPoint(70,0.9083333,177.609); graph->SetPoint(71,0.9091667,181.4735); graph->SetPoint(72,0.91,185.4553); graph->SetPoint(73,0.9108333,189.5589); graph->SetPoint(74,0.9116667,193.7892); graph->SetPoint(75,0.9125,198.1512); graph->SetPoint(76,0.9133333,202.6501); graph->SetPoint(77,0.9141667,207.2916); graph->SetPoint(78,0.915,212.0814); graph->SetPoint(79,0.9158333,217.0256); graph->SetPoint(80,0.9166667,222.1307); graph->SetPoint(81,0.9175,227.4034); graph->SetPoint(82,0.9183333,232.8508); graph->SetPoint(83,0.9191667,238.4803); graph->SetPoint(84,0.92,244.2998); graph->SetPoint(85,0.9208333,250.3176); graph->SetPoint(86,0.9216667,256.5423); graph->SetPoint(87,0.9225,262.9832); graph->SetPoint(88,0.9233333,269.65); graph->SetPoint(89,0.9241667,276.5527); graph->SetPoint(90,0.925,283.7023); graph->SetPoint(91,0.9258333,291.11); graph->SetPoint(92,0.9266667,298.788); graph->SetPoint(93,0.9275,306.7489); graph->SetPoint(94,0.9283333,315.0061); graph->SetPoint(95,0.9291667,323.574); graph->SetPoint(96,0.93,332.4676); graph->SetPoint(97,0.9308333,341.7029); graph->SetPoint(98,0.9316667,351.2968); graph->SetPoint(99,0.9325,361.2673); graph->SetPoint(100,0.9333333,371.6334); graph->SetPoint(101,0.9341667,382.4156); graph->SetPoint(102,0.935,393.6352); graph->SetPoint(103,0.9358333,405.3152); graph->SetPoint(104,0.9366667,417.4801); graph->SetPoint(105,0.9375,430.1558); graph->SetPoint(106,0.9383333,443.3701); graph->SetPoint(107,0.9391667,457.1525); graph->SetPoint(108,0.94,471.5346); graph->SetPoint(109,0.9408333,486.55); graph->SetPoint(110,0.9416667,502.235); graph->SetPoint(111,0.9425,518.628); graph->SetPoint(112,0.9433333,535.7704); graph->SetPoint(113,0.9441667,553.7064); graph->SetPoint(114,0.945,572.4837); graph->SetPoint(115,0.9458333,592.1533); graph->SetPoint(116,0.9466667,612.7701); graph->SetPoint(117,0.9475,634.3929); graph->SetPoint(118,0.9483333,657.0856); graph->SetPoint(119,0.9491667,680.9164); graph->SetPoint(120,0.95,705.9595); graph->SetPoint(121,0.9508333,732.2945); graph->SetPoint(122,0.9516667,760.008); graph->SetPoint(123,0.9525,789.1933); graph->SetPoint(124,0.9533333,819.9518); graph->SetPoint(125,0.9541667,852.3934); graph->SetPoint(126,0.955,886.6375); graph->SetPoint(127,0.9558333,922.8139); graph->SetPoint(128,0.9566667,961.0643); graph->SetPoint(129,0.9575,1001.543); graph->SetPoint(130,0.9583333,1044.418); graph->SetPoint(131,0.9591667,1089.873); graph->SetPoint(132,0.96,1138.112); graph->SetPoint(133,0.9608333,1189.354); graph->SetPoint(134,0.9616667,1243.842); graph->SetPoint(135,0.9625,1301.845); graph->SetPoint(136,0.9633333,1363.657); graph->SetPoint(137,0.9641667,1429.602); graph->SetPoint(138,0.965,1500.042); graph->SetPoint(139,0.9658333,1575.373); graph->SetPoint(140,0.9666667,1656.039); graph->SetPoint(141,0.9675,1742.533); graph->SetPoint(142,0.9683333,1835.401); graph->SetPoint(143,0.9691667,1935.256); graph->SetPoint(144,0.97,2042.785); graph->SetPoint(145,0.9708333,2158.757); graph->SetPoint(146,0.9716667,2284.036); graph->SetPoint(147,0.9725,2419.598); graph->SetPoint(148,0.9733333,2566.547); graph->SetPoint(149,0.9741667,2726.132); graph->SetPoint(150,0.975,2899.774); graph->SetPoint(151,0.9758333,3089.095); graph->SetPoint(152,0.9766667,3295.948); graph->SetPoint(153,0.9775,3522.402); graph->SetPoint(154,0.9783333,3761.478); graph->SetPoint(155,0.9791667,4006.596); graph->SetPoint(156,0.98,4256.864); graph->SetPoint(157,0.9808333,4511.296); graph->SetPoint(158,0.9816667,4768.811); graph->SetPoint(159,0.9825,5028.243); graph->SetPoint(160,0.9833333,5288.343); graph->SetPoint(161,0.9841667,5547.793); graph->SetPoint(162,0.985,5805.213); graph->SetPoint(163,0.9858333,6059.173); graph->SetPoint(164,0.9866667,6308.205); graph->SetPoint(165,0.9875,6550.818); graph->SetPoint(166,0.9883333,6785.511); graph->SetPoint(167,0.9891667,7010.788); graph->SetPoint(168,0.99,7225.176); graph->SetPoint(169,0.9908333,7427.236); graph->SetPoint(170,0.9916667,7615.587); graph->SetPoint(171,0.9925,7788.912); graph->SetPoint(172,0.9933333,7945.98); graph->SetPoint(173,0.9941667,8085.659); graph->SetPoint(174,0.995,8206.928); graph->SetPoint(175,0.9958333,8308.892); graph->SetPoint(176,0.9966667,8390.791); graph->SetPoint(177,0.9975,8452.009); graph->SetPoint(178,0.9983333,8492.084); graph->SetPoint(179,0.9991667,8510.712); graph->SetPoint(180,1,8507.751); graph->SetPoint(181,1.000833,8483.224); graph->SetPoint(182,1.001667,8437.317); graph->SetPoint(183,1.002387,8370.962); graph->SetPoint(184,1.003333,8282.913); graph->SetPoint(185,1.004167,8175.576); graph->SetPoint(186,1.005,8049.166); graph->SetPoint(187,1.005833,7904.615); graph->SetPoint(188,1.006667,7742.974); graph->SetPoint(189,1.0075,7565.405); graph->SetPoint(190,1.008333,7373.163); graph->SetPoint(191,1.009167,7167.583); graph->SetPoint(192,1.01,6950.066); graph->SetPoint(193,1.010833,6722.06); graph->SetPoint(194,1.011667,6485.048); graph->SetPoint(195,1.0125,6240.526); graph->SetPoint(196,1.013333,5989.996); graph->SetPoint(197,1.014167,5734.943); graph->SetPoint(198,1.015,5476.826); graph->SetPoint(199,1.015833,5217.063); graph->SetPoint(200,1.016667,4957.018); graph->SetPoint(201,1.0175,4697.991); graph->SetPoint(202,1.018333,4441.208); graph->SetPoint(203,1.019167,4187.814); graph->SetPoint(204,1.02,3938.863); graph->SetPoint(205,1.020833,3695.317); graph->SetPoint(206,1.021667,3458.038); graph->SetPoint(207,1.0225,3227.788); graph->SetPoint(208,1.023333,3005.23); graph->SetPoint(209,1.024167,2790.921); graph->SetPoint(210,1.025,2585.323); graph->SetPoint(211,1.025833,2388.797); graph->SetPoint(212,1.026667,2201.613); graph->SetPoint(213,1.0275,2023.951); graph->SetPoint(214,1.028333,1855.907); graph->SetPoint(215,1.029167,1697.5); graph->SetPoint(216,1.03,1548.676); graph->SetPoint(217,1.030833,1409.317); graph->SetPoint(218,1.031667,1279.246); graph->SetPoint(219,1.0325,1158.235); graph->SetPoint(220,1.033333,1046.012); graph->SetPoint(221,1.034167,942.2667); graph->SetPoint(222,1.035,846.6586); graph->SetPoint(223,1.035833,758.8223); graph->SetPoint(224,1.036667,678.3739); graph->SetPoint(225,1.0375,604.9165); graph->SetPoint(226,1.038333,538.0456); graph->SetPoint(227,1.039167,477.3533); graph->SetPoint(228,1.04,422.4332); graph->SetPoint(229,1.040833,372.8838); graph->SetPoint(230,1.041667,328.3116); graph->SetPoint(231,1.0425,288.3342); graph->SetPoint(232,1.043333,252.5826); graph->SetPoint(233,1.044167,220.7028); graph->SetPoint(234,1.045,192.3578); graph->SetPoint(235,1.045833,167.2279); graph->SetPoint(236,1.046667,145.0124); graph->SetPoint(237,1.0475,125.4292); graph->SetPoint(238,1.048333,108.2156); graph->SetPoint(239,1.049167,93.12748); graph->SetPoint(240,1.05,79.93985); graph->SetPoint(241,1.050833,68.44568); graph->SetPoint(242,1.051667,58.45559); graph->SetPoint(243,1.0525,49.79702); graph->SetPoint(244,1.053333,42.3134); graph->SetPoint(245,1.054167,35.86326); graph->SetPoint(246,1.055,30.31928); graph->SetPoint(247,1.055833,25.56732); graph->SetPoint(248,1.056667,21.50547); graph->SetPoint(249,1.0575,18.04305); graph->SetPoint(250,1.058333,15.09969); graph->SetPoint(251,1.059167,12.60444); graph->SetPoint(252,1.06,10.49485); graph->SetPoint(253,1.060833,8.716184); graph->SetPoint(254,1.061667,7.220607); graph->SetPoint(255,1.0625,5.966482); graph->SetPoint(256,1.063333,4.917679); graph->SetPoint(257,1.064167,4.042959); graph->SetPoint(258,1.065,3.315399); graph->SetPoint(259,1.065833,2.711874); graph->SetPoint(260,1.066667,2.212588); graph->SetPoint(261,1.0675,1.800648); graph->SetPoint(262,1.068333,1.461687); graph->SetPoint(263,1.069167,1.183524); graph->SetPoint(264,1.07,0.9558663); graph->SetPoint(265,1.070833,0.7700422); graph->SetPoint(266,1.071667,0.6187699); graph->SetPoint(267,1.0725,0.4959536); graph->SetPoint(268,1.073333,0.3965064); graph->SetPoint(269,1.074167,0.3161963); graph->SetPoint(270,1.075,0.251513); graph->SetPoint(271,1.075833,0.1995545); graph->SetPoint(272,1.076667,0.1579282); graph->SetPoint(273,1.0775,0.1246681); graph->SetPoint(274,1.078333,0.09816309); graph->SetPoint(275,1.079167,0.07709715); graph->SetPoint(276,1.08,0.06039844); graph->SetPoint(277,1.080833,0.04719657); graph->SetPoint(278,1.081667,0.03678683); graph->SetPoint(279,1.0825,0.02860037); graph->SetPoint(280,1.083333,0.02217931); graph->SetPoint(281,1.084167,0.01715623); graph->SetPoint(282,1.085,0.0132371); graph->SetPoint(283,1.085833,0.01018735); graph->SetPoint(284,1.086667,0.007820362); graph->SetPoint(285,1.0875,0.00598811); graph->SetPoint(286,1.088333,0.004573513); graph->SetPoint(287,1.089167,0.003484234); graph->SetPoint(288,1.09,0.002647659); graph->SetPoint(289,1.090833,0.002006846); graph->SetPoint(290,1.091667,0.001517272); graph->SetPoint(291,1.0925,0.001144221); graph->SetPoint(292,1.093333,0.0008607038); graph->SetPoint(293,1.094167,0.0006457952); graph->SetPoint(294,1.095,0.0004833182); graph->SetPoint(295,1.095833,0.0003608019); graph->SetPoint(296,1.096667,0.0002686592); graph->SetPoint(297,1.0975,0.0001995409); graph->SetPoint(298,1.098333,0.0001478289); graph->SetPoint(299,1.099167,0.0001092406); graph->SetPoint(300,1.1,8.052045e-05); graph->SetPoint(301,1.1,8.052045e-05); //TH1 *gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]1 = new TH1F("gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]1","Projection of gauss",302,0.825,1.125); //gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]1->SetMinimum(0); //gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]1->SetMaximum(9361.783); //gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]1->SetDirectory(0); //gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]1->SetStats(0); //gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]1->GetXaxis()->SetLabelSize(0.03); //gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]1->GetYaxis()->SetLabelSize(0.03); //graph->SetHistogram(gauss_Norm[x]_Range[fit_nll]_NormRange[fit_nll]1); graph->Draw("l"); TH1 *frame_147510984 = new TH1D("frame_147510984","tagE> 3.8&& tagE<5.5&&meanXCut&&meanYCut&& sliceVar>5.000 && sliceVar<5.200",300,0.7,1.3); frame_147510984->SetMaximum(9265.133); frame_147510984->SetDirectory(0); frame_147510984->SetStats(0); frame_147510984->GetXaxis()->SetTitle("E_{reconstructed}/E_{incident}"); frame_147510984->GetXaxis()->SetRange(78,200); frame_147510984->GetXaxis()->SetLabelSize(0.03); frame_147510984->GetYaxis()->SetTitle("Events"); frame_147510984->GetYaxis()->CenterTitle(true); frame_147510984->GetYaxis()->SetLabelSize(0.03); frame_147510984->GetYaxis()->SetTitleOffset(1.2); frame_147510984->Draw("AXISSAME"); TLatex * tex = new TLatex(0.8752544,7667.04,"Fitted with Crystal ball function"); tex->SetTextSize(0.02624844); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.875648,7210.442,"#alpha = 1.333 #pm 0.015"); tex->SetTextSize(0.02624844); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.8760416,6791.894,"mean = 0.9994 #pm 0.0001"); tex->SetTextSize(0.02624844); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.8760416,6392.371,"n = 2.611 #pm 0.085"); tex->SetTextSize(0.02624844); tex->SetLineWidth(2); tex->Draw(); tex = new TLatex(0.8764352,5992.848,"#sigma = 0.0165 #pm 0.0001"); tex->SetTextSize(0.02624844); tex->SetLineWidth(2); tex->Draw(); eResCnv_1->Modified(); eResCnv->cd(); eResCnv->Modified(); eResCnv->cd(); eResCnv->SetSelected(eResCnv); eResCnv->ToggleToolBar(); }