rootlogon6panels.C 2.35 KB
Newer Older
1 2 3
//#include "TStyle.h"

void rootlogon6panels()
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
{

	Info("rootlogonThesis.c", "This settings are used to make a nice pictures for PRC paper");

	gROOT->ProcessLine(".x load_libs.cxx");

	//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
21 22 23 24 25
	gStyle->SetCanvasDefX(85);
	gStyle->SetCanvasDefY(224);

	gStyle->SetCanvasDefW(649);
	gStyle->SetCanvasDefH(727);
26 27 28 29 30 31

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

32 33 34 35 36 37 38 39 40 41 42 43 44 45
//	gStyle->SetLabelOffset(0.55, "X");

	gStyle->SetLabelSize(0.06, "X");
	gStyle->SetTitleSize(0.11, "X");
	gStyle->SetTitleOffset(0.55, "X");
	gStyle->SetTitleXSize(0.11);

	gStyle->SetLabelSize(0.06, "Y");
	gStyle->SetTitleSize(0.11, "Y");
	gStyle->SetTitleOffset(0.61, "Y");
	gStyle->SetTitleYSize(0.11);



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 95 96 97 98 99 100
	//line attributes
	gStyle->SetHistLineWidth(1);
//	gStyle->SetHistLineWidth(2);
//	gStyle->SetHistLineWidth(3);

	gStyle->SetTitleBorderSize(0);


	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");

}