![]() |
ATLAS Offline Software
|
Implementation of the IRootVisualization service. More...
#include <RootVisualizationService.h>
Classes | |
| struct | PlotsPerClient |
| Helper struct to group all plots that are belonging to a client of the service. More... | |
Public Types | |
| using | PlotPtr_t = std::shared_ptr< detail::DrawCanvasObject > |
| using | PlotVec_t = std::vector< PlotPtr_t > |
Public Member Functions | |
| virtual StatusCode | registerClient (const ClientToken &token) override final |
| virtual std::shared_ptr< ICanvasObject > | prepareCanvas (const EventContext &ctx, const ClientToken &token, const std::string &canvasName) override final |
| virtual StatusCode | finalize () override final |
| virtual StatusCode | initialize () override final |
Private Types | |
| using | StorageMap_t = std::map< ClientToken, PlotsPerClient > |
Private Member Functions | |
| void | paintObjects (const ClientToken &token, PlotVec_t &&toDraw) |
Private Attributes | |
| Gaudi::Property< double > | m_canvasExtraScale {this, "CanvasExtraScale" , 1.5} |
| Extra safety margin to zoom out from the Canvas. More... | |
| Gaudi::Property< bool > | m_quadCanvas {this, "QuadraticCanas", true} |
| Ensure that the canvas has the same interval sizes in x & y. More... | |
| Gaudi::Property< std::string > | m_AtlasLabel {this, "AtlasLabel", "Internal"} |
| ATLAS label (Internal / Prelimnary / Simulation) More... | |
| Gaudi::Property< std::string > | m_sqrtSLabel {this, "SqrtSLabel", "14"} |
| Centre of mass energy label. More... | |
| Gaudi::Property< std::string > | m_lumiLabel {this, "LumiLabel", ""} |
| Luminosity label. More... | |
| Gaudi::Property< unsigned > | m_canvasWidth {this, "CanvasWidth", 800} |
| Width of all drawn Canvases. More... | |
| Gaudi::Property< unsigned > | m_canvasHeight {this, "CanvasHeight", 600} |
| Height of all drawn Canvases. More... | |
| Gaudi::Property< std::string > | m_outDir {this, "outputDir" , "./Displays/"} |
| Directory into which all plots are written to More... | |
| Gaudi::Property< std::string > | m_outRootFileName {this, "outputROOTFile", "AllDisplays.root"} |
| Name of the ROOT file into which the output Canvases are written (needs root to be in the list of outputFormats of the client tokens) More... | |
| StorageMap_t | m_storage {} |
| std::unique_ptr< TFile > | m_outFile {} |
| File into which all Canvases are saved if root is defined as extension. More... | |
| std::mutex | m_storageMutex {} |
| std::mutex | m_canvasMutex {} |
Implementation of the IRootVisualization service.
Definition at line 18 of file RootVisualizationService.h.
| using MuonValR4::RootVisualizationService::PlotPtr_t = std::shared_ptr<detail::DrawCanvasObject> |
Definition at line 31 of file RootVisualizationService.h.
| using MuonValR4::RootVisualizationService::PlotVec_t = std::vector<PlotPtr_t> |
Definition at line 32 of file RootVisualizationService.h.
|
private |
Definition at line 69 of file RootVisualizationService.h.
|
finaloverridevirtual |
Definition at line 184 of file RootVisualizationService.cxx.
|
finaloverridevirtual |
Definition at line 34 of file RootVisualizationService.cxx.
|
private |
First sort the plots by the event number
The client still holds the pointer to the plot
Number the plots per event
Setup the frame
Draw the primitives
Save the single plots
Definition at line 90 of file RootVisualizationService.cxx.
|
finaloverridevirtual |
Definition at line 63 of file RootVisualizationService.cxx.
|
finaloverridevirtual |
Definition at line 43 of file RootVisualizationService.cxx.
|
private |
ATLAS label (Internal / Prelimnary / Simulation)
Definition at line 44 of file RootVisualizationService.h.
|
private |
Extra safety margin to zoom out from the Canvas.
Definition at line 40 of file RootVisualizationService.h.
|
private |
Height of all drawn Canvases.
Definition at line 52 of file RootVisualizationService.h.
|
private |
Definition at line 75 of file RootVisualizationService.h.
|
private |
Width of all drawn Canvases.
Definition at line 50 of file RootVisualizationService.h.
|
private |
Luminosity label.
Definition at line 48 of file RootVisualizationService.h.
|
private |
Directory into which all plots are written to
Definition at line 54 of file RootVisualizationService.h.
|
private |
File into which all Canvases are saved if root is defined as extension.
Definition at line 72 of file RootVisualizationService.h.
|
private |
Name of the ROOT file into which the output Canvases are written (needs root to be in the list of outputFormats of the client tokens)
Definition at line 57 of file RootVisualizationService.h.
|
private |
Ensure that the canvas has the same interval sizes in x & y.
Definition at line 42 of file RootVisualizationService.h.
|
private |
Centre of mass energy label.
Definition at line 46 of file RootVisualizationService.h.
|
private |
Definition at line 70 of file RootVisualizationService.h.
|
private |
Definition at line 74 of file RootVisualizationService.h.
1.8.18