![]() |
The Gaudi Framework
v36r10 (fc05264c)
|
Namespaces | |
details | |
Classes | |
class | Base |
struct | Root |
struct | Traits |
templated Traits dealing with Root Histogram filling for standard histograms More... | |
struct | Traits< false, RootHisto, N > |
Specialization of Traits dealing with non profile Root Histograms. More... | |
struct | Traits< true, RootHisto, N > |
Specialization of Traits dealing with profile Root Histograms. More... | |
Functions | |
template<typename Traits > | |
std::tuple< typename Traits::Histo, std::string > | jsonToRootHistogram (std::string &dir, std::string &name, nlohmann::json const &j) |
generic function to convert json to a ROOT Histogram More... | |
template<typename Histo > | |
nlohmann::json | rootHistogramTojson (Histo const &) |
generic function to convert a ROOT Histogram to json More... | |
template<typename Traits > | |
void | saveRootHisto (TFile &file, std::string dir, std::string name, nlohmann::json const &j) |
generic method to save histograms to files, based on Traits More... | |
template<unsigned int N, bool isProfile, typename ROOTHisto > | |
void | saveRootHisto (TFile &file, std::string dir, std::string name, nlohmann::json const &j) |
generic method to save regular histograms to files More... | |
std::tuple< typename Traits::Histo, std::string > Gaudi::Histograming::Sink::jsonToRootHistogram | ( | std::string & | dir, |
std::string & | name, | ||
nlohmann::json const & | j | ||
) |
generic function to convert json to a ROOT Histogram
returns the Root histogram and the dir where to save it in the Root file This may be different from input dir in case name has slashes
Definition at line 323 of file Utils.h.
nlohmann::json Gaudi::Histograming::Sink::rootHistogramTojson | ( | Histo const & | ) |
generic function to convert a ROOT Histogram to json
essentially used for backward compatibility of old HistogramService with MonitoringHub
void Gaudi::Histograming::Sink::saveRootHisto | ( | TFile & | file, |
std::string | dir, | ||
std::string | name, | ||
nlohmann::json const & | j | ||
) |
void Gaudi::Histograming::Sink::saveRootHisto | ( | TFile & | file, |
std::string | dir, | ||
std::string | name, | ||
nlohmann::json const & | j | ||
) |
generic method to save regular histograms to files
Can be used in most cases as the handler function to register into Sink::Base contains all the boiler plate code and redirects specific code to the adapted Traits template