Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::CorrFitPainter Class Referenceabstract
Inheritance diagram for Hal::CorrFitPainter:
Hal::Painter Hal::CorrFit1DCFPainter Hal::CorrFit3DCFPainter

Public Member Functions

 CorrFitPainter (CorrFitFunc *func=nullptr)
 
- Public Member Functions inherited from Hal::Painter
Bool_t HasParent () const
 
 Painter (const Painter &other)=delete
 
void AddPainter (Painter *painter)
 
virtual void SetOption (TString option)
 
void Paint ()
 
PainterGetParent () const
 
Painteroperator= (const Painter &other)=delete
 
TCanvas * GetCanvas (Int_t canvasNo=0) const
 
TVirtualPad * GetPad (Int_t index, Int_t canvasNo=0) const
 
void SetGlobalPadStyle (Hal::PadStyle &pad)
 

Protected Member Functions

virtual ULong64_t SetOptionInternal (TString opt, ULong64_t prev=0)
 
virtual void MakePadsAndCanvases ()
 
virtual void UpdateParameters ()=0
 
virtual void MakeFunctions ()=0
 
virtual void ScaleFunctions ()
 
virtual void ScaleHistograms ()
 
virtual void DrawFunctions ()
 
virtual void MakeLegend ()
 
virtual void UpdateLegend ()
 
void DeleteFunctions ()
 
std::vector< TString > GetLegendLabels () const
 
ULong64_t PrepBitTemplate (std::initializer_list< int > temps) const
 
Bool_t AreSimiliar (ULong64_t current, ULong64_t pattern) const
 
virtual void InnerPaint ()
 
virtual void InnerRepaint ()
 
- Protected Member Functions inherited from Hal::Painter
void SetFlag (Int_t bit, Bool_t state)
 
void SetFlagForced (ULong64_t flag)
 
void ResetFewBits (ULong64_t &flag, std::initializer_list< Int_t > bits, Int_t set=-1) const
 
Bool_t OwnGraphic () const
 
Bool_t CheckOpt (Int_t opt) const
 
ULong64_t GetDrawFlags () const
 
virtual void OptionsApplied ()
 
virtual void SetDefaultFlag ()
 
virtual Bool_t CheckPads () const
 
Bool_t CanvasExist (Int_t canvasNo=0) const
 
Bool_t GetPatterns (TString opt, TString flag, std::vector< double > &vals) const
 
void ContitionalPattern (TString &option, TString pattern, ULong64_t &drawOpt, Int_t bit, Bool_t remove=kTRUE) const
 
void LockPad ()
 
void UnlockPad ()
 
Int_t GetPadsNo (Int_t canvasNo=0) const
 
void GotoPad (Int_t no, Int_t canvasNo=0)
 
void MakeCanvasPads (Int_t x=1, Int_t y=1, Int_t canvasNo=0)
 
void UpdateAllPads ()
 
void ClearCanvas (Int_t canvas)
 
void CleanCommonData ()
 
PainterGetAncestor () const
 

Protected Attributes

Int_t fNormIndex = {-1}
 
TLegend * fLegend = {nullptr}
 
TVirtualPad * fLegendPad = {nullptr}
 
TString fDefFuncDrawOpt = "SAME"
 
std::array< Double_t, 4 > fLegendPos = {0.7, 0.95, 0.7, 0.95}
 
std::vector< TLegendEntry * > fLegendEntries
 
std::vector< std::vector< TF1 * > > fFunctions
 
CorrFitFuncfFittedFunc = {nullptr}
 
FemtoCFPainterfCFPainter = {nullptr}
 
- Protected Attributes inherited from Hal::Painter
Bool_t fOptionsChanged = {kFALSE}
 

Static Protected Attributes

static const int kAutoNormBit = 8
 
static const int kLegendBit = 9
 
static const int kChi2 = 10
 
static const int kChi2Short = 11
 
- Static Protected Attributes inherited from Hal::Painter
static const int kHtmlBit = 0
 
static const int kGridBit = 1
 

Detailed Description

Definition at line 33 of file CorrFitPainter.h.

Constructor & Destructor Documentation

◆ CorrFitPainter()

Hal::CorrFitPainter::CorrFitPainter ( CorrFitFunc * func = nullptr)

Definition at line 25 of file CorrFitPainter.cxx.

◆ ~CorrFitPainter()

Hal::CorrFitPainter::~CorrFitPainter ( )
virtual

Definition at line 70 of file CorrFitPainter.cxx.

Member Function Documentation

◆ AreSimiliar()

Bool_t Hal::CorrFitPainter::AreSimiliar ( ULong64_t current,
ULong64_t pattern ) const
protected
Parameters
current
pattern
Returns
true if current have all bits from pattern

Definition at line 118 of file CorrFitPainter.cxx.

◆ DeleteFunctions()

void Hal::CorrFitPainter::DeleteFunctions ( )
protected

Definition at line 38 of file CorrFitPainter.cxx.

