CbmRoot
|
A pad configuration for the histogram server. More...
#include <PadConfig.h>
Public Member Functions | |
PadConfig ()=default | |
Constructor. | |
PadConfig (bool gridX, bool gridY, bool logX, bool logY, bool logZ) | |
Constructor from parameters. | |
PadConfig (const PadConfig &)=default | |
Copy constructor. | |
PadConfig (PadConfig &&)=default | |
Move constructor. | |
PadConfig & | operator= (const PadConfig &)=default |
Copy assignment operator. | |
PadConfig & | operator= (PadConfig &&)=default |
Move assignment operator. | |
~PadConfig ()=default | |
Destructor. | |
void | SetGrid (bool gridX, bool gridY=false) |
Set grid flags. | |
void | SetLog (bool logX, bool logY=false, bool logZ=false) |
Sets logarithm axis. | |
void | RegisterObject (std::string_view name, std::string_view opt) |
Registers an object in the pad. | |
template<class Hist > | |
void | RegisterHistogram (const Hist *hist, std::string_view opt) |
Registers a histogram in the pad. | |
std::string | ToString () const |
Returns message config. | |
Private Attributes | |
bool | fbGridX = false |
Grid flag for x-axis. | |
bool | fbGridY = false |
Grid flag for y-axis. | |
bool | fbLogX = false |
Log flag for x-axis. | |
bool | fbLogY = false |
Log flag for y-axis. | |
bool | fbLogZ = false |
Log flag for z-axis. | |
std::vector< std::pair< std::string, std::string > > | fvObjectList |
List of objects on the pad. | |
A pad configuration for the histogram server.
The class represents a configuration of the pad, which can be converted in the part of the canvas initialization message for the histogram server.
Definition at line 26 of file PadConfig.h.
|
default |
Constructor.
|
inline |
Constructor from parameters.
gridX | |
gridY | |
logX | |
logY | |
logZ |
Definition at line 37 of file PadConfig.h.
|
default |
Copy constructor.
|
default |
Move constructor.
|
default |
Destructor.
Copy assignment operator.
|
inline |
Registers a histogram in the pad.
Hist | Histogram class |
hist | Histogram object |
opt | Draw options for the histogram |
If the histogram has EHistFlag::StoreVsTsId, then the TS dependendent histogram will be plotted only. If both integrated and vs. TS histograms are needed, please explicitly provide the histogram names to two separate pads using the RegisterObject function.
Definition at line 91 of file PadConfig.h.
References cbm::algo::qa::HistogramMetadata::ksTsIdSuffix, cbm::algo::qa::OmitIntegrated, RegisterObject(), and cbm::algo::qa::StoreVsTsId.
|
inline |
Registers an object in the pad.
name | Name of the object |
opt | Draw options for the object |
Definition at line 76 of file PadConfig.h.
References fvObjectList.
Referenced by RegisterHistogram().
void PadConfig::SetGrid | ( | bool | gridX, |
bool | gridY = false ) |
Set grid flags.
gridX | Flag for x-axis |
gridY | Flag for y-axis |
Definition at line 20 of file PadConfig.cxx.
void PadConfig::SetLog | ( | bool | logX, |
bool | logY = false, | ||
bool | logZ = false ) |
Sets logarithm axis.
logX | Logarithm flag for x-axis |
logY | Logarithm flag for y-axis |
logZ | Logarithm flag for z-axis |
Definition at line 28 of file PadConfig.cxx.
std::string PadConfig::ToString | ( | ) | const |
Returns message config.
Definition at line 37 of file PadConfig.cxx.
References fbGridX, fbGridY, fbLogX, fbLogY, fbLogZ, fvObjectList, and L_.
Referenced by cbm::algo::qa::CanvasConfig::AddPadConfig().
|
private |
Grid flag for x-axis.
Definition at line 107 of file PadConfig.h.
Referenced by SetGrid(), and ToString().
|
private |
Grid flag for y-axis.
Definition at line 108 of file PadConfig.h.
Referenced by SetGrid(), and ToString().
|
private |
Log flag for x-axis.
Definition at line 109 of file PadConfig.h.
Referenced by SetLog(), and ToString().
|
private |
Log flag for y-axis.
Definition at line 110 of file PadConfig.h.
Referenced by SetLog(), and ToString().
|
private |
Log flag for z-axis.
Definition at line 111 of file PadConfig.h.
Referenced by SetLog(), and ToString().
|
private |
List of objects on the pad.
Definition at line 113 of file PadConfig.h.
Referenced by RegisterObject(), and ToString().