ATLAS Offline Software
|
#include <SinglePlotDefinition.h>
Public Types | |
typedef std::pair< float, float > | axesLimits_t |
typedef for axes limits: (lower bound, upper bound) More... | |
Public Member Functions | |
SinglePlotDefinition (const std::string &name="", const std::string &type="", const std::string &title="", const std::string &xTitle="", unsigned int nBinsX=0, float xLow=0., float xHigh=0., bool doLogLinBinsX=false, const std::vector< float > &xBinsVec={}, const std::string &yTitle="", unsigned int nBinsY=0, float yLow=0., float yHigh=0., bool doLogLinBinsY=false, const std::vector< float > &yBinsVec={}, const std::string &zTitle="", unsigned int nBinsZ=0, float zLow=0., float zHigh=0., bool doLogLinBinsZ=false, const std::vector< float > &zBinsVec={}, const std::string &folder="") | |
Parametrised Constructor. More... | |
~SinglePlotDefinition ()=default | |
Default destructor. More... | |
SinglePlotDefinition & | operator= (const SinglePlotDefinition &)=default |
= operator More... | |
const std::string & | name () const |
const std::string & | type () const |
const std::string & | title () const |
const std::string & | xTitle () const |
const std::string & | yTitle () const |
const std::string & | zTitle () const |
unsigned int | nBinsX () const |
unsigned int | nBinsY () const |
unsigned int | nBinsZ () const |
float | xLow () const |
float | xHigh () const |
float | yLow () const |
float | yHigh () const |
float | zLow () const |
float | zHigh () const |
bool | doLogLinBinsX () const |
bool | doLogLinBinsY () const |
bool | doLogLinBinsZ () const |
const std::vector< float > & | xBinsVec () const |
const std::vector< float > & | yBinsVec () const |
const std::vector< float > & | zBinsVec () const |
bool | doVarBinsX () const |
bool | doVarBinsY () const |
bool | doVarBinsZ () const |
const std::string & | folder () const |
bool | isEmpty () const |
const std::string & | identifier () const |
const std::string & | plotDigest () const |
const std::string & | titleDigest () const |
bool | isValid () const |
void | name (std::string_view name_s) |
void | type (std::string_view type_s) |
void | title (std::string_view title_s) |
void | xTitle (std::string_view xTitle_s) |
void | yTitle (std::string_view yTitle_s) |
void | zTitle (std::string_view zTitle_s) |
void | nBinsX (float nBinsX_f) |
void | nBinsY (float nBinsY_f) |
void | nBinsZ (float nBinsZ_f) |
void | xLimits (float xLow, float xHigh) |
void | yLimits (float yLow, float yHigh) |
void | zLimits (float zLow, float zHigh) |
void | doLogLinBinsX (bool doLogLinBinsX_b) |
void | doLogLinBinsY (bool doLogLinBinsY_b) |
void | doLogLinBinsZ (bool doLogLinBinsZ_b) |
void | setxBinsVec (const std::vector< float > &vec) |
void | setyBinsVec (const std::vector< float > &vec) |
void | setzBinsVec (const std::vector< float > &vec) |
void | folder (std::string_view folder_s) |
void | setEmpty (bool empty=true) |
void | redoIdDigest () |
recompute m_identifier More... | |
void | redoPlotDigest () |
recompute m_plotDigest More... | |
void | redoTitleDigest () |
recompute m_titleDigest More... | |
void | redoTypeDigest () |
recompute m_is*D More... | |
void | digest () |
recompute m_identifier, m_plotDigest, m_titleDigest, m_is*D More... | |
Private Attributes | |
std::string | m_name |
main members More... | |
std::string | m_type |
std::string | m_title |
std::string | m_xTitle |
std::string | m_yTitle |
std::string | m_zTitle |
unsigned int | m_nBinsX |
unsigned int | m_nBinsY |
unsigned int | m_nBinsZ |
axesLimits_t | m_xAxis |
axesLimits_t | m_yAxis |
axesLimits_t | m_zAxis |
bool | m_doLogLinBinsX |
bool | m_doLogLinBinsY |
bool | m_doLogLinBinsZ |
std::vector< float > | m_xBinsVec |
std::vector< float > | m_yBinsVec |
std::vector< float > | m_zBinsVec |
std::string | m_folder |
bool | m_empty |
status member More... | |
std::string | m_identifier |
derived members, i.e. dependant on main members More... | |
std::string | m_plotDigest |
std::string | m_titleDigest |
bool | m_is1D |
bool | m_is2D |
bool | m_is3D |
Definition at line 25 of file SinglePlotDefinition.h.
typedef std::pair< float, float > IDTPM::SinglePlotDefinition::axesLimits_t |
typedef for axes limits: (lower bound, upper bound)
Definition at line 30 of file SinglePlotDefinition.h.
IDTPM::SinglePlotDefinition::SinglePlotDefinition | ( | const std::string & | name = "" , |
const std::string & | type = "" , |
||
const std::string & | title = "" , |
||
const std::string & | xTitle = "" , |
||
unsigned int | nBinsX = 0 , |
||
float | xLow = 0. , |
||
float | xHigh = 0. , |
||
bool | doLogLinBinsX = false , |
||
const std::vector< float > & | xBinsVec = {} , |
||
const std::string & | yTitle = "" , |
||
unsigned int | nBinsY = 0 , |
||
float | yLow = 0. , |
||
float | yHigh = 0. , |
||
bool | doLogLinBinsY = false , |
||
const std::vector< float > & | yBinsVec = {} , |
||
const std::string & | zTitle = "" , |
||
unsigned int | nBinsZ = 0 , |
||
float | zLow = 0. , |
||
float | zHigh = 0. , |
||
bool | doLogLinBinsZ = false , |
||
const std::vector< float > & | zBinsVec = {} , |
||
const std::string & | folder = "" |
||
) |
Parametrised Constructor.
Local include(s)
STL include(s)
initialise title = name if title is empty
initialising axes ranges
Recomputing limits and sizes (for variable bin sizes)
Sanity check
Definition at line 23 of file SinglePlotDefinition.cxx.
|
default |
Default destructor.
|
inline |
recompute m_identifier, m_plotDigest, m_titleDigest, m_is*D
Definition at line 131 of file SinglePlotDefinition.h.
|
inline |
Definition at line 70 of file SinglePlotDefinition.h.
|
inline |
Definition at line 103 of file SinglePlotDefinition.h.
|
inline |
Definition at line 71 of file SinglePlotDefinition.h.
|
inline |
Definition at line 104 of file SinglePlotDefinition.h.
|
inline |
Definition at line 72 of file SinglePlotDefinition.h.
|
inline |
Definition at line 105 of file SinglePlotDefinition.h.
|
inline |
Definition at line 76 of file SinglePlotDefinition.h.
|
inline |
Definition at line 77 of file SinglePlotDefinition.h.
|
inline |
Definition at line 78 of file SinglePlotDefinition.h.
|
inline |
Definition at line 79 of file SinglePlotDefinition.h.
|
inline |
Definition at line 115 of file SinglePlotDefinition.h.
|
inline |
Definition at line 81 of file SinglePlotDefinition.h.
|
inline |
Definition at line 80 of file SinglePlotDefinition.h.
bool IDTPM::SinglePlotDefinition::isValid | ( | ) | const |
Is the histogram definition valid
non-valid plot if name or type are undefined
check if type is valid
check if bin numbers are valid
check validity of axes limits NB: if yaxis is left undefined, the limits should be NaN, but (NaN != NaN) is always true, so an extra check is needed
check if x- and y-axis have no title
sanity check for 1D, 2D and 3D plots
sanity check for 2D and 3D plots
sanity check for 3D plots
Definition at line 72 of file SinglePlotDefinition.cxx.
|
inline |
|
inline |
These need and are followed by the recomputing of the digest strings
Definition at line 91 of file SinglePlotDefinition.h.
|
inline |
Definition at line 61 of file SinglePlotDefinition.h.
|
inline |
Definition at line 97 of file SinglePlotDefinition.h.
|
inline |
Definition at line 62 of file SinglePlotDefinition.h.
|
inline |
Definition at line 98 of file SinglePlotDefinition.h.
|
inline |
Definition at line 63 of file SinglePlotDefinition.h.
|
inline |
Definition at line 99 of file SinglePlotDefinition.h.
|
default |
= operator
|
inline |
Definition at line 82 of file SinglePlotDefinition.h.
void IDTPM::SinglePlotDefinition::redoIdDigest | ( | ) |
recompute m_identifier
recompute plot identifier, i.e.: "folder/name" or "name" if folder is empty
reduce: "/folder" -> "folder"
add a slash: "folder" -> "folder/"
Definition at line 130 of file SinglePlotDefinition.cxx.
void IDTPM::SinglePlotDefinition::redoPlotDigest | ( | ) |
recompute m_plotDigest
recompute single-line representation of the plot definition
Definition at line 150 of file SinglePlotDefinition.cxx.
void IDTPM::SinglePlotDefinition::redoTitleDigest | ( | ) |
recompute m_titleDigest
recompute single-line representation of the titles (titles separated by the ';' delimiter)
Definition at line 167 of file SinglePlotDefinition.cxx.
void IDTPM::SinglePlotDefinition::redoTypeDigest | ( | ) |
recompute m_is*D
recompute m_is1D, m_is2D and m_is3D
Definition at line 180 of file SinglePlotDefinition.cxx.
|
inline |
Definition at line 116 of file SinglePlotDefinition.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 57 of file SinglePlotDefinition.h.
|
inline |
Definition at line 93 of file SinglePlotDefinition.h.
|
inline |
Definition at line 83 of file SinglePlotDefinition.h.
|
inline |
Definition at line 56 of file SinglePlotDefinition.h.
|
inline |
Definition at line 92 of file SinglePlotDefinition.h.
|
inline |
Definition at line 73 of file SinglePlotDefinition.h.
|
inline |
Definition at line 65 of file SinglePlotDefinition.h.
|
inline |
|
inline |
Definition at line 64 of file SinglePlotDefinition.h.
|
inline |
Definition at line 58 of file SinglePlotDefinition.h.
|
inline |
Definition at line 94 of file SinglePlotDefinition.h.
|
inline |
Definition at line 74 of file SinglePlotDefinition.h.
|
inline |
Definition at line 67 of file SinglePlotDefinition.h.
|
inline |
|
inline |
Definition at line 66 of file SinglePlotDefinition.h.
|
inline |
Definition at line 59 of file SinglePlotDefinition.h.
|
inline |
Definition at line 95 of file SinglePlotDefinition.h.
|
inline |
Definition at line 75 of file SinglePlotDefinition.h.
|
inline |
Definition at line 69 of file SinglePlotDefinition.h.
|
inline |
|
inline |
Definition at line 68 of file SinglePlotDefinition.h.
|
inline |
Definition at line 60 of file SinglePlotDefinition.h.
|
inline |
Definition at line 96 of file SinglePlotDefinition.h.
|
private |
Definition at line 146 of file SinglePlotDefinition.h.
|
private |
Definition at line 146 of file SinglePlotDefinition.h.
|
private |
Definition at line 146 of file SinglePlotDefinition.h.
|
private |
status member
Definition at line 151 of file SinglePlotDefinition.h.
|
private |
Definition at line 148 of file SinglePlotDefinition.h.
|
private |
derived members, i.e. dependant on main members
Definition at line 154 of file SinglePlotDefinition.h.
|
private |
Definition at line 157 of file SinglePlotDefinition.h.
|
private |
Definition at line 157 of file SinglePlotDefinition.h.
|
private |
Definition at line 157 of file SinglePlotDefinition.h.
|
private |
main members
Definition at line 141 of file SinglePlotDefinition.h.
|
private |
Definition at line 144 of file SinglePlotDefinition.h.
|
private |
Definition at line 144 of file SinglePlotDefinition.h.
|
private |
Definition at line 144 of file SinglePlotDefinition.h.
|
private |
Definition at line 155 of file SinglePlotDefinition.h.
|
private |
Definition at line 143 of file SinglePlotDefinition.h.
|
private |
Definition at line 156 of file SinglePlotDefinition.h.
|
private |
Definition at line 142 of file SinglePlotDefinition.h.
|
private |
Definition at line 145 of file SinglePlotDefinition.h.
|
private |
Definition at line 147 of file SinglePlotDefinition.h.
|
private |
Definition at line 143 of file SinglePlotDefinition.h.
|
private |
Definition at line 145 of file SinglePlotDefinition.h.
|
private |
Definition at line 147 of file SinglePlotDefinition.h.
|
private |
Definition at line 143 of file SinglePlotDefinition.h.
|
private |
Definition at line 145 of file SinglePlotDefinition.h.
|
private |
Definition at line 147 of file SinglePlotDefinition.h.
|
private |
Definition at line 143 of file SinglePlotDefinition.h.