|
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.
Referenced by CbmQaCmpDrawer(), CbmQaCmpDrawer(), operator=(), and operator=().
|
default |
Destructor.
|
delete |
Copy constructor.
References CbmQaCmpDrawer().
|
delete |
Move constructor.
References CbmQaCmpDrawer().
| void CbmQaCmpDrawer< Obj >::Clear | ( | ) |
Clears the set of objects.
Definition at line 106 of file CbmQaCmpDrawer.h.
References fMaximum, fMinimum, fvpObjects, and fvsLegEntries.
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.
References fMaximum, fMinimum, fvpObjects, fvsLegEntries, kIndentFromMax, kLegEntryHight, kLegEntryWidth, kLegRightBound, kLegTextSize, and kLegTopBound.
Referenced by cbm::ca::OutputQa::DrawSetOf().
|
delete |
Move assignment operator.
References CbmQaCmpDrawer().
|
delete |
Copy assignment operator.
References CbmQaCmpDrawer().
| 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.
References fvpObjects, and fvsLegEntries.
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.
|
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 fMinimum, and min().
Referenced by cbm::ca::OutputQa::DrawSetOf().
|
private |
Definition at line 85 of file CbmQaCmpDrawer.h.
Referenced by Clear(), Draw(), and SetMaximum().
|
private |
Definition at line 84 of file CbmQaCmpDrawer.h.
Referenced by Clear(), Draw(), and SetMinimum().
|
private |
Set of objects to be drawn.
Definition at line 87 of file CbmQaCmpDrawer.h.
Referenced by Clear(), Draw(), and RegisterObject().
|
private |
Entries to legend.
Definition at line 88 of file CbmQaCmpDrawer.h.
Referenced by Clear(), Draw(), and RegisterObject().
|
staticconstexprprivate |
Indent from the maximum (percentage from (max - min))
Definition at line 82 of file CbmQaCmpDrawer.h.
Referenced by Draw().
|
staticconstexprprivate |
Hight of one legend entry in Y axis.
Definition at line 77 of file CbmQaCmpDrawer.h.
Referenced by Draw().
|
staticconstexprprivate |
|
staticconstexprprivate |
|
staticconstexprprivate |
Text size of the legend entries.
Definition at line 81 of file CbmQaCmpDrawer.h.
Referenced by Draw().
|
staticconstexprprivate |