Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
57 template <
typename Callable>
60 [
func](
auto& p ) {
func( p.second ); } );
68 applytoAllEntities( [&sortedEntities](
auto& ent ) { sortedEntities[ent.component][ent.name] = ent.toJSON(); } );
69 return sortedEntities;
76 if ( searchNames.
empty() ) {
return true; }
77 for (
const auto& searchName : searchNames ) {
87 this,
"NamesToSave", {},
"List of regexps used to match names of entities to save" };
89 this,
"ComponentsToSave", {},
"List of regexps used to match component names of entities to save" };
91 this,
"TypesToSave", {},
"List of regexps used to match type names of entities to save" };
Interface reporting services must implement.
Base class for all Sinks registering to the Monitoring Hub.
std::string name
name of the entity
StatusCode initialize() override
Gaudi::Property< std::vector< std::string > > m_namesToSave
void removeEntity(Hub::Entity const &ent) override
handles removal of an entity
Gaudi::Property< std::vector< std::string > > m_componentsToSave
StatusCode andThen(F &&f, ARGS &&... args) const
Chain code blocks making the execution conditional a success result.
void registerEntity(Hub::Entity ent) override
handles registration of a new entity
std::map< std::string, std::map< std::string, nlohmann::json > > const sortedEntitiesAsJSON()
returns all entities in JSON format, grouped by component first and then name
StatusCode initialize() override
Gaudi::Property< std::vector< std::string > > m_typesToSave
const std::string & name() const override
Retrieve name of the service
double * begin(CLHEP::HepVector &v)
bool wanted(std::string name, std::vector< std::string > searchNames)
deciding whether a given name matches the list of regexps given empty list means everything matches
void * id() const
unique identifier, actually mapped to internal pointer
Service(std::string name, ISvcLocator *svcloc)
Standard Constructor
std::map< void *, Gaudi::Monitoring::Hub::Entity > m_monitoringEntities
list of entities we are dealing with
Wrapper class for arbitrary monitoring objects.
void applytoAllEntities(Callable func)
applies a callable to all monitoring entities
Implementation of property with value of concrete type.
SmartIF< ISvcLocator > & serviceLocator() const override
Retrieve pointer to service locator
std::string type
type of the entity, see comment above concerning its format and usage
std::string component
name of the component owning the Entity