rootlogonPresentation.C 2.53 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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
//#include "TStyle.h"

void rootlogonPresentation()
{

	Info("rootlogonPresentation.C", "This settings are used to make a nice pictures for presentation");

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

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

//	return;

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

	//canvas size and position
//	gStyle->SetCanvasDefX(85);
//	gStyle->SetCanvasDefY(224);

//	gStyle->SetCanvasDefW(649);
//	gStyle->SetCanvasDefH(727);

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

//	gStyle->SetLabelOffset(0.55, "X");

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

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



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

	gStyle->SetTitleBorderSize(0);

	gStyle->SetFrameLineWidth(2);


	gStyle->SetTitleFont(62, "X");
	gStyle->SetTitleFont(62, "Y");
	gStyle->SetLabelFont(62, "X");
	gStyle->SetLabelFont(62, "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");

//

	gROOT->ForceStyle();

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

}