29 #ifndef DPP_HISTOGRAM_SERVICE_H 30 #define DPP_HISTOGRAM_SERVICE_H 1 90 virtual void tree_dump (std::ostream & out_ = std::clog,
91 const std::string & title_ =
"",
92 const std::string & indent_ =
"",
93 bool inherit_ =
false)
const;
96 const std::string & name_,
97 const std::string & title_,
98 TH1D & rh1d_,
bool stats_ =
false);
101 const std::string & name_,
102 const std::string & title_,
103 TH2D & rh2d_,
bool stats_ =
false);
115 std::vector<std::string> _output_files_;
116 bool _root_export_stats_;
117 std::string _root_export_title_prefix_;
118 std::string _root_export_name_suffix_;
132 #endif // DPP_HISTOGRAM_SERVICE_H
virtual void tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
mygsl::histogram_pool & grab_pool()
virtual int initialize(const datatools::properties &config_, datatools::service_dict_type &service_dict_)
Initialize the service using a list of properties with access to a dictionary of other services.
Top-level namespace of the Bayeux/dpp module library.
Definition: base_module.h:56
virtual bool is_initialized() const
Check if service is initialized.
void add_output_file(const std::string &fn_)
void load_from_boost_file(const std::string &filename_)
#define DATATOOLS_SERVICE_REGISTRATION_INTERFACE(SERVICE_CLASS_NAME)
Definition: base_service.h:152
void store_as_root_file(const std::string &filename_) const
static void export_to_root(const mygsl::histogram_1d &h1d_, const std::string &name_, const std::string &title_, TH1D &rh1d_, bool stats_=false)
DOCD_CLASS_DECLARATION(my::algo)
Declaration of the OCD support for the my::algo class.
A pool of histograms.
Definition: histogram_pool.h:28
std::vector< std::string > & grab_output_files()
void store_as_boost_file(const std::string &filename_) const
const mygsl::histogram_pool & get_pool() const
A service for managing 1D and 2D histograms.
Definition: histogram_service.h:56
One dimensional histogram.
Definition: histogram.h:30
virtual int reset()
Reset the service.
const std::vector< std::string > & get_output_files() const
bool has_output_files() const
virtual ~histogram_service()
Two dimensional histogram.
Definition: histogram_2d.h:29