CbmRoot
|
Class to draw a comparison of objects on the provided canvas or pad. More...
#include <CbmQaCmpDrawer.h>
Public Member Functions | |
CbmQaCmpDrawer () | |
Default constructor. | |
~CbmQaCmpDrawer ()=default | |
Destructor. | |
CbmQaCmpDrawer (const CbmQaCmpDrawer &)=delete | |
Copy constructor. | |
CbmQaCmpDrawer (CbmQaCmpDrawer &&)=delete | |
Move constructor. | |
CbmQaCmpDrawer & | operator= (const CbmQaCmpDrawer &)=delete |
Copy assignment operator. | |
CbmQaCmpDrawer & | operator= (CbmQaCmpDrawer &&)=delete |
Move assignment operator. | |
void | Clear () |
Clears the set of objects. | |
void | RegisterObject (const Obj *pObj, const char *title=nullptr) |
Registers an object to draw. | |
void | Draw (Option_t *opt) const |
Draw objects. | |
void | SetMinimum (double min) |
Sets minimum of the histogram/graph. | |
void | SetMaximum (double max) |
Sets maximum of the histogram/graph. | |
Private Attributes | |
double | fMinimum = std::numeric_limits<double>::signaling_NaN() |
double | fMaximum = std::numeric_limits<double>::signaling_NaN() |
std::vector< Obj * > | fvpObjects |
Set of objects to be drawn. | |
std::vector< TString > | fvsLegEntries |
Entries to legend. | |
Static Private Attributes | |
static constexpr double | kLegEntryHight = 0.06 |
Hight of one legend entry in Y axis. | |
static constexpr double | kLegEntryWidth = 0.35 |
Width of the legend. | |
static constexpr double | kLegRightBound = 0.99 |
Right bound of the legend. | |
static constexpr double | kLegTopBound = 0.90 |
Top bound of the legend. | |
static constexpr double | kLegTextSize = 0.04 |
Text size of the legend entries. | |
static constexpr double | kIndentFromMax = 0.1 |
Indent from the maximum (percentage from (max - min)) | |
Class to draw a comparison of objects on the provided canvas or pad.
Obj | Type of underlying objects (TH1D, TGraph, TProfile, ...) |
Definition at line 29 of file CbmQaCmpDrawer.h.
CbmQaCmpDrawer< Obj >::CbmQaCmpDrawer | ( | ) |
Default constructor.
Definition at line 99 of file CbmQaCmpDrawer.h.
|
default |
Destructor.
|
delete |
Copy constructor.
|
delete |
Move constructor.
void CbmQaCmpDrawer< Obj >::Clear | ( | ) |
Clears the set of objects.
Definition at line 106 of file CbmQaCmpDrawer.h.
Referenced by cbm::ca::OutputQa::DrawSetOf().
void CbmQaCmpDrawer< Obj >::Draw | ( | Option_t * | opt | ) | const |
Draw objects.
opt | Drawing option: TODO: Specify options |
Definition at line 136 of file CbmQaCmpDrawer.h.
Referenced by cbm::ca::OutputQa::DrawSetOf().
|
delete |
Move assignment operator.
|
delete |
Copy assignment operator.
void CbmQaCmpDrawer< Obj >::RegisterObject | ( | const Obj * | pObj, |
const char * | title = nullptr ) |
Registers an object to draw.
pObj | Pointer to object |
title | Title of object (appears in the legend). |
Definition at line 117 of file CbmQaCmpDrawer.h.
Referenced by cbm::ca::OutputQa::DrawSetOf().
|
inline |
Sets maximum of the histogram/graph.
max | Maximum |
If the maximum is not set with this function, it will be set to the maximum value of the objects, multiplied by the value (1. + kIndentFromMax), which is 1.1 by default
Definition at line 73 of file CbmQaCmpDrawer.h.
References CbmQaCmpDrawer< Obj >::fMaximum, and max().
|
inline |
Sets minimum of the histogram/graph.
min | Minimum |
If the minimum is not set with this function, it will be set to 0 or the minimal value of the objects
Definition at line 66 of file CbmQaCmpDrawer.h.
References CbmQaCmpDrawer< Obj >::fMinimum, and min().
Referenced by cbm::ca::OutputQa::DrawSetOf().
|
private |
Definition at line 85 of file CbmQaCmpDrawer.h.
Referenced by CbmQaCmpDrawer< Obj >::SetMaximum().
|
private |
Definition at line 84 of file CbmQaCmpDrawer.h.
Referenced by CbmQaCmpDrawer< Obj >::SetMinimum().
|
private |
Set of objects to be drawn.
Definition at line 87 of file CbmQaCmpDrawer.h.
|
private |
Entries to legend.
Definition at line 88 of file CbmQaCmpDrawer.h.
|
staticconstexprprivate |
Indent from the maximum (percentage from (max - min))
Definition at line 82 of file CbmQaCmpDrawer.h.
|
staticconstexprprivate |
Hight of one legend entry in Y axis.
Definition at line 77 of file CbmQaCmpDrawer.h.
|
staticconstexprprivate |
Width of the legend.
Definition at line 78 of file CbmQaCmpDrawer.h.
|
staticconstexprprivate |
Right bound of the legend.
Definition at line 79 of file CbmQaCmpDrawer.h.
|
staticconstexprprivate |
Text size of the legend entries.
Definition at line 81 of file CbmQaCmpDrawer.h.
|
staticconstexprprivate |
Top bound of the legend.
Definition at line 80 of file CbmQaCmpDrawer.h.