ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Monitored::StaticHistogramProvider Class Reference

Default implementation of IHistogramProvider interface. More...

#include <StaticHistogramProvider.h>

Inheritance diagram for Monitored::StaticHistogramProvider:
Collaboration diagram for Monitored::StaticHistogramProvider:

Public Member Functions

 StaticHistogramProvider (std::shared_ptr< HistogramFactory > factory, const HistogramDef &def)
 Constructor. More...
 
TNamed * histogram () override
 Getter of ROOT object. More...
 

Private Attributes

TNamed * m_histogram
 

Detailed Description

Default implementation of IHistogramProvider interface.

This provider implements standard way of handling ROOT objects in the code:

  1. Create and store ROOT object during provider initialization
  2. Return stored ROOT object if needed

Definition at line 23 of file StaticHistogramProvider.h.

Constructor & Destructor Documentation

◆ StaticHistogramProvider()

Monitored::StaticHistogramProvider::StaticHistogramProvider ( std::shared_ptr< HistogramFactory factory,
const HistogramDef def 
)
inline

Constructor.

Parameters
factoryROOT objects factory
defDefinition of a histogram to create

Definition at line 31 of file StaticHistogramProvider.h.

32  : m_histogram(factory->create(def)) {}

Member Function Documentation

◆ histogram()

TNamed* Monitored::StaticHistogramProvider::histogram ( )
inlineoverridevirtual

Getter of ROOT object.

Returns
ROOT object

Implements Monitored::IHistogramProvider.

Definition at line 39 of file StaticHistogramProvider.h.

39  {
40  return m_histogram;
41  }

Member Data Documentation

◆ m_histogram

TNamed* Monitored::StaticHistogramProvider::m_histogram
private

Definition at line 43 of file StaticHistogramProvider.h.


The documentation for this class was generated from the following file:
Monitored::StaticHistogramProvider::m_histogram
TNamed * m_histogram
Definition: StaticHistogramProvider.h:43