CbmRoot
Loading...
Searching...
No Matches
PairAnalysisStyler.h
Go to the documentation of this file.
1/* Copyright (C) 2015-2019 Justus-Liebig-Universitaet Giessen, Giessen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Julian Book [committer] */
4
5#ifndef PAIRANALYSISSTYLER_H
6#define PAIRANALYSISSTYLER_H
8// //
9// PairAnalysis stylers //
10// //
11// //
12// Authors: //
13// Julian Book <Julian.Book@cern.ch> //
14// //
16
17
18#include <Rtypes.h>
19#include <TAttMarker.h>
20#include <TColor.h>
21#include <TH1.h>
22#include <TLegend.h>
23#include <TLegendEntry.h>
24#include <TStyle.h>
25
26
27namespace PairAnalysisStyler
28{
29
30 enum class Eidx
31 {
32 kRaw = 100,
33 kBgrd,
34 kSig,
35 kFit,
37 kNidx
38 };
39 enum class Epalette
40 {
41 kDefault = 0,
43 };
44 enum class EfillMark
45 {
46 kOpenMarker = 1,
49 };
50 enum class Estyle
51 {
52 kNMaxMarker = 13,
53 kNMaxLine = 4,
54 kNMaxColor = 17
55 };
56
57 void SetStyle(TStyle* userStyle);
58
59 void SetStyle(Eidx idx, Int_t col = kBlack, Int_t marker = kOpenCircle, Double_t size = 1.5, Int_t line = kSolid,
60 Double_t width = 2., Int_t fill = kFEmpty);
61
62 void LoadStyle();
63 void Style(TObject* obj, Int_t idx = 0);
64 void SetForceLineStyle(Int_t line = kSolid);
65 void SetForceColor(Int_t color = kBlack);
66 void SetForceFillStyle(Int_t fill = kFSolid);
67
69
70 void SetPalette(Epalette colors = Epalette::kDefault, Bool_t reverse = kFALSE);
71
72 void SetLegendAlign(UInt_t align);
73 void SetLegendAttributes(TLegend* leg, Bool_t fill = kFALSE);
74
75 TH1* GetFirstHistogram();
76 TLegendEntry* GetLegendEntry(Int_t idx);
77
78} // namespace PairAnalysisStyler
79
80#endif
static constexpr size_t size()
Definition KfSimdPseudo.h:2
TLegendEntry * GetLegendEntry(Int_t idx)
void SetForceMarkerFillStyle(EfillMark fill)
void SetForceLineStyle(Int_t line=kSolid)
void SetStyle(TStyle *userStyle)
void SetLegendAlign(UInt_t align)
void SetPalette(Epalette colors=Epalette::kDefault, Bool_t reverse=kFALSE)
void SetForceColor(Int_t color=kBlack)
void Style(TObject *obj, Int_t idx=0)
void SetLegendAttributes(TLegend *leg, Bool_t fill=kFALSE)
void SetForceFillStyle(Int_t fill=kFSolid)