rootlogon.C 2.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
void rootlogon()
{

	Info("rootlogon.c", "This settings are used to make large canvases");

	//gStyle choice
//	gROOT->SetStyle("Default");
//	gROOT->SetStyle("Plain");
//	gROOT->SetStyle("Bold");
//	gROOT->SetStyle("Video");

	gStyle->SetOptStat("n");
	gStyle->SetOptStat("ne");
//	gStyle->SetOptStat("");

	//canvas size and position
	//one panel pictures
//	gStyle->SetCanvasDefW(900);
//	gStyle->SetCanvasDefH(600);
//	gStyle->SetCanvasDefX(800);
//	gStyle->SetCanvasDefY(300);
	gStyle->SetCanvasDefH(700);
	gStyle->SetCanvasDefW(960);
	gStyle->SetCanvasDefX(0);
	gStyle->SetCanvasDefY(0);

	//marker attributes
	gStyle->SetMarkerStyle(20);
	gStyle->SetMarkerSize(0.1);
	gStyle->SetMarkerColor(1);

//	gStyle->SetTitleFont(62, "X");

	//line attributes
	gStyle->SetHistLineWidth(1);
//	gStyle->SetHistLineWidth(2);
//	gStyle->SetHistLineWidth(3);

	gStyle->SetTitleBorderSize(0);

	return;

	gStyle->SetTitleXSize(0.06);
	gStyle->SetTitleYSize(0.06);

	return;

	gStyle->SetTitleFont(132, "X");
	gStyle->SetTitleFont(132, "Y");
	gStyle->SetLabelFont(132, "X");
	gStyle->SetLabelFont(132, "Y");

	gStyle->SetPadTopMargin(0.04);
	gStyle->SetPadBottomMargin(0.13);
	gStyle->SetPadLeftMargin(0.13);
	gStyle->SetPadRightMargin(0.03);
//	gStyle->SetTitleOffset(1.3, "Y");
//	gStyle->SetLabelSize(0.05, "X");
//	gStyle->SetLabelSize(0.05, "Y");
//	gStyle->SetTitleSize(0.06, "X");
//	gStyle->SetTitleSize(0.06, "Y");


	return;

	//parameters used for pictures in EXON paper
//	gStyle->SetStatBorderSize(0);
//	gStyle->SetTitleBorderSize(0);
//	gStyle->SetTitleAlign(12);
//	gStyle->SetTitleX(0.83);
//	gStyle->SetTitleY(0.85);
	gStyle->SetTitleX(0.83);	//for Fig2
	gStyle->SetTitleY(0.9);	//for Fig2
	gStyle->SetTitleFontSize(0.08);
//	gStyle->SetTitleFillColor(0);
//	gStyle->SetLineWidth(1);
//	gStyle->SetHistLineWidth(1);
	gStyle->SetHistLineWidth(3);
	gStyle->SetPadTopMargin(0.05);
	gStyle->SetPadBottomMargin(0.13);
	gStyle->SetPadLeftMargin(0.14);
	gStyle->SetPadRightMargin(0.05);
	gStyle->SetTitleOffset(1.3, "Y");
	gStyle->SetLabelSize(0.05, "X");
	gStyle->SetLabelSize(0.05, "Y");
	gStyle->SetTitleSize(0.06, "X");
	gStyle->SetTitleSize(0.06, "Y");


//	gStyle->SetAxisColor(1);
	gStyle->SetLabelColor(1, "X");
	gStyle->SetLabelColor(1, "Y");

}