A++ » INCLUDE » TRatioPlot

class TRatioPlot: public TObject


ROOT_TRatioPlot

A collection of histograms


Function Members (Methods)

public:
virtual~TRatioPlot()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidBrowse(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 voidDraw(Option_t* chopt = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
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
TGraph*GetCalculationOutputGraph() const
TGraphErrors*GetConfidenceInterval1() const
TGraphErrors*GetConfidenceInterval2() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
TPad*GetLowerPad() const
virtual TGraph*GetLowerRefGraph() const
TAxis*GetLowerRefXaxis() const
TAxis*GetLowerRefYaxis() const
TAxis*GetLowYaxis() 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
Float_tGetSeparationMargin() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
TPad*GetUpperPad() const
virtual TObject*GetUpperRefObject() const
TAxis*GetUpperRefXaxis() const
TAxis*GetUpperRefYaxis() const
TAxis*GetUpYaxis() const
TAxis*GetXaxis() 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
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
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)
virtual voidPaint(Option_t* opt = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
voidRangeAxisChanged()
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)
voidSetC1(Double_t c1)
voidSetC2(Double_t c2)
voidSetConfidenceIntervalColors(Color_t ci1 = kGreen, Color_t ci2 = kYellow)
voidSetConfidenceLevels(Double_t cl1, Double_t cl2)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetFitDrawOpt(Option_t* opt)
voidSetFitResult(TFitResultPtr fitres)
voidSetGraphDrawOpt(Option_t* opt)
virtual voidSetGridlines(vector<double> gridlines)
virtual voidSetGridlines(Double_t* gridlines, Int_t numGridlines)
voidSetH1DrawOpt(Option_t* opt)
voidSetH2DrawOpt(Option_t* opt)
voidSetInsetWidth(Double_t width)
voidSetLeftMargin(Float_t margin)
voidSetLowBottomMargin(Float_t margin)
voidSetLowTopMargin(Float_t margin)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetRightMargin(Float_t margin)
voidSetSeparationMargin(Float_t)
voidSetSplitFraction(Float_t sf)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetUpBottomMargin(Float_t margin)
voidSetUpTopMargin(Float_t margin)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidSubPadResized()
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
TRatioPlot()
TRatioPlot(TH1* h1, TH1* h2, Option_t* option = "pois")
TRatioPlot(THStack* st, TH1* h2, Option_t* option = "pois")
TRatioPlot(TH1* h1, Option_t* option = "", TFitResult* fitres = 0)
voidUnZoomed()
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:
voidBuildLowerPlot()
voidCreateGridline()
virtual voidCreateVisualAxes()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidImportAxisAttributes(TGaxis* gaxis, TAxis* axis)
virtual voidInit(TH1* h1, TH1* h2, Option_t* option = "")
Bool_tIsDrawn()
voidTObject::MakeZombie()
voidSetPadMargins()
virtual voidSetupPads()
virtual voidSyncAxesRanges()
virtual Bool_tSyncPadMargins()
private:
TRatioPlot&operator=(const TRatioPlot&)
TRatioPlot(const TRatioPlot& hrp)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
Double_tfC1Stores the scale factor for h1 (or THStack sum)
Double_tfC2Stores the scale factor for h2
Color_tfCi1ColorStores the color for the 1 sigma band
Color_tfCi2ColorStores the color for the 2 sigma band
Double_tfCl1Stores the confidence level for the inner confidence interval band
Double_tfCl2Stores the confidence level for the outer confidence interval band
TGraphErrors*fConfidenceInterval1Stores the graph for the 1 sigma band
TGraphErrors*fConfidenceInterval2Stores the graph for the 2 sigma band
Int_tfErrorModeStores the error mode, sym, asym or func
TStringfFitDrawOptStores draw option for the fit function in the fit residual case
TFitResult*fFitResultStores the explicit fit result given in the fit residual case. Can be 0
TStringfGraphDrawOptStores draw option for the lower plot graph given in constructor
vector<double>fGridlinePositionsStores the y positions for the gridlines
vector<TLine*>fGridlinesKeeps TLine objects for the gridlines
TH1*fH1Stores the primary histogram
TStringfH1DrawOptStores draw option for h1 given in constructor
TH1*fH2Stores the secondary histogram, if there is one
TStringfH2DrawOptStores draw option for h2 given in constructor
Int_tfHideLabelModeStores which label to hide if the margin is to narrow, if at all
TObject*fHistDrawProxyThe object which is actually drawn, this might be TH1 or THStack
Float_tfInsetWidth
Bool_tfIsPadUpdatingKeeps track whether pads are updating during resizing
Bool_tfIsUpdatingKeeps track of whether its currently updating to reject other calls until done
Float_tfLeftMarginStores the common left margin of both pads
Float_tfLowBottomMarginStores the bottom margin of the lower pad
Float_tfLowTopMarginStores the top margin of the lower pad
TAxis*fLowYaxisClone of the lower y axis
TGaxis*fLowerGXaxisLower graphical x axis
TGaxis*fLowerGXaxisMirrorLower mirror of the x axis
TGaxis*fLowerGYaxisLower graphical y axis
TGaxis*fLowerGYaxisMirrorLower mirror of the y axis
TPad*fLowerPadThe pad which contains the calculated lower plot part
Int_tfModeStores which calculation is supposed to be performed as specified by user option
TStringfOptionStores the option which is given in the constructor as a string
TVirtualPad*fParentPadStores the pad the ratio plot was created in
TGraph*fRatioGraphStores the lower plot's graph
Float_tfRightMarginStores the common right margin of both pads
TAxis*fSharedXAxisX axis that stores the range for both plots
Bool_tfShowConfidenceIntervalsStores whether to show the confidence interval bands. From Draw option
Bool_tfShowGridlinesStores whether to show the gridlines at all
Float_tfSplitFractionStores the fraction at which the upper and lower pads meet
TPad*fTopPadThe Pad that drawn on top on the others to have consistent coordinates
Float_tfUpBottomMarginStores the bottom margin of the upper pad
Float_tfUpTopMarginStores the top margin of the upper pad
TAxis*fUpYaxisClone of the upper y axis
TGaxis*fUpperGXaxisUpper graphical x axis
TGaxis*fUpperGXaxisMirrorUpper mirror of the x axis
TGaxis*fUpperGYaxisUpper graphical y axis
TGaxis*fUpperGYaxisMirrorUpper mirror of the y axis
TPad*fUpperPadThe pad which contains the upper plot part
private:
static TRatioPlot::CalculationModekDifference
static TRatioPlot::CalculationModekDifferenceSign
static TRatioPlot::CalculationModekDivideGraph
static TRatioPlot::CalculationModekDivideHist
static TRatioPlot::ErrorModekErrorAsymmetric
static TRatioPlot::ErrorModekErrorFunc
static TRatioPlot::ErrorModekErrorSymmetric
static TRatioPlot::CalculationModekFitResidual
static TRatioPlot::HideLabelModekForceHideLow
static TRatioPlot::HideLabelModekForceHideUp
static TRatioPlot::HideLabelModekHideLow
static TRatioPlot::HideLabelModekHideUp
static TRatioPlot::HideLabelModekNoHide

Class Charts

Inheritance Chart:
TObject
TRatioPlot

Function documentation

TRatioPlot& operator=(const TRatioPlot& )
TRatioPlot(const TRatioPlot& hrp)
void SyncAxesRanges()
void SetupPads()
void CreateVisualAxes()
Bool_t SyncPadMargins()
void SetPadMargins()
void CreateGridline()
void BuildLowerPlot()
void ImportAxisAttributes(TGaxis* gaxis, TAxis* axis)
Bool_t IsDrawn()
void Init(TH1* h1, TH1* h2, Option_t* option = "")
TRatioPlot()
virtual ~TRatioPlot()
TRatioPlot(TH1* h1, TH1* h2, Option_t* option = "pois")
TRatioPlot(THStack* st, TH1* h2, Option_t* option = "pois")
TRatioPlot(TH1* h1, Option_t* option = "", TFitResult* fitres = 0)
void SetH1DrawOpt(Option_t* opt)
void SetH2DrawOpt(Option_t* opt)
void SetGraphDrawOpt(Option_t* opt)
void SetFitDrawOpt(Option_t* opt)
void SetInsetWidth(Double_t width)
void Draw(Option_t* chopt = "")
void Browse(TBrowser* b)
void Paint(Option_t* opt = "")
void UnZoomed()
 Slots for signal receiving
void RangeAxisChanged()
void SubPadResized()
TAxis * GetXaxis() const
 Getters
{ return fSharedXAxis; }
TAxis * GetUpYaxis() const
{ return fUpYaxis; }
TAxis * GetLowYaxis() const
{ return fLowYaxis; }
TGraph * GetLowerRefGraph() const
TAxis * GetLowerRefXaxis() const
 Shortcut for:

 ~~~{.cpp}
 rp->GetLowerRefGraph()->GetXaxis();
 ~~~
{ return GetLowerRefGraph()->GetXaxis(); }
TAxis * GetLowerRefYaxis() const
 Shortcut for:

 ~~~{.cpp}
 rp->GetLowerRefGraph()->GetYaxis();
 ~~~
{ return GetLowerRefGraph()->GetYaxis(); }
TObject * GetUpperRefObject() const
TAxis * GetUpperRefXaxis() const
TAxis * GetUpperRefYaxis() const
TGraph * GetCalculationOutputGraph() const
 Get the output of the calculation in the form of a graph. The type of
 the return value depends on the input option that was given in the constructor.
{ return fRatioGraph; }
TGraphErrors * GetConfidenceInterval1() const
 Returns the graph for the 1 sigma confidence interval in the fit residual case
TGraphErrors * GetConfidenceInterval2() const
 Returns the graph for the 2 sigma confidence interval in the fit residual case
TPad * GetUpperPad() const
{ return fUpperPad; }
TPad * GetLowerPad() const
{ return fLowerPad; }
void SetFitResult(TFitResultPtr fitres)
 Setters

 Explicitly specify the fit result that is to be used for fit residual calculation.
 If it is not provided, the last fit registered in the global fitter is used.
 The fit result can also be specified in the constructor.

 \param fitres The fit result coming from the fit function call
{ fFitResult = fitres.Get(); }
void SetUpTopMargin(Float_t margin)
 Setters for margins
void SetUpBottomMargin(Float_t margin)
void SetLowTopMargin(Float_t margin)
void SetLowBottomMargin(Float_t margin)
void SetLeftMargin(Float_t margin)
void SetRightMargin(Float_t margin)
void SetSeparationMargin(Float_t )
Float_t GetSeparationMargin() const
void SetSplitFraction(Float_t sf)
void SetConfidenceLevels(Double_t cl1, Double_t cl2)
void SetGridlines(Double_t* gridlines, Int_t numGridlines)
void SetGridlines(vector<double> gridlines)
void SetConfidenceIntervalColors(Color_t ci1 = kGreen, Color_t ci2 = kYellow)
void SetC1(Double_t c1)
{ fC1 = c1; }
void SetC2(Double_t c2)
{ fC2 = c2; }