CbmRoot
Loading...
Searching...
No Matches
PairAnalysisStyler Namespace Reference

Enumerations

enum class  Eidx {
  kRaw = 100 , kBgrd , kSig , kFit ,
  kCocktail , kNidx
}
 
enum class  Epalette { kDefault = 0 , kGoodBad }
 
enum class  EfillMark { kOpenMarker = 1 , kFullMarker , kDontCare }
 
enum class  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=Epalette::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 [static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)]
 
static Int_t fMrk [static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)]
 
static Double_t fSze [static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)] = {1., 1., 1., 1., 1.}
 
static Int_t fLne [static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)] = {kSolid, kSolid, kSolid, kSolid, kSolid}
 
static Double_t fWdt [static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)] = {2., 2., 2., 2., 2.}
 
static Int_t fFll [static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::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

enum class PairAnalysisStyler::EfillMark
strong
Enumerator
kOpenMarker 
kFullMarker 
kDontCare 

Definition at line 44 of file PairAnalysisStyler.h.

◆ Eidx

enum class PairAnalysisStyler::Eidx
strong
Enumerator
kRaw 
kBgrd 
kSig 
kFit 
kCocktail 
kNidx 

Definition at line 30 of file PairAnalysisStyler.h.

◆ Epalette

enum class PairAnalysisStyler::Epalette
strong
Enumerator
kDefault 
kGoodBad 

Definition at line 39 of file PairAnalysisStyler.h.

◆ Estyle

enum class PairAnalysisStyler::Estyle
strong
Enumerator
kNMaxMarker 
kNMaxLine 
kNMaxColor 

Definition at line 50 of file PairAnalysisStyler.h.

Function Documentation

◆ GetFirstHistogram()

TH1 * PairAnalysisStyler::GetFirstHistogram ( )

Definition at line 605 of file PairAnalysisStyler.cxx.

References Error.

Referenced by PairAnalysisHelper::SetPDGBinLabels().

◆ GetLegendEntry()

TLegendEntry * PairAnalysisStyler::GetLegendEntry ( Int_t idx)

Definition at line 627 of file PairAnalysisStyler.cxx.

References Error.

◆ LoadStyle()

void PairAnalysisStyler::LoadStyle ( )

◆ SetForceColor()

void PairAnalysisStyler::SetForceColor ( Int_t color = kBlack)

Definition at line 368 of file PairAnalysisStyler.cxx.

◆ SetForceFillStyle()

void PairAnalysisStyler::SetForceFillStyle ( Int_t fill = kFSolid)

Definition at line 379 of file PairAnalysisStyler.cxx.

◆ SetForceLineStyle()

void PairAnalysisStyler::SetForceLineStyle ( Int_t line = kSolid)

Definition at line 357 of file PairAnalysisStyler.cxx.

◆ SetForceMarkerFillStyle()

void PairAnalysisStyler::SetForceMarkerFillStyle ( EfillMark fill)

Definition at line 391 of file PairAnalysisStyler.cxx.

◆ SetLegendAlign()

void PairAnalysisStyler::SetLegendAlign ( UInt_t align)

Definition at line 463 of file PairAnalysisStyler.cxx.

◆ SetLegendAttributes()

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

Definition at line 466 of file PairAnalysisStyler.cxx.

Referenced by PairAnalysisSignalExt::Draw().

◆ SetPalette()

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

Definition at line 569 of file PairAnalysisStyler.cxx.

◆ 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 447 of file PairAnalysisStyler.cxx.

References size().

◆ SetStyle() [2/2]

void PairAnalysisStyler::SetStyle ( TStyle * userStyle)

Definition at line 40 of file PairAnalysisStyler.cxx.

References LoadStyle().

◆ Style()

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

Definition at line 261 of file PairAnalysisStyler.cxx.

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 56 of file PairAnalysisStyleDefs.h.

◆ fCol

Int_t PairAnalysisStyler::fCol[static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)]
static
Initial value:
= {kBlack, kTeal - 8, kBlack, kTeal - 7,
kTeal - 7}

Definition at line 34 of file PairAnalysisStyleDefs.h.

◆ fFll

Int_t PairAnalysisStyler::fFll[static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)] = {0, 0, 0, 0, 0}
static

Definition at line 46 of file PairAnalysisStyleDefs.h.

◆ Fill

Int_t PairAnalysisStyler::Fill[] = {-1}
static

Definition at line 60 of file PairAnalysisStyleDefs.h.

◆ fLegAlign

UInt_t PairAnalysisStyler::fLegAlign = 22
static

Definition at line 62 of file PairAnalysisStyleDefs.h.

◆ fLne

Int_t PairAnalysisStyler::fLne[static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)] = {kSolid, kSolid, kSolid, kSolid, kSolid}
static

Definition at line 42 of file PairAnalysisStyleDefs.h.

◆ fMrk

Int_t PairAnalysisStyler::fMrk[static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)]
static
Initial value:
= {kFullCircle, kOpenCircle, kOpenCircle,
kDot, kDot}

Definition at line 37 of file PairAnalysisStyleDefs.h.

◆ fSze

Double_t PairAnalysisStyler::fSze[static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)] = {1., 1., 1., 1., 1.}
static

Definition at line 40 of file PairAnalysisStyleDefs.h.

◆ fUserDielStyle

TStyle* PairAnalysisStyler::fUserDielStyle = nullptr
static

Definition at line 64 of file PairAnalysisStyleDefs.h.

◆ fWdt

Double_t PairAnalysisStyler::fWdt[static_cast< Int_t >(PairAnalysisStyler::Eidx::kNidx) - static_cast< Int_t >(PairAnalysisStyler::Eidx::kRaw)] = {2., 2., 2., 2., 2.}
static

Definition at line 44 of file PairAnalysisStyleDefs.h.

◆ Line

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

Definition at line 52 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 49 of file PairAnalysisStyleDefs.h.