本文整理汇总了C++中TStyle::SetCanvasBorderMode方法的典型用法代码示例。如果您正苦于以下问题:C++ TStyle::SetCanvasBorderMode方法的具体用法?C++ TStyle::SetCanvasBorderMode怎么用?C++ TStyle::SetCanvasBorderMode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TStyle
的用法示例。
在下文中一共展示了TStyle::SetCanvasBorderMode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setRBellanStyle
void setRBellanStyle() {
TStyle *theStyle = new TStyle("rbStyle", "Style for Bellan Thesis");
theStyle->SetOptStat(0);
theStyle->SetPadBorderMode(0);
theStyle->SetCanvasBorderMode(0);
theStyle->SetPadColor(0);
theStyle->SetCanvasColor(0);
theStyle->SetMarkerStyle(8);
theStyle->SetMarkerSize(0.7);
theStyle->SetPalette(1);
theStyle->SetStatH(0.3);
// theStyle->SetTextFont(132);
// theStyle->SetTitleFont(132);
theStyle->SetTitleBorderSize(1);
// theStyle->SetPalette(1);
theStyle->SetOptStat(0);
theStyle->SetFitFormat("4.4g");
theStyle->SetStatY(0.99);
theStyle->SetStatX(0.99);
theStyle->SetTitleYOffset(1.6);
theStyle->SetLabelSize(0.035, "XYZ");
theStyle->SetPadGridX(true);
theStyle->SetPadGridY(true);
theStyle->SetFrameBorderMode(0);
theStyle->SetTitleFillColor(0);
theStyle->SetLegendBorderSize();
// theStyle->SetCanvasDefH(600);
// theStyle->SetCanvasDefW(400);
//theStyle->SetOptLogy(); //aaa
// theStyle->SetOptLogx();
theStyle->cd();
}
示例2: draw2ndJet
void draw2ndJet(const std::string& fileName) {
TStyle *simpleStyle = new TStyle("simpleStyle","");
simpleStyle->SetCanvasColor(0);
simpleStyle->SetFrameFillColor(0);
simpleStyle->SetStatColor(0);
simpleStyle->SetOptStat(0);
simpleStyle->SetTitleFillColor(0);
simpleStyle->SetCanvasBorderMode(0);
simpleStyle->SetPadBorderMode(0);
simpleStyle->SetFrameBorderMode(0);
simpleStyle->cd();
int nBins_pt = 23;
for( int i=0; i<(nBins_pt-1); ++i) {
drawSinglePtBin(fileName, i, "reco");
drawSinglePtBin(fileName, i, "gen");
drawSinglePtBin(fileName, i, "recoRel");
drawSinglePtBin(fileName, i, "genRel");
}
}
示例3: hggPaperStyle
void hggPaperStyle()
{
// Hgg Paper style for plots
TStyle *hggStyle = new TStyle("hggStyle","Hgg Paper Style");
//hggStyle->SetCanvasColor(0);
//hggStyle->SetPadColor(0);
hggStyle->SetPadTickX(0);
hggStyle->SetPadTickY(0);
hggStyle->SetFrameFillColor(0);
hggStyle->SetStatColor(0);
hggStyle->SetOptStat(0);
hggStyle->SetTitleFillColor(0);
hggStyle->SetCanvasBorderMode(0);
hggStyle->SetPadBorderMode(0);
hggStyle->SetFrameBorderMode(0);
hggStyle->SetFrameBorderSize(1);
hggStyle->SetPadColor(kWhite);
hggStyle->SetCanvasColor(kWhite);
hggStyle->SetCanvasDefH(600); //Height of canvas
hggStyle->SetCanvasDefW(800); //Width of canvas
hggStyle->SetCanvasDefX(0); //POsition on screen
hggStyle->SetCanvasDefY(0);
hggStyle->SetPadLeftMargin(0.16);//0.16);
hggStyle->SetPadRightMargin(0.1);//0.02);
hggStyle->SetPadTopMargin(0.085);//0.02);
hggStyle->SetPadBottomMargin(0.12);//0.02);
// For hgg axis titles:
hggStyle->SetTitleColor(1, "XYZ");
hggStyle->SetTitleFont(42, "XYZ");
hggStyle->SetTitleSize(0.05, "XYZ");
hggStyle->SetTitleYOffset(1.5); // => 1.15 if exponents
hggStyle->SetTitleXOffset(1.);//0.9);
// For hgg axis labels:
hggStyle->SetLabelColor(1, "XYZ");
hggStyle->SetLabelFont(42, "XYZ");
hggStyle->SetLabelOffset(0.007, "XYZ");
hggStyle->SetLabelSize(0.045, "XYZ");
// Legends
hggStyle->SetLegendBorderSize(0);
hggStyle->SetLegendFillColor(kWhite);
hggStyle->SetLegendFont(42);
hggStyle->SetFillColor(10);
// Nothing for now
hggStyle->SetTextFont(42);
hggStyle->SetTextSize(0.03);
hggStyle->SetOptTitle(0);
hggStyle->SetOptStat(0);
hggStyle->cd();
}
示例4: drawTracks
void drawTracks() {
TStyle *simpleStyle = new TStyle("simpleStyle","");
simpleStyle->SetCanvasColor(0);
simpleStyle->SetFrameFillColor(0);
simpleStyle->SetStatColor(0);
simpleStyle->SetOptStat(0);
simpleStyle->SetTitleFillColor(0);
simpleStyle->SetCanvasBorderMode(0);
simpleStyle->SetPadBorderMode(0);
simpleStyle->SetFrameBorderMode(0);
simpleStyle->cd();
TFile* dataFile = TFile::Open("Runs_123592_123596_123615_123732/output_1.root");
TTree* dataTree = (TTree*)dataFile->Get("myanalysis/pippo");
TFile* mcFile = TFile::Open("MC_MinBias_900GeV/output_12.root");
TTree* mcTree = (TTree*)dataFile->Get("myanalysis/pippo");
std::cout << "1" << std::endl;
Int_t nEventTracks_data;
dataTree->SetBranchAddress("nEventTracks", &nEventTracks_data);
Int_t nChargedHadrons_data;
dataTree->SetBranchAddress("nChargedHadrons", &nChargedHadrons_data);
std::cout << "2" << std::endl;
Int_t nEventTracks_mc;
mcTree->SetBranchAddress("nEventTracks", &nEventTracks_mc);
Int_t nChargedHadrons_mc;
mcTree->SetBranchAddress("nChargedHadrons", &nChargedHadrons_mc);
std::cout << "3" << std::endl;
TH1F* h1_data = new TH1F("data", "", 100, 0., 100.);
h1_data->SetMarkerStyle(20);
TH1F* h1_mc = new TH1F("mc", "", 100, 0., 100.);
h1_mc->SetFillColor(kGray);
std::cout << "4" << std::endl;
for( int iEntry=0; iEntry<dataTree->GetEntries(); ++iEntry) {
dataTree->GetEntry(iEntry);
Float_t trackRatio = (nChargedHadrons_data>0) ? (Float_t)(nEventTracks_data/nChargedHadrons_data) : 0.;
h1_data->Fill( trackRatio );
}
std::cout << "5" << std::endl;
for( int iEntry=0; iEntry<mcTree->GetEntries(); ++iEntry) {
Float_t trackRatio = (nChargedHadrons_mc>0) ? (Float_t)(nEventTracks_mc/nChargedHadrons_mc) : 0.;
h1_mc->Fill( trackRatio );
}
std::cout << "6" << std::endl;
TCanvas* c1 = new TCanvas("c1", "c1", 800, 600);
c1->cd();
h1_data->Draw("E");
h1_mc->Draw("histo same");
c1->SaveAs("tracks.eps");
}
示例5: drawPtSpectrum
void drawPtSpectrum() {
TStyle *simpleStyle = new TStyle("simpleStyle","");
simpleStyle->SetCanvasColor(0);
simpleStyle->SetFrameFillColor(0);
simpleStyle->SetStatColor(0);
simpleStyle->SetOptStat(0);
simpleStyle->SetTitleFillColor(0);
simpleStyle->SetCanvasBorderMode(0);
simpleStyle->SetPadBorderMode(0);
simpleStyle->SetFrameBorderMode(0);
simpleStyle->cd();
TChain* chain = new TChain("jetTree");
chain->Add("2ndLevelOutputFile_PhotonJet15.root");
chain->Add("2ndLevelOutputFile_PhotonJet30.root");
chain->Add("2ndLevelOutputFile_PhotonJet80.root");
chain->Add("2ndLevelOutputFile_PhotonJet170.root");
chain->Add("2ndLevelOutputFile_PhotonJet300.root");
chain->Add("2ndLevelOutputFile_PhotonJet470.root");
chain->Add("2ndLevelOutputFile_PhotonJet800.root");
Float_t eventWeight;
chain->SetBranchAddress("eventWeight", &eventWeight);
Float_t ptHat;
chain->SetBranchAddress("ptHat", &ptHat);
TH1F* h1_ptSpectrum = new TH1F("ptSpectrum", "", 100, 0., 1000.);
h1_ptSpectrum->SetXTitle("#hat{p}_{T} [GeV/c]");
h1_ptSpectrum->SetMarkerStyle(20);
h1_ptSpectrum->SetMarkerSize(1.4);
Int_t nEntries = chain->GetEntries();
for( Int_t iEntry = 0; iEntry<nEntries; ++iEntry) {
if( (iEntry%100000) == 0 ) std::cout << "Entry: " << iEntry << "/" << nEntries << std::endl;
chain->GetEntry(iEntry);
h1_ptSpectrum->Fill(ptHat, eventWeight);
}
TCanvas* c1 = new TCanvas("c1", "c1", 800, 600);
c1->cd();
c1->SetLogy();
h1_ptSpectrum->Draw("P");
c1->SaveAs("ptSpectrum.eps");
}
示例6: HPlusStyle
// TStyle used for HPlus Studies and AnalysisPack.
//********************************************************************//
void HPlusStyle(void) {
TStyle *HplusStyle = new TStyle("HplusStyle", "HplusStyle");
HplusStyle->SetCanvasBorderMode(0);
HplusStyle->SetCanvasColor(kWhite);
HplusStyle->SetPadBorderMode(0);
HplusStyle->SetPadColor(kWhite);
HplusStyle->SetTitleFillColor(kWhite);
HplusStyle->SetGridColor(0);
HplusStyle->SetFrameBorderMode(0);
HplusStyle->SetFrameBorderSize(1);
HplusStyle->SetFrameFillColor(0);
HplusStyle->SetFrameFillStyle(0);
HplusStyle->SetFrameLineColor(1);
HplusStyle->SetFrameLineStyle(1);
HplusStyle->SetFrameLineWidth(1);
// HplusStyle->SetFillColor(kWhite);
HplusStyle->SetOptTitle(0);
HplusStyle->SetTitleFont(42, "XYZ");
HplusStyle->SetTitleFontSize(0.05);
HplusStyle->SetTitleSize(0.06, "XYZ");
HplusStyle->SetTextFont(42);
HplusStyle->SetTitleXOffset(0.9);
HplusStyle->SetTitleYOffset(1.25);
HplusStyle->SetLabelColor(1, "XYZ");
HplusStyle->SetLabelFont(42, "XYZ");
HplusStyle->SetLabelOffset(0.007, "XYZ");
HplusStyle->SetLabelSize(0.05, "XYZ");
HplusStyle->SetPadTickX(1); // To get tick marks on the opposite side of the frame
HplusStyle->SetPadTickY(1); // To get tick marks on the opposite side of the frame
HplusStyle->SetNdivisions(508,"XYZ");
HplusStyle->SetPadTopMargin(0.05);
HplusStyle->SetPadBottomMargin(0.12);
HplusStyle->SetPadLeftMargin(0.16);
HplusStyle->SetPadRightMargin(0.04);//0.02
HplusStyle->SetCanvasDefH(1280); //Height of canvas
HplusStyle->SetCanvasDefW(1024); //Width of canvas
HplusStyle->SetCanvasDefX(0); //POsition on screen
HplusStyle->SetCanvasDefY(0);
HplusStyle->SetPaintTextFormat("5.2f");
// HplusStyle->SetPalette(1, 0); // Pretty palette
HplusStyle->SetOptStat(0);
/// Statistics Box
HplusStyle->SetStatX(0.9);
HplusStyle->SetStatY(0.9);
// HplusStyle->SetStatW(0.19) // default
// HplusStyle->SetStatH(0.1) // default
HplusStyle->SetStatW(0.15);
HplusStyle->SetStatH(0.1);
HplusStyle->cd();
} //eof: void HPlusStyle(void){
示例7: LAWStyle
// Lauri's Style (LAuri Wendland)
//********************************************************************//
void LAWStyle() {
TStyle *LAWStyle = new TStyle("LAWStyle", "Neat style");
LAWStyle->SetCanvasBorderMode(0);
LAWStyle->SetCanvasColor(kWhite);
LAWStyle->SetPadBorderMode(0);
LAWStyle->SetPadColor(kWhite);
LAWStyle->SetTitleFillColor(kWhite);
LAWStyle->SetGridColor(0);
LAWStyle->SetFrameBorderMode(0);
LAWStyle->SetFrameBorderSize(1);
LAWStyle->SetFrameFillColor(0);
LAWStyle->SetFrameFillStyle(0);
LAWStyle->SetFrameLineColor(1);
LAWStyle->SetFrameLineStyle(1);
LAWStyle->SetFrameLineWidth(1);
LAWStyle->SetFillColor(kWhite);
LAWStyle->SetFillColor(kWhite);
LAWStyle->SetOptTitle(0);
LAWStyle->SetTitleFont(42, "XYZ");
LAWStyle->SetTitleFontSize(0.05);
LAWStyle->SetTitleSize(0.06, "XYZ");
LAWStyle->SetTextFont(42);
LAWStyle->SetTitleXOffset(0.9);
LAWStyle->SetTitleYOffset(1.25);
LAWStyle->SetLabelColor(1, "XYZ");
LAWStyle->SetLabelFont(42, "XYZ");
LAWStyle->SetLabelOffset(0.007, "XYZ");
LAWStyle->SetLabelSize(0.05, "XYZ");
LAWStyle->SetPadTickX(1); // To get tick marks on the opposite side of the frame
LAWStyle->SetPadTickY(1); // To get tick marks on the opposite side of the frame
LAWStyle->SetNdivisions(508,"XYZ");
LAWStyle->SetPadTopMargin(0.05);
LAWStyle->SetPadBottomMargin(0.12);
LAWStyle->SetPadLeftMargin(0.16);
LAWStyle->SetPadRightMargin(0.04);//0.02
LAWStyle->SetCanvasDefH(600); //Height of canvas
LAWStyle->SetCanvasDefW(600); //Width of canvas
LAWStyle->SetCanvasDefX(0); //POsition on screen
LAWStyle->SetCanvasDefY(0);
LAWStyle->SetOptTitle(0);
LAWStyle->SetOptStat(0);
LAWStyle->cd();
} //end of: void LAWStyle(){
示例8: setNiceStyle
void setNiceStyle()
{
gROOT->SetStyle("Plain");
// --------------------------------------------------
// define proper canvas style
// --------------------------------------------------
TStyle *MyStyle = new TStyle ("MyStyle", "My style for nicer plots");
Float_t xoff = MyStyle->GetLabelOffset("X"),
yoff = MyStyle->GetLabelOffset("Y"),
zoff = MyStyle->GetLabelOffset("Z");
MyStyle->SetCanvasBorderMode ( 0 );
MyStyle->SetPadBorderMode ( 0 );
MyStyle->SetPadColor ( 0 );
MyStyle->SetCanvasColor ( 0 );
MyStyle->SetTitleColor ( 0 );
MyStyle->SetStatColor ( 0 );
MyStyle->SetTitleBorderSize ( 0 );
MyStyle->SetTitleFillColor ( 0 );
MyStyle->SetTitleH ( 0.07 );
MyStyle->SetTitleW ( 1.00 );
MyStyle->SetTitleFont ( 132 );
MyStyle->SetLabelOffset (1.5*xoff, "X");
MyStyle->SetLabelOffset (1.5*yoff, "Y");
MyStyle->SetLabelOffset (1.5*zoff, "Z");
MyStyle->SetTitleOffset (0.9, "X");
MyStyle->SetTitleOffset (0.9, "Y");
MyStyle->SetTitleOffset (0.9, "Z");
MyStyle->SetTitleSize (0.045, "X");
MyStyle->SetTitleSize (0.045, "Y");
MyStyle->SetTitleSize (0.045, "Z");
MyStyle->SetLabelFont (132, "X");
MyStyle->SetLabelFont (132, "Y");
MyStyle->SetLabelFont (132, "Z");
MyStyle->SetPalette(1);
MyStyle->cd();
}
示例9: setStyle
void setStyle() {
TStyle *setStyle = new TStyle("setStyle","Style for GCTAnalyzer");
// Stuff from plain style
setStyle->SetFrameBorderMode(0);
setStyle->SetCanvasBorderMode(0);
setStyle->SetCanvasColor(kWhite);
setStyle->SetPadBorderMode(0);
setStyle->SetPadColor(kWhite);
setStyle->SetOptStat(0);
setStyle->SetOptTitle(1);
setStyle->SetOptFit(0);
setStyle->SetOptDate(0);
setStyle->cd();
}
示例10: setDefaultStyle
void setDefaultStyle()
{
TStyle *defaultStyle = new TStyle("defaultStyle","Default Style");
defaultStyle->SetOptStat(0000);
defaultStyle->SetOptFit(000);
defaultStyle->SetPalette(1);
/////// pad ////////////
defaultStyle->SetPadBorderMode(1);
defaultStyle->SetPadBorderSize(1);
defaultStyle->SetPadColor(0);
defaultStyle->SetPadTopMargin(0.05);
defaultStyle->SetPadBottomMargin(0.13);
defaultStyle->SetPadLeftMargin(0.14);
defaultStyle->SetPadRightMargin(0.02);
/////// canvas /////////
defaultStyle->SetCanvasBorderMode(0);
defaultStyle->SetCanvasColor(0);
defaultStyle->SetCanvasDefH(600);
defaultStyle->SetCanvasDefW(600);
/////// frame //////////
defaultStyle->SetFrameBorderMode(0);
defaultStyle->SetFrameBorderSize(1);
defaultStyle->SetFrameFillColor(0);
defaultStyle->SetFrameLineColor(1);
/////// label //////////
defaultStyle->SetLabelOffset(0.005,"XY");
defaultStyle->SetLabelSize(0.05,"XY");
defaultStyle->SetLabelFont(42,"XY");
/////// title //////////
defaultStyle->SetTitleOffset(1.2,"X");
defaultStyle->SetTitleSize(0.05,"X");
defaultStyle->SetTitleOffset(1.4,"Y");
defaultStyle->SetTitleSize(0.05,"Y");
defaultStyle->SetTitleFont(42, "XYZ");
/////// various ////////
defaultStyle->SetLegendBorderSize(0);
defaultStyle->cd();
}
示例11: drawRxResolutions
void drawRxResolutions(const std::string& dataset) {
TStyle *simpleStyle = new TStyle("simpleStyle","");
simpleStyle->SetCanvasColor(0);
simpleStyle->SetFrameFillColor(0);
simpleStyle->SetStatColor(0);
simpleStyle->SetOptStat(0);
simpleStyle->SetTitleFillColor(0);
simpleStyle->SetCanvasBorderMode(0);
simpleStyle->SetPadBorderMode(0);
simpleStyle->SetFrameBorderMode(0);
simpleStyle->cd();
bool logScale=true;
drawResolution(dataset, "Ech");
drawResolution(dataset, "Egamma");
drawResolution(dataset, "Egammanh");
//drawResolution(dataset, "Ee");
drawResolution(dataset, "Enh", logScale);
}
示例12: setStyle
void setStyle() {
TStyle *setStyle = new TStyle("setStyle","Style for GCT Analyzer");
// Stuff from plain style
setStyle->SetCanvasColor(kWhite);
setStyle->SetFrameBorderMode(0);
setStyle->SetCanvasBorderMode(0);
setStyle->SetFrameFillColor(0);
setStyle->SetPadBorderMode(0);
setStyle->SetPadColor(kWhite);
setStyle->SetOptStat(0);
setStyle->SetOptTitle(0);
setStyle->SetOptFit(0);
setStyle->SetOptDate(0);
// Labels and borders
setStyle->SetLabelSize(0.055,"x");
setStyle->SetLabelSize(0.06,"y");
setStyle->SetLabelOffset(0.00,"x");
setStyle->SetLabelOffset(0.00,"y");
setStyle->SetTitleOffset(0.05,"x");
setStyle->SetTitleOffset(0.50,"y");
//setStyle->SetLabelFont(22,"x");
//setStyle->SetLabelFont(22,"y");
//setStyle->SetErrorX(0.0000);
//setStyle->SetTickLength(0.05,"x");
//setStyle->SetTickLength(0.05,"y");
//setStyle->SetLineWidth(0.8);
//setStyle->SetPadTickX(1);
//setStyle->SetPadTickY(1);
setStyle->SetPadLeftMargin(0.15);
setStyle->SetPadTopMargin(0.077);
setStyle->SetPadBottomMargin(0.123);
setStyle->cd();
}
示例13: drawProjections
void drawProjections() {
TStyle *simpleStyle = new TStyle("simpleStyle","");
simpleStyle->SetCanvasColor(0);
simpleStyle->SetFrameFillColor(0);
simpleStyle->SetStatColor(0);
simpleStyle->SetOptStat(0);
simpleStyle->SetTitleFillColor(0);
simpleStyle->SetCanvasBorderMode(0);
simpleStyle->SetPadBorderMode(0);
simpleStyle->SetFrameBorderMode(0);
simpleStyle->cd();
draw("PFItCone5_barrel");
draw("PFItCone5_endcap");
draw("caloItCone5_barrel");
draw("caloItCone5_endcap");
draw("Rch90_100_endcap");
}
示例14: setNiceStyle
//------------------------------------------------------------------------------
void PlotAlignmentValidation::setNiceStyle() {
TStyle *MyStyle = new TStyle ("MyStyle", "My style for nicer plots");
Float_t xoff = MyStyle->GetLabelOffset("X"),
yoff = MyStyle->GetLabelOffset("Y"),
zoff = MyStyle->GetLabelOffset("Z");
MyStyle->SetCanvasBorderMode ( 0 );
MyStyle->SetPadBorderMode ( 0 );
MyStyle->SetPadColor ( 0 );
MyStyle->SetCanvasColor ( 0 );
MyStyle->SetTitleColor ( 0 );
MyStyle->SetStatColor ( 0 );
MyStyle->SetTitleBorderSize ( 0 );
MyStyle->SetTitleFillColor ( 0 );
MyStyle->SetTitleH ( 0.07 );
MyStyle->SetTitleW ( 1.00 );
MyStyle->SetTitleFont ( 132 );
MyStyle->SetLabelOffset (1.5*xoff, "X");
MyStyle->SetLabelOffset (1.5*yoff, "Y");
MyStyle->SetLabelOffset (1.5*zoff, "Z");
MyStyle->SetTitleOffset (1.5, "X");
MyStyle->SetTitleOffset (1.2, "Y");
MyStyle->SetTitleOffset (0.9, "Z");
MyStyle->SetTitleSize (0.045, "X");
MyStyle->SetTitleSize (0.045, "Y");
MyStyle->SetTitleSize (0.045, "Z");
MyStyle->SetLabelFont (132, "X");
MyStyle->SetLabelFont (132, "Y");
MyStyle->SetLabelFont (132, "Z");
MyStyle->SetPalette(1);
MyStyle->cd();
}
示例15: setStyle
void setStyle(){
//Style//
TStyle *tdrStyle = new TStyle("tdrStyle","Style for P-TDR");
// For the canvas:
tdrStyle->SetCanvasBorderMode(0);
tdrStyle->SetCanvasColor(kWhite);
tdrStyle->SetCanvasDefH(600); //Height of canvas
tdrStyle->SetCanvasDefW(600); //Width of canvas
tdrStyle->SetCanvasDefX(0); //POsition on screen
tdrStyle->SetCanvasDefY(0);
// For the Pad:
tdrStyle->SetPadBorderMode(0);
tdrStyle->SetPadColor(kWhite);
tdrStyle->SetPadGridX(false);
tdrStyle->SetPadGridY(false);
tdrStyle->SetGridColor(0);
tdrStyle->SetGridStyle(3);
tdrStyle->SetGridWidth(1);
// For the frame:
tdrStyle->SetFrameBorderMode(0);
tdrStyle->SetFrameBorderSize(1);
tdrStyle->SetFrameFillColor(0);
tdrStyle->SetFrameFillStyle(0);
tdrStyle->SetFrameLineColor(1);
tdrStyle->SetFrameLineStyle(1);
tdrStyle->SetFrameLineWidth(1);
tdrStyle->SetPadTopMargin(0.05);
tdrStyle->SetPadBottomMargin(0.13);
tdrStyle->SetPadLeftMargin(0.16);
tdrStyle->SetPadRightMargin(0.02);
// For the Global title:
tdrStyle->SetOptTitle(0);
tdrStyle->SetTitleFont(42);
tdrStyle->SetTitleColor(1);
tdrStyle->SetTitleTextColor(1);
tdrStyle->SetTitleFillColor(10);
tdrStyle->SetTitleFontSize(0.05);
// For the axis titles:
tdrStyle->SetTitleColor(1, "XYZ");
tdrStyle->SetTitleFont(42, "XYZ");
tdrStyle->SetTitleSize(0.06, "XYZ");
tdrStyle->SetTitleXOffset(0.9);
tdrStyle->SetTitleYOffset(0.9);
// For the axis labels:
tdrStyle->SetLabelColor(1, "XYZ");
tdrStyle->SetLabelFont(42, "XYZ");
tdrStyle->SetLabelOffset(0.007, "XYZ");
tdrStyle->SetLabelSize(0.05, "XYZ");
// For the axis:
tdrStyle->SetAxisColor(1, "XYZ");
//tdrStyle->SetStripDecimals(kTRUE);
tdrStyle->SetTickLength(0.03, "XYZ");
tdrStyle->SetNdivisions(510, "XYZ");
tdrStyle->SetPadTickX(1); // To get tick marks on the opposite side of the frame
tdrStyle->SetPadTickY(1);
tdrStyle->SetPaperSize(20.,20.);
tdrStyle->SetHatchesLineWidth(5);
tdrStyle->SetHatchesSpacing(0.05);
tdrStyle->SetOptStat(0);
tdrStyle->cd();
}