19 const std::string& name, ISvcLocator* pSvcLocator ) :
20 base_class( name, pSvcLocator ),
44 bool allDefsOk(
true );
46 if( not p.second.isValid() ) {
47 ATH_MSG_WARNING(
"Invalid plot definition: " << p.second.plotDigest() );
53 return StatusCode::RECOVERABLE;
56 return StatusCode::SUCCESS;
65 return StatusCode::SUCCESS;
73 const std::string& identifier )
const
75 plotsDefMap_t::const_iterator map_it =
m_plotsDefMap.find( identifier );
89 std::pair< plotsDefMap_t::iterator, bool >
result =
93 ATH_MSG_DEBUG(
"Plot definition is already in map. Not added" );
96 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Service interface to hold (and propagate) the definition of the monitoring plots in this package (bas...
const std::string & identifier() const
ToolHandle< IDTPM::IPlotsDefReadTool > m_plotsDefReadTool
virtual const IDTPM::SinglePlotDefinition & definition(const std::string &identifier) const override
Get the plot definition.
virtual StatusCode finalize() override
finalize
virtual StatusCode initialize() override
initialize
PlotsDefinitionSvc(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
IDTPM::SinglePlotDefinition m_nullDef
plotsDefMap_t m_plotsDefMap
StatusCode update(const IDTPM::SinglePlotDefinition &def)
Update the map with a new entry.