EDM4eic
EIC data model
Loading...
Searching...
No Matches
CovDiag3f.h
Go to the documentation of this file.
1// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3#ifndef EDM4EIC_CovDiag3f_H
4#define EDM4EIC_CovDiag3f_H
5
6#include <ostream>
7
8#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
9#include "nlohmann/json_fwd.hpp"
10#endif
11
12namespace edm4eic {
13
14/** @class CovDiag3f
15 *
16 * @author:
17 */
18class CovDiag3f {
19public:
20 float xx{};
21 float yy{};
22 float zz{};
23
24 CovDiag3f() : xx{0}, yy{0}, zz{0} {}
25 CovDiag3f(double x, double y, double z)
26 : xx{static_cast<float>(x)}, yy{static_cast<float>(y)}, zz{static_cast<float>(z)} {}
27 float operator()(unsigned i, unsigned j) const {return (i == j) ? *(&xx + i) : 0.;}
28
29
30};
31
32std::ostream& operator<<(std::ostream& o, const edm4eic::CovDiag3f& value);
33
34#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
35void to_json(nlohmann::json& j, const CovDiag3f& value);
36#endif
37
38} // namespace edm4eic
39
40
41#endif
Definition CovDiag3f.h:18
CovDiag3f(double x, double y, double z)
Definition CovDiag3f.h:25
float operator()(unsigned i, unsigned j) const
Definition CovDiag3f.h:27
float zz
Definition CovDiag3f.h:22
float yy
Definition CovDiag3f.h:21
CovDiag3f()
Definition CovDiag3f.h:24
float xx
Definition CovDiag3f.h:20
Definition CalorimeterHit.cc:18
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition CalorimeterHit.cc:97