ROOT logo
HYDRA - THE HADES ANALYSIS PACKAGE » (UNKNOWN) » HRichDrawHist

class HRichDrawHist: public TObject


 $Id: $

*-- Author  : S. Lebedev

_HADES_CLASS_DESCRIPTION


  HRich700DrawHist

  This class contains drawing util functions of RICH.


Function Members (Methods)

public:
HRichDrawHist()
HRichDrawHist(const HRichDrawHist&)
~HRichDrawHist()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
static voidDrawGraph(TGraph* graph, HistScale logx = kLinear, HistScale logy = kLinear, const string& drawOpt = "AC", Int_t color = RichDrawingOptions::Color(0), Int_t lineWidth = RichDrawingOptions::LineWidth(), Int_t lineStyle = RichDrawingOptions::LineStyle(0), Int_t markerSize = RichDrawingOptions::MarkerSize(), Int_t markerStyle = RichDrawingOptions::MarkerStyle(0))
static voidDrawGraph(const vector<TGraph*>& graphs, const vector<string>& graphLabels, HistScale logx = kLinear, HistScale logy = kLinear, Bool_t drawLegend = kTRUE, Double_t x1 = 0.50, Double_t y1 = 0.78, Double_t x2 = 0.99, Double_t y2 = 0.99)
static voidDrawGraph2D(TGraph2D* graph, HistScale logx = kLinear, HistScale logy = kLinear, HistScale logz = kLinear, const string& drawOpt = "colz")
static voidDrawH1(TH1* hist, HistScale logx = kLinear, HistScale logy = kLinear, const string& drawOpt = "", Int_t color = RichDrawingOptions::Color(0), Int_t lineWidth = RichDrawingOptions::LineWidth(), Int_t lineStyle = RichDrawingOptions::LineStyle(0), Int_t markerSize = RichDrawingOptions::MarkerSize(), Int_t markerStyle = RichDrawingOptions::MarkerStyle(0))
static voidDrawH1(const vector<TH1*>& histos, const vector<string>& histLabels, HistScale logx = kLinear, HistScale logy = kLinear, Bool_t drawLegend = kTRUE, Double_t x1 = 0.6, Double_t y1 = 0.99, Double_t x2 = 0.99, Double_t y2 = 0.83, const string& drawOpt = "")
static voidDrawH1andFitGauss(TH1* hist, Bool_t drawResults = kTRUE, Bool_t doScale = kTRUE, Double_t userRangeMin = 0., Double_t userRangeMax = 0.)
static voidDrawH2(TH2* hist, HistScale logx = kLinear, HistScale logy = kLinear, HistScale logz = kLinear, const string& drawOpt = "COLZ")
static voidDrawH2WithProfile(TH2* hist, Bool_t doGaussFit = false, Bool_t drawOnlyMean = false, const string& drawOpt = "COLZ", Int_t profileColor = kBlack, Int_t profileLineWidth = 4)
static TH2D*DrawH3Profile(TH3* h, Bool_t drawMean = true, Bool_t doGaussFit = false, Double_t zUserRangeMin = 0., Double_t zUserRangeMax = 0.)
static voidDrawTextOnPad(const string& text, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
HRichDrawHist&operator=(const HRichDrawHist&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
static voidSetDefaultDrawStyle()
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void SetDefaultDrawStyle()
void DrawH1(TH1* hist, HistScale logx = kLinear, HistScale logy = kLinear, const string& drawOpt = "", Int_t color = RichDrawingOptions::Color(0), Int_t lineWidth = RichDrawingOptions::LineWidth(), Int_t lineStyle = RichDrawingOptions::LineStyle(0), Int_t markerSize = RichDrawingOptions::MarkerSize(), Int_t markerStyle = RichDrawingOptions::MarkerStyle(0))
 Draw 1D histogram.
 hist Pointer to histogram.
 logx Specify logarithmic or linear scale for X axis.
 logy Specify logarithmic or linear scale for Y axis.
 drawOpt Other drawing options (see ROOT documentation for details).
 color Color.
 lineWidth Line width.
 lineStyle Line style (see ROOT documentation for details).
 markerSize Marker size.
 markerStyle Marker style (see ROOT documentation for details).
void DrawH2(TH2* hist, HistScale logx = kLinear, HistScale logy = kLinear, HistScale logz = kLinear, const string& drawOpt = "COLZ")
 Draw 2D histogram.
 logx Specify logarithmic or linear scale for X axis.
 logy Specify logarithmic or linear scale for Y axis.
 logz Specify logarithmic or linear scale for Z axis.
 drawOpt Other drawing options (see ROOT documentation for details).
void DrawH1(const vector<TH1*>& histos, const vector<string>& histLabels, HistScale logx = kLinear, HistScale logy = kLinear, Bool_t drawLegend = kTRUE, Double_t x1 = 0.6, Double_t y1 = 0.99, Double_t x2 = 0.99, Double_t y2 = 0.83, const string& drawOpt = "")
 Draw several TH1 histograms.
 histos Array of histograms.
 histLabels Array of histogram labels.
 logx Specify logarithmic or linear scale for X axis.
 logy Specify logarithmic or linear scale for Y axis.
 drawLegend If true than legend will be drawn.
 x1 X coordinate of legend in current pad.
 y1 Y coordinate of legend in current pad.
 x2 X coordinate of legend in current pad.
 y2 Y coordinate of legend in current pad.
 drawOpt Draw options for TH1->Draw method.
void DrawGraph(TGraph* graph, HistScale logx = kLinear, HistScale logy = kLinear, const string& drawOpt = "AC", Int_t color = RichDrawingOptions::Color(0), Int_t lineWidth = RichDrawingOptions::LineWidth(), Int_t lineStyle = RichDrawingOptions::LineStyle(0), Int_t markerSize = RichDrawingOptions::MarkerSize(), Int_t markerStyle = RichDrawingOptions::MarkerStyle(0))
 graph Pointer to TGraph.
 logx Specify logarithmic or linear scale for X axis.
 logy Specify logarithmic or linear scale for Y axis.
 drawOpt Other drawing options (see ROOT documentation for details).
 color Color.
 lineWidth Line width.
 lineStyle Line style (see ROOT documentation for details).
 markerSize Marker size.
 markerStyle Marker style (see ROOT documentation for details).
void DrawGraph(const vector<TGraph*>& graphs, const vector<string>& graphLabels, HistScale logx = kLinear, HistScale logy = kLinear, Bool_t drawLegend = kTRUE, Double_t x1 = 0.50, Double_t y1 = 0.78, Double_t x2 = 0.99, Double_t y2 = 0.99)
 Draw upto 3 TGraphs. If graph == NULL than graph will not be drawn.
 graphs Vector of TGraphs.
 graphLabels Vector of graph labels.
 logx Specify logarithmic or linear scale for X axis.
 logy Specify logarithmic or linear scale for Y axis.
 drawLegend If true than legend will be drawn.
 x1 X coordinate of legend in current pad.
 y1 Y coordinate of legend in current pad.
 x2 X coordinate of legend in current pad.
 y2 Y coordinate of legend in current pad.
void DrawGraph2D(TGraph2D* graph, HistScale logx = kLinear, HistScale logy = kLinear, HistScale logz = kLinear, const string& drawOpt = "colz")
 Draw 2D graph.
 graph Pointer to TGraph2D.
 logx Specify logarithmic or linear scale for X axis.
 logy Specify logarithmic or linear scale for Y axis.
 logz Specify logarithmic or linear scale for Z axis.
 drawOpt Other drawing options (see ROOT documentation for details).
void DrawTextOnPad(const string& text, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
 Draw text on a current pad. Latex expression can be used.
 text Your text. Latex can be also used.
 x1 X1 coordinate of legend in current pad.
 y1 Y1 coordinate of legend in current pad.
 x2 X2 coordinate of legend in current pad.
 y2 Y2 coordinate of legend in current pad.
void DrawH1andFitGauss(TH1* hist, Bool_t drawResults = kTRUE, Bool_t doScale = kTRUE, Double_t userRangeMin = 0., Double_t userRangeMax = 0.)
 Draw TH1 and fit with gauss. Draw fit results on top of the histogramm.
 hist Histogram to be drawn and fitted.
 drawResults If true - mean/sigma will be drawn.
 doScale If true - histogramm is scaled to Integral 1.
 userRangeMin SetRangeUser minimum.
 userRangeMax SetRangeUser maximum.
void DrawH2WithProfile(TH2* hist, Bool_t doGaussFit = false, Bool_t drawOnlyMean = false, const string& drawOpt = "COLZ", Int_t profileColor = kBlack, Int_t profileLineWidth = 4)
TH2D* DrawH3Profile(TH3* h, Bool_t drawMean = true, Bool_t doGaussFit = false, Double_t zUserRangeMin = 0., Double_t zUserRangeMax = 0.)