Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::FemtoCFPainter Class Referenceabstract

#include <FemtoCFPainter.h>

Inheritance diagram for Hal::FemtoCFPainter:
Hal::Painter Hal::Femto1DCFPainter Hal::Femto3DCFPainter Hal::FemtoSHCFPainter

Public Member Functions

std::pair< Double_t, Double_t > GetMinMax (Int_t x=0, Int_t y=0) const
 
virtual void Rescale (Double_t newScale)
 
virtual TString GetOptionForCorrFit () const
 
- 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)
 
TH1 * CloneHist (TH1 *) const
 
void DeleteHistograms ()
 
virtual void MakeHistograms ()=0
 
virtual void ScaleHistograms ()
 
virtual void DrawHistograms ()
 
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)
 
virtual void MakePadsAndCanvases ()=0
 
void CleanCommonData ()
 
PainterGetAncestor () const
 

Protected Attributes

Double_t fRangeX [2] = {0, 0}
 
Double_t fRangeY [2] = {0, 0}
 
Double_t fScale = {1.0}
 
Double_t fDrawScale = {1.0}
 
TString fDefDrawFlag = "SAME+P"
 
std::vector< std::vector< TH1 * > > fHistograms
 
- Protected Attributes inherited from Hal::Painter
Bool_t fOptionsChanged = {kFALSE}
 

Static Protected Attributes

static const int kNumBit = 8
 
static const int kDenBit = 9
 
static const int kCFBit = 10
 
static const int kHideTitles = 11
 
- Static Protected Attributes inherited from Hal::Painter
static const int kHtmlBit = 0
 
static const int kGridBit = 1
 

Friends

class CorrFitPainter
 

Detailed Description

base class for drawing correlation functions to check available option of drawing look

See also
Hal::FemtoSHCFPainter::SetOptionInternal
Hal::Femto1DCFPainter::SetOptionInternal
Hal::Femto3DCFPainter::SetOptionInternal

Definition at line 25 of file FemtoCFPainter.h.

Constructor & Destructor Documentation

◆ FemtoCFPainter()

Hal::FemtoCFPainter::FemtoCFPainter ( )
inline

Definition at line 55 of file FemtoCFPainter.h.

◆ ~FemtoCFPainter()

Hal::FemtoCFPainter::~FemtoCFPainter ( )
virtual

Definition at line 61 of file FemtoCFPainter.cxx.

Member Function Documentation

◆ AreSimiliar()

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

Definition at line 104 of file FemtoCFPainter.cxx.

◆ CloneHist()

TH1 * Hal::FemtoCFPainter::CloneHist ( TH1 * h) const
protected

Definition at line 87 of file FemtoCFPainter.cxx.

◆ DeleteHistograms()

void Hal::FemtoCFPainter::DeleteHistograms ( )
protected

Definition at line 23 of file FemtoCFPainter.cxx.

◆ DrawHistograms()

void Hal::FemtoCFPainter::DrawHistograms ( )
protectedvirtual

Definition at line 45 of file FemtoCFPainter.cxx.

◆ GetMinMax()

std::pair< Double_t, Double_t > Hal::FemtoCFPainter::GetMinMax ( Int_t x = 0,
Int_t y = 0 ) const
Parameters
x
y
Returns
min and max value of draw histogram x, y, if no histogram was drawn or x/y are too big returns 0,0

Definition at line 132 of file FemtoCFPainter.cxx.

◆ GetOptionForCorrFit()

virtual TString Hal::FemtoCFPainter::GetOptionForCorrFit ( ) const
inlinevirtual
Returns
option for drawing corrfit

Reimplemented in Hal::Femto3DCFPainter, and Hal::FemtoSHCFPainter.

Definition at line 69 of file FemtoCFPainter.h.

◆ InnerPaint()

void Hal::FemtoCFPainter::InnerPaint ( )
protectedvirtual

inner method for pain - without checking ownership

Reimplemented from Hal::Painter.

Definition at line 63 of file FemtoCFPainter.cxx.

◆ InnerRepaint()

void Hal::FemtoCFPainter::InnerRepaint ( )
protectedvirtual

inner method for repaint - without checking ownership

Reimplemented from Hal::Painter.

Definition at line 74 of file FemtoCFPainter.cxx.

◆ PrepBitTemplate()

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

Definition at line 96 of file FemtoCFPainter.cxx.

◆ Rescale()

void Hal::FemtoCFPainter::Rescale ( Double_t newScale)
virtual

Definition at line 40 of file FemtoCFPainter.cxx.

◆ ScaleHistograms()

void Hal::FemtoCFPainter::ScaleHistograms ( )
protectedvirtual

Definition at line 32 of file FemtoCFPainter.cxx.

◆ SetOptionInternal()

ULong64_t Hal::FemtoCFPainter::SetOptionInternal ( TString opt,
ULong64_t prev = 0 )
protectedvirtual

used internally

Parameters
optoption of drawing
  • "html" - for drawing in HTML mode NOTE - might not be implemented for all objects
  • "default" - reset flags to default and add additional flags from option
  • "default!" -reset flags to default and ignore rest of the option
  • "keep" - keeps old flags, add only new flags
  • "skip" - ignore this method
  • "grid" - draw grid on all pads
prevthe staring draw flag
Returns
new draw flag

Implements Hal::Painter.

Reimplemented in Hal::Femto3DCFPainter, and Hal::FemtoSHCFPainter.

Definition at line 106 of file FemtoCFPainter.cxx.

Friends And Related Symbol Documentation

◆ CorrFitPainter

friend class CorrFitPainter
friend

Definition at line 26 of file FemtoCFPainter.h.

Member Data Documentation

◆ fDefDrawFlag

TString Hal::FemtoCFPainter::fDefDrawFlag = "SAME+P"
protected

Definition at line 34 of file FemtoCFPainter.h.

◆ fDrawScale

Double_t Hal::FemtoCFPainter::fDrawScale = {1.0}
protected

Definition at line 33 of file FemtoCFPainter.h.

◆ fHistograms

std::vector<std::vector<TH1*> > Hal::FemtoCFPainter::fHistograms
protected

Definition at line 35 of file FemtoCFPainter.h.

◆ fRangeX

Double_t Hal::FemtoCFPainter::fRangeX[2] = {0, 0}
protected

Definition at line 29 of file FemtoCFPainter.h.

◆ fRangeY

Double_t Hal::FemtoCFPainter::fRangeY[2] = {0, 0}
protected

Definition at line 30 of file FemtoCFPainter.h.

◆ fScale

Double_t Hal::FemtoCFPainter::fScale = {1.0}
protected

Definition at line 32 of file FemtoCFPainter.h.

◆ kCFBit

const int Hal::FemtoCFPainter::kCFBit = 10
staticprotected

Definition at line 31 of file FemtoCFPainter.h.

◆ kDenBit

const int Hal::FemtoCFPainter::kDenBit = 9
staticprotected

Definition at line 31 of file FemtoCFPainter.h.

◆ kHideTitles

const int Hal::FemtoCFPainter::kHideTitles = 11
staticprotected

Definition at line 31 of file FemtoCFPainter.h.

◆ kNumBit

const int Hal::FemtoCFPainter::kNumBit = 8
staticprotected

Definition at line 31 of file FemtoCFPainter.h.


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