The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
StatEntity.cpp File Reference
Include dependency graph for StatEntity.cpp:

Go to the source code of this file.

Functions

void to_json (nlohmann::json &j, StatEntity const &s)
 

Function Documentation

◆ to_json()

void to_json ( nlohmann::json & j,
StatEntity const & s )

Definition at line 14 of file StatEntity.cpp.

14 {
15 j = { { "type", s.typeString },
16 { "empty", s.nEntries() == 0 },
17 { "nEntries", s.nEntries() },
18 { "sum", s.sum() },
19 { "mean", s.mean() },
20 { "sum2", s.sum2() },
21 { "standard_deviation", s.standard_deviation() },
22 { "min", s.min() },
23 { "max", s.max() },
24 { "nTrueEntries", s.nTrueEntries() },
25 { "nFalseEntries", s.nFalseEntries() },
26 { "efficiency", s.efficiency() },
27 { "efficiencyErr", s.efficiencyErr() } };
28}