The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
nlohmann Namespace Reference

Classes

struct  adl_serializer< std::chrono::duration< Rep, Period > >
 

Functions

void to_json (nlohmann::json &j, TAxis const &axis)
 automatic translation of TAxis to json
 
void to_json (nlohmann::json &j, TH1D const &h)
 automatic translation of Root histograms to json
 
void to_json (nlohmann::json &j, TH2D const &h)
 
void to_json (nlohmann::json &j, TH3D const &h)
 
void to_json (nlohmann::json &j, TProfile const &h)
 
void to_json (nlohmann::json &j, TProfile2D const &h)
 

Function Documentation

◆ to_json() [1/6]

void nlohmann::to_json ( nlohmann::json & j,
TAxis const & axis )
inline

automatic translation of TAxis to json

Definition at line 1018 of file Utils.h.

1018 {
1019 j = nlohmann::json{ { "nBins", axis.GetNbins() },
1020 { "minValue", axis.GetXmin() },
1021 { "maxValue", axis.GetXmax() },
1022 { "title", axis.GetTitle() } };
1023 }

◆ to_json() [2/6]

void nlohmann::to_json ( nlohmann::json & j,
TH1D const & h )
inline

automatic translation of Root histograms to json

Definition at line 1025 of file Utils.h.

1025 {
1027 }
nlohmann::json rootHistogramToJson(Histo const &h)
automatic translation of Root Histograms to json
Definition Utils.h:387

◆ to_json() [3/6]

void nlohmann::to_json ( nlohmann::json & j,
TH2D const & h )
inline

Definition at line 1028 of file Utils.h.

◆ to_json() [4/6]

void nlohmann::to_json ( nlohmann::json & j,
TH3D const & h )
inline

Definition at line 1031 of file Utils.h.

◆ to_json() [5/6]

void nlohmann::to_json ( nlohmann::json & j,
TProfile const & h )
inline

Definition at line 1034 of file Utils.h.

◆ to_json() [6/6]

void nlohmann::to_json ( nlohmann::json & j,
TProfile2D const & h )
inline

Definition at line 1037 of file Utils.h.