• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

BCAux.cxx

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2008-2012, Daniel Kollar and Kevin Kroeninger.
00003  * All rights reserved.
00004  *
00005  * For the licensing terms see doc/COPYING.
00006  */
00007 
00008 // ---------------------------------------------------------
00009 
00010 #include "BCAux.h"
00011 
00012 #include <TStyle.h>
00013 
00014 // ---------------------------------------------------------
00015 
00016 void BCAux::SetStyle()
00017 {
00018    // canvases
00019    gStyle->SetCanvasColor     (kWhite);
00020    gStyle->SetCanvasBorderMode(0);
00021    gStyle->SetCanvasDefH      (700);
00022    gStyle->SetCanvasDefW      (700);
00023 
00024    // pads
00025    gStyle->SetPadTopMargin   (0.13);
00026    gStyle->SetPadBottomMargin(0.15);
00027    gStyle->SetPadLeftMargin  (0.15);
00028    gStyle->SetPadRightMargin (0.13);
00029    gStyle->SetPadBorderMode  (0);
00030 
00031    // Frames
00032    gStyle->SetFrameFillStyle (0);
00033    gStyle->SetFrameFillColor (kWhite);
00034    gStyle->SetFrameLineColor (kBlack);
00035    gStyle->SetFrameLineStyle (0);
00036    gStyle->SetFrameLineWidth (1);
00037    gStyle->SetFrameBorderMode(0);
00038 
00039    // histograms
00040    gStyle->SetHistFillColor(kWhite);
00041    gStyle->SetHistFillStyle(0);
00042    gStyle->SetHistLineColor(kBlack);
00043    gStyle->SetHistLineStyle(0);
00044    gStyle->SetHistLineWidth(1);
00045 
00046    // options
00047    gStyle->SetOptTitle(0);
00048 
00049    // lines
00050    gStyle->SetLineColor(kBlack);
00051    gStyle->SetLineStyle(1);
00052    gStyle->SetLineWidth(1);
00053 
00054    // markers
00055    gStyle->SetMarkerStyle(kFullCircle);
00056    gStyle->SetMarkerSize (1.0);
00057 
00058    // functions
00059    gStyle->SetFuncColor(kBlack);
00060    gStyle->SetFuncStyle(0);
00061    gStyle->SetFuncWidth(2);
00062 
00063    // labels
00064 //   gStyle->SetLabelSize(0.05,   "X");
00065    gStyle->SetLabelFont(62,     "X");
00066 //   gStyle->SetLabelOffset(0.02, "X");
00067 
00068 //   gStyle->SetLabelSize(0.05,   "Y");
00069    gStyle->SetLabelFont(62,     "Y");
00070 //   gStyle->SetLabelOffset(0.02, "Y");
00071 
00072    // titles
00073    gStyle->SetTitleFillColor(kWhite);
00074    gStyle->SetTitleBorderSize(0);
00075    gStyle->SetTitleFont      (62, "");
00076    gStyle->SetTitleOffset    (0.0, "");
00077    gStyle->SetTitleH         (0.07);
00078 
00079    gStyle->SetTitleFont      (62,   "X");
00080 //   gStyle->SetTitleSize      (0.06, "X");
00081    gStyle->SetTitleOffset    (1.1,  "X");
00082 
00083    gStyle->SetTitleFont      (62,   "Y");
00084 //   gStyle->SetTitleSize      (0.06, "Y");
00085    gStyle->SetTitleOffset    (1.6,  "Y");
00086 
00087    // ticks
00088    gStyle->SetTickLength(0.03);
00089 
00090    // statistics box
00091    gStyle->SetStatFont (62);
00092    gStyle->SetStatColor(kWhite);
00093    gStyle->SetStatH    (0.20);
00094    gStyle->SetStatW    (0.20);
00095    gStyle->SetStatX    (0.965);
00096    gStyle->SetStatY    (0.90);
00097 
00098    // palette
00099    gStyle->SetPalette(1,0);
00100 
00101 }
00102 
00103 // ---------------------------------------------------------
00104 

Generated by  doxygen 1.7.1