CbmRoot
PairAnalysisStyler Namespace Reference

Enumerations

enum  Eidx {
  kRaw = 100, kBgrd, kSig, kFit,
  kCocktail, kNidx
}
 
enum  Epalette { kDefault = 0, kGoodBad }
 
enum  EfillMark { kOpenMarker = 1, kFullMarker, kDontCare }
 
enum  Estyle { kNMaxMarker = 13, kNMaxLine = 4, kNMaxColor = 17 }
 

Functions

void SetStyle (TStyle *userStyle)
 
void SetStyle (Eidx idx, Int_t col=kBlack, Int_t marker=kOpenCircle, Double_t size=1.5, Int_t line=kSolid, Double_t width=2., Int_t fill=kFEmpty)
 
void LoadStyle ()
 
void Style (TObject *obj, Int_t idx=0)
 
void SetForceLineStyle (Int_t line=kSolid)
 
void SetForceColor (Int_t color=kBlack)
 
void SetForceFillStyle (Int_t fill=kFSolid)
 
void SetForceMarkerFillStyle (EfillMark fill)
 
void SetPalette (Epalette colors=kDefault, Bool_t reverse=kFALSE)
 
void SetLegendAlign (UInt_t align)
 
void SetLegendAttributes (TLegend *leg, Bool_t fill=kFALSE)
 
TH1 * GetFirstHistogram ()
 
TLegendEntry * GetLegendEntry (Int_t idx)
 

Variables

static Int_t fCol [kNidx - kRaw]
 
static Int_t fMrk [kNidx - kRaw]
 
static Double_t fSze [kNidx - kRaw] = {1., 1., 1., 1., 1.}
 
static Int_t fLne [kNidx - kRaw] = {kSolid, kSolid, kSolid, kSolid, kSolid}
 
static Double_t fWdt [kNidx - kRaw] = {2., 2., 2., 2., 2.}
 
static Int_t fFll [kNidx - kRaw] = {0, 0, 0, 0, 0}
 
static Int_t Marker []
 
static Int_t Line []
 
static Int_t Color []
 
static Int_t Fill [] = {-1}
 
static UInt_t fLegAlign = 22
 
static TStyle * fUserDielStyle = nullptr
 

Enumeration Type Documentation

◆ EfillMark

Enumerator
kOpenMarker 
kFullMarker 
kDontCare 

Definition at line 27 of file PairAnalysisStyler.h.

◆ Eidx

Enumerator
kRaw 
kBgrd 
kSig 
kFit 
kCocktail 
kNidx 

Definition at line 25 of file PairAnalysisStyler.h.

◆ Epalette

Enumerator
kDefault 
kGoodBad 

Definition at line 26 of file PairAnalysisStyler.h.

◆ Estyle

Enumerator
kNMaxMarker 
kNMaxLine 
kNMaxColor 

Definition at line 28 of file PairAnalysisStyler.h.

Function Documentation

◆ GetFirstHistogram()

TH1 * PairAnalysisStyler::GetFirstHistogram ( )

Definition at line 605 of file PairAnalysisStyler.cxx.

Referenced by PairAnalysisHelper::SetPDGBinLabels().

◆ GetLegendEntry()

TLegendEntry * PairAnalysisStyler::GetLegendEntry ( Int_t  idx)

Definition at line 630 of file PairAnalysisStyler.cxx.

◆ LoadStyle()

void PairAnalysisStyler::LoadStyle ( )

◆ SetForceColor()

void PairAnalysisStyler::SetForceColor ( Int_t  color = kBlack)

Definition at line 367 of file PairAnalysisStyler.cxx.

References Color, i, and kNMaxColor.

◆ SetForceFillStyle()

void PairAnalysisStyler::SetForceFillStyle ( Int_t  fill = kFSolid)

Definition at line 377 of file PairAnalysisStyler.cxx.

References fFll, Fill, i, kNidx, and kRaw.

◆ SetForceLineStyle()

void PairAnalysisStyler::SetForceLineStyle ( Int_t  line = kSolid)

Definition at line 357 of file PairAnalysisStyler.cxx.

References i, and kNMaxLine.

◆ SetForceMarkerFillStyle()

void PairAnalysisStyler::SetForceMarkerFillStyle ( EfillMark  fill)

Definition at line 388 of file PairAnalysisStyler.cxx.

References i, kFullMarker, kNMaxMarker, kOpenMarker, and Marker.

◆ SetLegendAlign()

void PairAnalysisStyler::SetLegendAlign ( UInt_t  align)

Definition at line 463 of file PairAnalysisStyler.cxx.

References fLegAlign.

◆ SetLegendAttributes()

void PairAnalysisStyler::SetLegendAttributes ( TLegend *  leg,
Bool_t  fill = kFALSE 
)

Definition at line 466 of file PairAnalysisStyler.cxx.

References fLegAlign.

Referenced by PairAnalysisSignalExt::Draw().

