![]() |
ATLAS Offline Software
|
#include <HistogramDefinitionSvc.h>
Public Types | |
enum | Formats { UNKNOWN, TEXT_XML, TEXT_PLAIN, NFORMATS } |
Format of the data source holding the histogram definition. More... | |
typedef std::pair< float, float > | axesLimits_t |
typedef for axes limits, (lower bound, upper bound) More... | |
Public Member Functions | |
HistogramDefinitionSvc (const std::string &name, ISvcLocator *svc) | |
virtual | ~HistogramDefinitionSvc () |
virtual StatusCode | initialize () |
virtual StatusCode | finalize () |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvInterface) |
SingleHistogramDefinition | definition (const std::string &name, const std::string &dirName="") const final |
Return a histogram definition, retrieved by histogram identifier (and directory name, if supplied) More... | |
std::string | histoType (const std::string &name, const std::string &dirName="") const final |
Return Histogram type (TH1, TH2 etc) by histogram identifier (and directory name, if supplied) More... | |
std::string | title (const std::string &name, const std::string &dirName="") const final |
Return Histogram title by histogram identifier (and directory name, if supplied) More... | |
unsigned int | nBinsX (const std::string &name, const std::string &dirName="") const final |
Return number of x bins by histogram identifier (and directory name, if supplied) More... | |
unsigned int | nBinsY (const std::string &name, const std::string &dirName="") const final |
Return number of y bins by histogram identifier (and directory name, if supplied); default returns 0 for 1-D histos. More... | |
unsigned int | nBinsZ (const std::string &name, const std::string &dirName="") const final |
Return number of z bins by histogram identifier (and directory name, if supplied); default returns 0 for 1-D histos. More... | |
IHistogramDefinitionSvc::axesLimits_t | xLimits (const std::string &name, const std::string &dirName="") const final |
Return x axes (lo,hi) by histogram identifier (and directory name, if supplied) More... | |
IHistogramDefinitionSvc::axesLimits_t | yLimits (const std::string &name, const std::string &dirName="") const final |
Return y axes (lo,hi) by histogram identifier (and directory name, if supplied). Default returns (nan,nan). More... | |
IHistogramDefinitionSvc::axesLimits_t | zLimits (const std::string &name, const std::string &dirName="") const final |
Return z axes (lo,hi) by histogram identifier (and directory name, if supplied) More... | |
std::string | xTitle (const std::string &name, const std::string &dirName="") const final |
Return x-axis title by histogram identifier (and directory name, if supplied) More... | |
std::string | yTitle (const std::string &name, const std::string &dirName="") const final |
Return y-axis title by histogram identifier (and directory name, if supplied) More... | |
std::string | zTitle (const std::string &name, const std::string &dirName="") const final |
Return z-axis title by histogram identifier (and directory name, if supplied) More... | |
MsgStream & | msg () const |
MsgStream & | msg (const MSG::Level lvl) const |
bool | msgLvl (const MSG::Level lvl) const |
Static Public Member Functions | |
static const InterfaceID & | interfaceID () |
reimplemented from IInterface More... | |
Private Member Functions | |
bool | sourceExists () |
bool | formatOk () |
Private Attributes | |
StringProperty | m_source |
StringProperty | m_formatString |
IHistogramDefinitionSvc::Formats | m_format |
std::map< std::string, SingleHistogramDefinition > | m_histoDefMap |
std::unique_ptr< IReadHistoDef > | m_reader |
Friends | |
class | SvcFactory< HistogramDefinitionSvc > |
Definition at line 27 of file HistogramDefinitionSvc.h.
|
inherited |
typedef for axes limits, (lower bound, upper bound)
Definition at line 29 of file IHistogramDefinitionSvc.h.
|
inherited |
Format of the data source holding the histogram definition.
Enumerator | |
---|---|
UNKNOWN | |
TEXT_XML | |
TEXT_PLAIN | |
NFORMATS |
Definition at line 25 of file IHistogramDefinitionSvc.h.
HistogramDefinitionSvc::HistogramDefinitionSvc | ( | const std::string & | name, |
ISvcLocator * | svc | ||
) |
Definition at line 25 of file HistogramDefinitionSvc.cxx.
|
virtualdefault |
|
finalvirtual |
Return a histogram definition, retrieved by histogram identifier (and directory name, if supplied)
Implements IHistogramDefinitionSvc.
Definition at line 86 of file HistogramDefinitionSvc.cxx.
|
virtual |
Definition at line 80 of file HistogramDefinitionSvc.cxx.
|
private |
Definition at line 221 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return Histogram type (TH1, TH2 etc) by histogram identifier (and directory name, if supplied)
Implements IHistogramDefinitionSvc.
Definition at line 97 of file HistogramDefinitionSvc.cxx.
|
virtual |
Definition at line 34 of file HistogramDefinitionSvc.cxx.
|
inlinestaticinherited |
reimplemented from IInterface
Definition at line 57 of file IHistogramDefinitionSvc.h.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 27 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
finalvirtual |
Return number of x bins by histogram identifier (and directory name, if supplied)
Implements IHistogramDefinitionSvc.
Definition at line 119 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return number of y bins by histogram identifier (and directory name, if supplied); default returns 0 for 1-D histos.
Reimplemented from IHistogramDefinitionSvc.
Definition at line 130 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return number of z bins by histogram identifier (and directory name, if supplied); default returns 0 for 1-D histos.
Reimplemented from IHistogramDefinitionSvc.
Definition at line 141 of file HistogramDefinitionSvc.cxx.
|
virtual |
Definition at line 226 of file HistogramDefinitionSvc.cxx.
|
private |
Definition at line 216 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return Histogram title by histogram identifier (and directory name, if supplied)
Implements IHistogramDefinitionSvc.
Definition at line 108 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return x axes (lo,hi) by histogram identifier (and directory name, if supplied)
Implements IHistogramDefinitionSvc.
Definition at line 152 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return x-axis title by histogram identifier (and directory name, if supplied)
Implements IHistogramDefinitionSvc.
Definition at line 185 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return y axes (lo,hi) by histogram identifier (and directory name, if supplied). Default returns (nan,nan).
Reimplemented from IHistogramDefinitionSvc.
Definition at line 163 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return y-axis title by histogram identifier (and directory name, if supplied)
Implements IHistogramDefinitionSvc.
Definition at line 196 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return z axes (lo,hi) by histogram identifier (and directory name, if supplied)
Implements IHistogramDefinitionSvc.
Definition at line 174 of file HistogramDefinitionSvc.cxx.
|
finalvirtual |
Return z-axis title by histogram identifier (and directory name, if supplied)
Implements IHistogramDefinitionSvc.
Definition at line 206 of file HistogramDefinitionSvc.cxx.
|
friend |
Definition at line 1 of file HistogramDefinitionSvc.h.
|
private |
Definition at line 55 of file HistogramDefinitionSvc.h.
|
private |
Definition at line 54 of file HistogramDefinitionSvc.h.
|
private |
Definition at line 56 of file HistogramDefinitionSvc.h.
|
private |
Definition at line 57 of file HistogramDefinitionSvc.h.
|
private |
Definition at line 53 of file HistogramDefinitionSvc.h.