The Gaudi Framework
master (37c0b60a)
StatEntity.cpp
Go to the documentation of this file.
1
/*****************************************************************************\
2
* (c) Copyright 2023 CERN for the benefit of the LHCb Collaboration *
3
* *
4
* This software is distributed under the terms of the GNU General Public *
5
* Licence version 3 (GPL Version 3), copied verbatim in the file "COPYING". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\*****************************************************************************/
11
12
#include <
GaudiKernel/StatEntity.h
>
13
14
void
to_json
(
nlohmann::json
&
j
,
StatEntity
const
&
s
) {
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
}
gaudirun.s
string s
Definition:
gaudirun.py:346
StatEntity
backward compatible StatEntity class.
Definition:
StatEntity.h:23
jsonFromLHCbLog.json
json
Definition:
jsonFromLHCbLog.py:86
StatEntity.h
ProduceConsume.j
j
Definition:
ProduceConsume.py:104
to_json
void to_json(nlohmann::json &j, StatEntity const &s)
Definition:
StatEntity.cpp:14
GaudiKernel
src
Lib
StatEntity.cpp
Generated on Thu Dec 19 2024 15:35:04 for The Gaudi Framework by
1.8.18