◆ SetPalette()

void PairAnalysisStyler::SetPalette ( Epalette  colors = kDefault,
Bool_t  reverse = kFALSE 
)

Definition at line 568 of file PairAnalysisStyler.cxx.

References kDefault, and kGoodBad.

Referenced by CbmPointSetArray::ApplyColorMode().

◆ SetStyle() [1/2]

void PairAnalysisStyler::SetStyle ( Eidx  idx,
Int_t  col = kBlack,
Int_t  marker = kOpenCircle,
Double_t  size = 1.5,
Int_t  line = kSolid,
Double_t  width = 2.,
Int_t  fill = kFEmpty 
)

Definition at line 443 of file PairAnalysisStyler.cxx.

References fCol, fFll, fLne, fMrk, fSze, fWdt, and kRaw.

◆ SetStyle() [2/2]

void PairAnalysisStyler::SetStyle ( TStyle *  userStyle)

Definition at line 40 of file PairAnalysisStyler.cxx.

References fUserDielStyle, and LoadStyle().

◆ Style()

void PairAnalysisStyler::Style ( TObject *  obj,
Int_t  idx = 0 
)

Definition at line 262 of file PairAnalysisStyler.cxx.

References Color, fCol, fFll, Fill, fLne, fMrk, fSze, fWdt, kNMaxColor, kNMaxLine, kNMaxMarker, kRaw, and Marker.

Referenced by PairAnalysisSignalExt::Draw().

Variable Documentation

◆ Color

Int_t PairAnalysisStyler::Color[]
static
Initial value:
= {kRed - 4,
kBlue - 4,
kBlack,
kGreen + 1,
kAzure + 1,
kOrange + 2,
kSpring + 4,
kViolet + 1,
kOrange,
kGray + 1,
kRed + 2,
kCyan + 1,
kGreen + 3,
kBlue + 1,
kMagenta + 1,
kOrange - 6,
kCyan - 2}

Definition at line 64 of file PairAnalysisStyleDefs.h.

Referenced by SetForceColor(), and Style().

◆ fCol

Int_t PairAnalysisStyler::fCol[kNidx - kRaw]
static
Initial value:
= {kBlack,
kTeal - 8,
kBlack,
kTeal - 7,
kTeal - 7}

Definition at line 29 of file PairAnalysisStyleDefs.h.

Referenced by SetStyle(), and Style().

◆ fFll

Int_t PairAnalysisStyler::fFll[kNidx - kRaw] = {0, 0, 0, 0, 0}
static

Definition at line 42 of file PairAnalysisStyleDefs.h.

Referenced by SetForceFillStyle(), SetStyle(), and Style().

◆ Fill

◆ fLegAlign

UInt_t PairAnalysisStyler::fLegAlign = 22
static

Definition at line 84 of file PairAnalysisStyleDefs.h.

Referenced by SetLegendAlign(), and SetLegendAttributes().

◆ fLne

Int_t PairAnalysisStyler::fLne[kNidx - kRaw] = {kSolid, kSolid, kSolid, kSolid, kSolid}
static

Definition at line 40 of file PairAnalysisStyleDefs.h.

Referenced by SetStyle(), and Style().

◆ fMrk

Int_t PairAnalysisStyler::fMrk[kNidx - kRaw]
static
Initial value:
= {kFullCircle,
kOpenCircle,
kOpenCircle,
kDot,
kDot}

Definition at line 34 of file PairAnalysisStyleDefs.h.

Referenced by SetStyle(), and Style().

◆ fSze

Double_t PairAnalysisStyler::fSze[kNidx - kRaw] = {1., 1., 1., 1., 1.}
static

Definition at line 39 of file PairAnalysisStyleDefs.h.

Referenced by SetStyle(), and Style().

◆ fUserDielStyle

TStyle* PairAnalysisStyler::fUserDielStyle = nullptr
static

Definition at line 86 of file PairAnalysisStyleDefs.h.

Referenced by LoadStyle(), and SetStyle().

◆ fWdt

Double_t PairAnalysisStyler::fWdt[kNidx - kRaw] = {2., 2., 2., 2., 2.}
static

Definition at line 41 of file PairAnalysisStyleDefs.h.

Referenced by SetStyle(), and Style().

◆ Line

Int_t PairAnalysisStyler::Line[]
static
Initial value:
= {kSolid,
kDashed,
kDotted,
kDashDotted}

Definition at line 58 of file PairAnalysisStyleDefs.h.

◆ Marker

Int_t PairAnalysisStyler::Marker[]
static
Initial value:
= {kFullCircle,
kFullDiamond,
kFullSquare,
kFullCross,
kFullStar,
kMultiply,
kPlus,
kStar,
kOpenCircle,
kOpenDiamond,
kOpenSquare,
kOpenCross,
kOpenStar}

Definition at line 44 of file PairAnalysisStyleDefs.h.

Referenced by SetForceMarkerFillStyle(), and Style().