◆ DrawFunctions()

void Hal::CorrFitPainter::DrawFunctions ( )
protectedvirtual

Definition at line 98 of file CorrFitPainter.cxx.

◆ GetLegendLabels()

std::vector< TString > Hal::CorrFitPainter::GetLegendLabels ( ) const
protected

Definition at line 146 of file CorrFitPainter.cxx.

◆ InnerPaint()

void Hal::CorrFitPainter::InnerPaint ( )
protectedvirtual

inner method for pain - without checking ownership

Reimplemented from Hal::Painter.

Reimplemented in Hal::CorrFit3DCFPainter.

Definition at line 72 of file CorrFitPainter.cxx.

◆ InnerRepaint()

void Hal::CorrFitPainter::InnerRepaint ( )
protectedvirtual

inner method for repaint - without checking ownership

Reimplemented from Hal::Painter.

Definition at line 88 of file CorrFitPainter.cxx.

◆ MakeLegend()

void Hal::CorrFitPainter::MakeLegend ( )
protectedvirtual

Definition at line 46 of file CorrFitPainter.cxx.

◆ MakePadsAndCanvases()

virtual void Hal::CorrFitPainter::MakePadsAndCanvases ( )
inlineprotectedvirtual

creates pads and canvases, should call generate subpads

Implements Hal::Painter.

Definition at line 56 of file CorrFitPainter.h.

◆ PrepBitTemplate()

ULong64_t Hal::CorrFitPainter::PrepBitTemplate ( std::initializer_list< int > temps) const
protected

Definition at line 110 of file CorrFitPainter.cxx.

◆ ScaleFunctions()

void Hal::CorrFitPainter::ScaleFunctions ( )
protectedvirtual

Definition at line 29 of file CorrFitPainter.cxx.

◆ ScaleHistograms()

void Hal::CorrFitPainter::ScaleHistograms ( )
protectedvirtual

Definition at line 203 of file CorrFitPainter.cxx.

◆ SetOptionInternal()

ULong64_t Hal::CorrFitPainter::SetOptionInternal ( TString opt,
ULong64_t prev = 0 )
protectedvirtual
Parameters
opt,forthis class additional options are available:
  • "chi2" - draw chi2 on legend (including total value of chi2 and NDF)
  • "chi2s " - draw chi2 on legend
  • "legend" - draw legend
prev
Returns

Implements Hal::Painter.

Definition at line 120 of file CorrFitPainter.cxx.

◆ UpdateLegend()

void Hal::CorrFitPainter::UpdateLegend ( )
protectedvirtual

Definition at line 58 of file CorrFitPainter.cxx.

Member Data Documentation

◆ fCFPainter

FemtoCFPainter* Hal::CorrFitPainter::fCFPainter = {nullptr}
protected

Definition at line 54 of file CorrFitPainter.h.

◆ fDefFuncDrawOpt

TString Hal::CorrFitPainter::fDefFuncDrawOpt = "SAME"
protected

Definition at line 38 of file CorrFitPainter.h.

◆ fFittedFunc

CorrFitFunc* Hal::CorrFitPainter::fFittedFunc = {nullptr}
protected

Definition at line 53 of file CorrFitPainter.h.

◆ fFunctions

std::vector<std::vector<TF1*> > Hal::CorrFitPainter::fFunctions
protected

Definition at line 52 of file CorrFitPainter.h.

◆ fLegend

TLegend* Hal::CorrFitPainter::fLegend = {nullptr}
protected

Definition at line 36 of file CorrFitPainter.h.

◆ fLegendEntries

std::vector<TLegendEntry*> Hal::CorrFitPainter::fLegendEntries
protected

Definition at line 40 of file CorrFitPainter.h.

◆ fLegendPad

TVirtualPad* Hal::CorrFitPainter::fLegendPad = {nullptr}
protected

Definition at line 37 of file CorrFitPainter.h.

◆ fLegendPos

std::array<Double_t, 4> Hal::CorrFitPainter::fLegendPos = {0.7, 0.95, 0.7, 0.95}
protected

Definition at line 39 of file CorrFitPainter.h.

◆ fNormIndex

Int_t Hal::CorrFitPainter::fNormIndex = {-1}
protected

Definition at line 35 of file CorrFitPainter.h.

◆ kAutoNormBit

const int Hal::CorrFitPainter::kAutoNormBit = 8
staticprotected

Definition at line 41 of file CorrFitPainter.h.

◆ kChi2

const int Hal::CorrFitPainter::kChi2 = 10
staticprotected

Definition at line 41 of file CorrFitPainter.h.

◆ kChi2Short

const int Hal::CorrFitPainter::kChi2Short = 11
staticprotected

Definition at line 41 of file CorrFitPainter.h.

◆ kLegendBit

const int Hal::CorrFitPainter::kLegendBit = 9
staticprotected

Definition at line 41 of file CorrFitPainter.h.


The documentation for this class was generated from the following files: