void triangle() { //=========Macro generated from canvas: c_he7/title //========= (Tue Nov 7 18:12:50 2023) by ROOT version6.10/08 TCanvas *c_he7 = new TCanvas("c_he7", "title",117,57,1000,1000); gStyle->SetOptStat(0); c_he7->Range(-3.375,-2.644524,30.375,23.80071); c_he7->SetFillColor(0); c_he7->SetBorderMode(0); c_he7->SetBorderSize(2); c_he7->SetFrameBorderMode(0); c_he7->SetFrameBorderMode(0); TF1 *fa1 = new TF1("fa","x*3/4",0,27); fa1->SetFillColor(19); fa1->SetFillStyle(0); Int_t ci; // for color index setting TColor *color; // for color definition with alpha ci = TColor::GetColor("#ff0000"); fa1->SetLineColor(ci); fa1->SetLineWidth(2); fa1->GetXaxis()->SetLabelFont(42); fa1->GetXaxis()->SetLabelSize(0.035); fa1->GetXaxis()->SetTitleSize(0.035); fa1->GetXaxis()->SetTitleFont(42); fa1->GetYaxis()->SetLabelFont(42); fa1->GetYaxis()->SetLabelSize(0.035); fa1->GetYaxis()->SetTitleSize(0.035); fa1->GetYaxis()->SetTitleOffset(0); fa1->GetYaxis()->SetTitleFont(42); fa1->Draw(""); Double_t Graph0_fx1[136] = { 2.293378, 16.53346, 2.775385, 25.618, 25.618, 15.84522, 23.25345, 17.87187, 11.87716, 13.51793, 9.709167, 8.177823, 15.57414, 8.79528, 15.49065, 6.447484, 5.468663, 15.32576, 15.44866, 14.43255, 6.329823, 18.51257, 4.628421, 12.52081, 19.88932, 25.77312, 16.85224, 18.54831, 14.66246, 21.70794, 6.069371, 24.23959, 15.92302, 23.08188, 13.04678, 11.01585, 9.533222, 19.7312, 2.250434, 7.362024, -0.8738604, 14.52214, 18.01523, 25.71238, 25.71238, 19.00919, 7.122373, 14.77225, 19.56621, 11.88648, 4.760872, 25.25253, 25.25253, 13.78085, 16.55374, 16.32254, 7.666889, 17.17745, 12.18927, 12.18927, 11.04283, 15.78947, 14.9445, 12.80672, 5.574539, 1.294231, 16.38851, 12.18283, 3.692083, 20.43209, 13.05403, 3.35527, 10.56624, 11.00986, 25.02393, 21.30116, 9.124693, 18.07501, 15.33917, 19.30544, 15.68121, 14.6701, 9.807625, 13.23228, 9.896872, 8.678942, 25.70097, 17.79193, 26.18868, 22.8376, 3.849799, 18.20476, 0.679571, 14.87749, 14.87749, 2.729227, 9.972701, 18.46357, 17.24962, 16.66522, 20.9598, 18.17658, 10.80134, 4.07879, 17.75641, 3.633756, 4.65884, 17.17084, 14.27111, 23.64081, 2.64591, 10.31742, 15.63272, 13.63692, 16.51991, 15.26418, 20.17847, 9.149963, 20.66901, 24.80567, 17.34251, 0.2177003, 3.090493, 22.74068, 22.66954, 23.81961, 14.55301, 18.85983, 17.55044, 15.24921, 7.34596, 17.97639, 18.21805, 18.03173, 20.16727, 14.35985}; Double_t Graph0_fy1[136] = { 9.163973, 6.449236, 1.964816, 1.359788, 5.178768, 0.03498398, 8.769671, 0.03447526, 9.383176, 2.666473, 0.4635382, 2.440106, 5.390176, 6.375852, 1.925546, 0.2982776, 13.94083, 4.734602, 1.949477, 0.9119229, 17.27548, 5.710012, 24.2159, 7.403358, 3.93581, 3.3992, 9.162831, 6.575353, 4.866271, 5.708108, 7.070025, 6.054096, 1.499539, 14.85669, 0.9219248, 2.782254, 17.6368, 5.868251, 16.82547, 7.0717, 17.36037, 5.493919, 1.762917, 8.676415, 19.98228, 11.87412, 20.94647, 9.686372, 21.24376, 14.36828, 0.3806387, 2.475904, 8.730086, 1.759002, 21.01835, 3.011658, 3.843498, 3.301521, 3.249645, 9.771441, 8.041018, 2.327877, 19.21397, 7.417117, 1.852323, 19.29377, 2.539789, 2.364044, 15.25004, 2.678995, 0.9787855, 7.585063, 2.082057, 0.2521605, 3.357897, 1.632345, 3.1414, 4.577259, 4.179225, 3.243581, 8.190845, 0.7892501, 6.320226, 9.764912, 1.746821, 2.202726, 4.411285, 5.531563, 3.224871, 11.51703, 2.623029, 4.777777, 4.626465, 1.353373, 2.366684, 4.382703, 9.993218, 7.656126, 3.515664, 8.187073, 1.613118, 2.693062, 4.255403, 1.414101, 5.831221, 7.573159, 24.69945, 0.8742778, 1.442736, 6.330581, 4.266314, 6.523858, 7.44585, 10.23886, 10.57767, 3.315528, 5.560736, 19.32783, 2.242471, 1.46184, 2.058325, 8.574683, 1.994378, 11.15542, 7.585573, 5.511144, 3.669028, 1.438863, 6.547084, 4.416309, 17.42749, 3.90872, 6.114368, 4.925547, 7.415713, 1.159745}; TGraph *graph = new TGraph(136,Graph0_fx1,Graph0_fy1); graph->SetName("Graph0"); graph->SetTitle("^{8}Li MM, tel4"); ci = TColor::GetColor("#000099"); graph->SetLineColor(ci); graph->SetMarkerStyle(20); TH1F *Graph_Graph1 = new TH1F("Graph_Graph1","^{8}Li MM, tel4",136,-3.580114,28.89493); Graph_Graph1->SetMinimum(0.03102773); Graph_Graph1->SetMaximum(27.16594); Graph_Graph1->SetDirectory(0); Graph_Graph1->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph1->SetLineColor(ci); Graph_Graph1->GetXaxis()->SetTitle("E_{T}, MeV"); Graph_Graph1->GetXaxis()->CenterTitle(true); Graph_Graph1->GetXaxis()->SetLabelFont(42); Graph_Graph1->GetXaxis()->SetLabelSize(0.035); Graph_Graph1->GetXaxis()->SetTitleSize(0.05); Graph_Graph1->GetXaxis()->SetTitleOffset(0.8); Graph_Graph1->GetXaxis()->SetTitleFont(42); Graph_Graph1->GetYaxis()->SetTitle("E_{n}(4n c.m.s.), MeV"); Graph_Graph1->GetYaxis()->CenterTitle(true); Graph_Graph1->GetYaxis()->SetLabelFont(42); Graph_Graph1->GetYaxis()->SetLabelSize(0.035); Graph_Graph1->GetYaxis()->SetTitleSize(0.05); Graph_Graph1->GetYaxis()->SetTitleOffset(0.9); Graph_Graph1->GetYaxis()->SetTitleFont(42); Graph_Graph1->GetZaxis()->SetLabelFont(42); Graph_Graph1->GetZaxis()->SetLabelSize(0.035); Graph_Graph1->GetZaxis()->SetTitleSize(0.035); Graph_Graph1->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph1); graph->Draw("p"); TPaveText *pt = new TPaveText(0.4318838,0.94,0.5681162,0.995,"blNDC"); pt->SetName("title"); pt->SetBorderSize(0); pt->SetFillColor(0); pt->SetFillStyle(0); pt->SetTextFont(42); TText *pt_LaTex = pt->AddText("x*3/4"); pt->Draw(); Double_t Graph1_fx2[110] = { 16.53346, 2.775385, 25.618, 25.618, 15.84522, 23.25345, 17.87187, 11.87716, 13.51793, 9.709167, 8.177823, 15.57414, 8.79528, 15.49065, 6.447484, 15.32576, 15.44866, 14.43255, 18.51257, 12.52081, 19.88932, 25.77312, 16.85224, 18.54831, 14.66246, 21.70794, 24.23959, 15.92302, 23.08188, 13.04678, 11.01585, 19.7312, 14.52214, 18.01523, 25.71238, 25.71238, 19.00919, 14.77225, 4.760872, 25.25253, 25.25253, 13.78085, 16.32254, 7.666889, 17.17745, 12.18927, 12.18927, 11.04283, 15.78947, 12.80672, 5.574539, 16.38851, 12.18283, 20.43209, 13.05403, 10.56624, 11.00986, 25.02393, 21.30116, 9.124693, 18.07501, 15.33917, 19.30544, 15.68121, 14.6701, 9.807625, 13.23228, 9.896872, 8.678942, 25.70097, 17.79193, 26.18868, 22.8376, 3.849799, 18.20476, 14.87749, 14.87749, 18.46357, 17.24962, 16.66522, 20.9598, 18.17658, 10.80134, 4.07879, 17.75641, 17.17084, 14.27111, 23.64081, 10.31742, 15.63272, 13.63692, 16.51991, 15.26418, 20.17847, 20.66901, 24.80567, 17.34251, 3.090493, 22.74068, 22.66954, 23.81961, 14.55301, 18.85983, 17.55044, 15.24921, 17.97639, 18.21805, 18.03173, 20.16727, 14.35985}; Double_t Graph1_fy2[110] = { 6.449236, 1.964816, 1.359788, 5.178768, 0.03498398, 8.769671, 0.03447526, 9.383176, 2.666473, 0.4635382, 2.440106, 5.390176, 6.375852, 1.925546, 0.2982776, 4.734602, 1.949477, 0.9119229, 5.710012, 7.403358, 3.93581, 3.3992, 9.162831, 6.575353, 4.866271, 5.708108, 6.054096, 1.499539, 14.85669, 0.9219248, 2.782254, 5.868251, 5.493919, 1.762917, 8.676415, 19.98228, 11.87412, 9.686372, 0.3806387, 2.475904, 8.730086, 1.759002, 3.011658, 3.843498, 3.301521, 3.249645, 9.771441, 8.041018, 2.327877, 7.417117, 1.852323, 2.539789, 2.364044, 2.678995, 0.9787855, 2.082057, 0.2521605, 3.357897, 1.632345, 3.1414, 4.577259, 4.179225, 3.243581, 8.190845, 0.7892501, 6.320226, 9.764912, 1.746821, 2.202726, 4.411285, 5.531563, 3.224871, 11.51703, 2.623029, 4.777777, 1.353373, 2.366684, 7.656126, 3.515664, 8.187073, 1.613118, 2.693062, 4.255403, 1.414101, 5.831221, 0.8742778, 1.442736, 6.330581, 6.523858, 7.44585, 10.23886, 10.57767, 3.315528, 5.560736, 2.242471, 1.46184, 2.058325, 1.994378, 11.15542, 7.585573, 5.511144, 3.669028, 1.438863, 6.547084, 4.416309, 3.90872, 6.114368, 4.925547, 7.415713, 1.159745}; graph = new TGraph(110,Graph1_fx2,Graph1_fy2); graph->SetName("Graph1"); graph->SetTitle("Graph"); ci = TColor::GetColor("#000099"); graph->SetLineColor(ci); ci = TColor::GetColor("#ff0000"); graph->SetMarkerColor(ci); graph->SetMarkerStyle(20); TH1F *Graph_Graph2 = new TH1F("Graph_Graph2","Graph",110,0.4340556,28.53001); Graph_Graph2->SetMinimum(0.03102773); Graph_Graph2->SetMaximum(21.97706); Graph_Graph2->SetDirectory(0); Graph_Graph2->SetStats(0); ci = TColor::GetColor("#000099"); Graph_Graph2->SetLineColor(ci); Graph_Graph2->GetXaxis()->SetLabelFont(42); Graph_Graph2->GetXaxis()->SetLabelSize(0.035); Graph_Graph2->GetXaxis()->SetTitleSize(0.035); Graph_Graph2->GetXaxis()->SetTitleFont(42); Graph_Graph2->GetYaxis()->SetLabelFont(42); Graph_Graph2->GetYaxis()->SetLabelSize(0.035); Graph_Graph2->GetYaxis()->SetTitleSize(0.035); Graph_Graph2->GetYaxis()->SetTitleOffset(0); Graph_Graph2->GetYaxis()->SetTitleFont(42); Graph_Graph2->GetZaxis()->SetLabelFont(42); Graph_Graph2->GetZaxis()->SetLabelSize(0.035); Graph_Graph2->GetZaxis()->SetTitleSize(0.035); Graph_Graph2->GetZaxis()->SetTitleFont(42); graph->SetHistogram(Graph_Graph2); graph->Draw("p"); TF1 *fa2 = new TF1("fa","x*3/4",0,27); fa2->SetFillColor(19); fa2->SetFillStyle(0); ci = TColor::GetColor("#ff0000"); fa2->SetLineColor(ci); fa2->SetLineWidth(2); fa2->GetXaxis()->SetLabelFont(42); fa2->GetXaxis()->SetLabelSize(0.035); fa2->GetXaxis()->SetTitleSize(0.035); fa2->GetXaxis()->SetTitleFont(42); fa2->GetYaxis()->SetLabelFont(42); fa2->GetYaxis()->SetLabelSize(0.035); fa2->GetYaxis()->SetTitleSize(0.035); fa2->GetYaxis()->SetTitleOffset(0); fa2->GetYaxis()->SetTitleFont(42); fa2->Draw("same"); c_he7->Modified(); c_he7->cd(); c_he7->SetSelected(c_he7); }