|
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...
|
|
template<unsigned int N, bool isProfile, typename ROOTHisto >
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
Definition at line 341 of file Utils.h.