DSTUtil::RootUtil Namespace Reference


Functions

void settitle (TH2F *th2, string tx, string ty, float xoff, float yoff)
void DrawHist (TCanvas *&c1, TH2 *th2, string opt, string outf)
void DrawHist (TCanvas *&c1, TH1 *th1, string opt, string outf)
TCanvas * SetCanvas ()
void settitle (TH2F *th2, std::string tx, std::string ty, float xoff, float yoff)
void DrawHist (TCanvas *&c1, TH2 *th2, std::string opt, std::string outf)
void DrawHist (TCanvas *&c1, TH1 *th1, std::string opt, std::string outf)


Function Documentation

void DSTUtil::RootUtil::settitle ( TH2F *  th2,
string  tx,
string  ty,
float  xoff,
float  yoff 
)

Definition at line 1835 of file DSTUtil.cxx.

Referenced by DrawMeans().

01835                                                                                      {
01836   th2->GetXaxis()->SetTitle(tx.c_str());
01837   th2->GetXaxis()->SetTitleOffset(xoff);
01838   th2->GetYaxis()->SetTitle(ty.c_str());
01839   th2->GetYaxis()->SetTitleOffset(yoff);
01840 }

void DSTUtil::RootUtil::DrawHist ( TCanvas *&  c1,
TH2 *  th2,
string  opt,
string  outf 
)

Definition at line 1842 of file DSTUtil.cxx.

Referenced by DoOnePlane(), DrawDataHists(), DrawMeans(), make_talk(), and WritePriors().

01842                                                                               {
01843   th2->Draw(opt.c_str()); c1->Print(outf.c_str()); c1->Clear();
01844 }

void DSTUtil::RootUtil::DrawHist ( TCanvas *&  c1,
TH1 *  th1,
string  opt,
string  outf 
)

Definition at line 1846 of file DSTUtil.cxx.

01846                                                                               {
01847   th1->Draw(opt.c_str()); c1->Print(outf.c_str()); c1->Clear();
01848 }

TCanvas * DSTUtil::RootUtil::SetCanvas (  ) 

Definition at line 1850 of file DSTUtil.cxx.

References c1.

Referenced by AnalyzeLike(), and main().

01850                                    {
01851   //select output type
01852   //  int type = 111; //portrait ps
01853   //112=landscape, 113=eps
01854   // create a Postscript file and set the paper size
01855   //draw all
01856   gStyle->SetOptStat(1111111);
01857   gStyle->SetOptFit(1111);
01858   gStyle->SetPalette(1);
01859   TCanvas* c1 = new TCanvas("c1","Canvas",750,1000);
01860   return c1;
01861   //
01862 }

void DSTUtil::RootUtil::settitle ( TH2F *  th2,
std::string  tx,
std::string  ty,
float  xoff,
float  yoff 
)

void DSTUtil::RootUtil::DrawHist ( TCanvas *&  c1,
TH2 *  th2,
std::string  opt,
std::string  outf 
)

void DSTUtil::RootUtil::DrawHist ( TCanvas *&  c1,
TH1 *  th1,
std::string  opt,
std::string  outf 
)


Generated on Mon Nov 23 08:05:25 2009 for MIPP(E907) by  doxygen 1.4.7