ATLAS Offline Software
Loading...
Searching...
No Matches
StaticHistogramProvider.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef AthenaMonitoringKernel_HistogramFiller_StaticHistogramProvider_h
6#define AthenaMonitoringKernel_HistogramFiller_StaticHistogramProvider_h
7
8#include <memory>
9
12
13#include "HistogramFactory.h"
14
15namespace Monitored {
24 public:
31 StaticHistogramProvider(std::shared_ptr<HistogramFactory> factory, const HistogramDef& def)
32 : m_histogram(factory->create(def)) {}
33
39 TNamed* histogram() override {
40 return m_histogram;
41 }
42 private:
43 TNamed* m_histogram;
44 };
45}
46
47#endif /* AthenaMonitoringKernel_HistogramFiller_IHistogramProvider_h */
Interface of the source of ROOT objects for HistogramFillers.
TNamed * histogram() override
Getter of ROOT object.
StaticHistogramProvider(std::shared_ptr< HistogramFactory > factory, const HistogramDef &def)
Constructor.
Generic monitoring tool for athena components.
the internal class used to keep parsed Filler properties