 |
ATLAS Offline Software
|
Go to the documentation of this file.
4 #ifndef MUONVISUALIZATIONHELPERSR4_DRAWCANVASOBJECT_H
5 #define MUONVISUALIZATIONHELPERSR4_DRAWCANVASOBJECT_H
9 #include <Acts/Utilities/ArrayHelpers.hpp>
22 const std::size_t evtNumber);
25 virtual void expandPad(
const double x,
const double y)
override final;
28 const std::string& drawOpt =
"") override final;
33 virtual
void trash() override final;
56 static constexpr
double s_dblMax = std::numeric_limits<
double>::
max();
static constexpr double s_dblMax
DrawCanvasObject(const std::string &canvasName, const std::size_t evtNumber)
std::vector< std::pair< PrimitivePtr_t, std::string > > PrimitiveVec_t
bool const RAWDATA *ch2 const
std::array< Range_t, 2 > Range2D_t
const std::string & zTitle() const
Returns the title of the z-axis.
virtual void expandPad(const double x, const double y) override final
Expands the axes of the pad such that the coordinates are guaranteed to appear at least at the Canvas...
bool trashed() const
Returns whether the canvas has been trashed.
PrimitiveVec_t m_primitives
virtual void setAxisTitles(const std::string &xTitle, const std::string &yTitle, const std::string &zTitle) override final
Define the titles of the Canvas axes.
virtual double corner(const AxisRanges r) const override final
Retrieves a corner coordinate of the drawn canvas.
Interface to the container class to temporarily cache the ROOT objects to be drawn on a TCanvas and t...
const std::string & xTitle() const
Returns the title of the x-axis.
const std::string & yTitle() const
Returns the title of the y-axis.
AxisRanges
Enum to select the corner coordinates shown by the plot.
const PrimitiveVec_t & primitives() const
std::size_t event() const
Event number in which the canvas has been created.
std::unique_ptr< TObject > PrimitivePtr_t
Abrivation for a TObject to be drawn on a canvas.
IRootVisualizationService::PrimitivePtr_t PrimitivePtr_t
const std::string & name() const
Name of the canvas.
virtual void trash() override final
If no object has been drawn mark the plot as junk.
std::atomic< bool > m_isTrashed
virtual void add(PrimitivePtr_t &&drawMe, const std::string &drawOpt="") override final
Add a TObject to the ICanvasObject for later drawing onto a TCanvas.
virtual ~DrawCanvasObject()=default
virtual void setRangeScale(const double s, bool quadCan) override final
To ensure that the drawn objects are not cut by the axis limits, a flat scale-factor on the drawn axi...
std::array< double, 2 > Range_t