SimpleHistogramManager.h
Go to the documentation of this file.
1 // SimpleHistogramManager.h
2 //
3 // David Adams
4 // August 2017
5 //
6 // Tool that provides access to and management of histograms.
7 
8 #ifndef SimpleHistogramManager_H
9 #define SimpleHistogramManager_H
10 
12 #include "fhiclcpp/ParameterSet.h"
14 #include <map>
15 
17 
18 public:
19 
20  // Ctor from FCL.
22 
23  // Dtor.
24  ~SimpleHistogramManager() override;
25 
26  int manage(TH1* ph) override;
27 
28  NameVector names() const override;
29 
30  TH1* get(Name hname) const override;
31 
32  TH1* last() const override;
33 
34  int release(Name hname) override;
35 
36 private:
37 
38  // Parameters.
40 
41  // Local data.
43  std::map<Name, TH1*> m_hists;
44 
45 };
46 
47 
48 #endif
std::map< Name, TH1 * > m_hists
SimpleHistogramManager(fhicl::ParameterSet const &ps)
int release(Name hname) override
NameVector names() const override
static constexpr double ps
Definition: Units.h:99
std::vector< Name > NameVector