EDM4eic
EIC data model
Toggle main menu visibility
Loading...
Searching...
No Matches
Cov6f.h
Go to the documentation of this file.
1
// AUTOMATICALLY GENERATED FILE - DO NOT EDIT
2
3
#ifndef EDM4EIC_Cov6f_H
4
#define EDM4EIC_Cov6f_H
5
6
#include <array>
7
#include <ostream>
8
9
#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
10
#include "nlohmann/json_fwd.hpp"
11
#endif
12
13
namespace
edm4eic
{
14
15
16
/** @class Cov6f
17
*
18
* @author:
19
*/
20
class
Cov6f
{
21
public
:
22
std::array<float, 21>
covariance
{};
///< 6d triangular packed covariance matrix
23
24
Cov6f
() :
covariance
{} {}
25
Cov6f
(std::array<float, 21> vcov) :
covariance
{vcov}{}
26
float
operator()
(
unsigned
i,
unsigned
j)
const
{
27
if
(i > j) {
28
std::swap(i, j);
29
}
30
return
covariance
[i + 1 + (j + 1) * (j) / 2 - 1];
31
}
32
float
&
operator()
(
unsigned
i,
unsigned
j) {
33
if
(i > j) {
34
std::swap(i, j);
35
}
36
return
covariance
[i + 1 + (j + 1) * (j) / 2 - 1];
37
}
38
39
40
};
41
42
std::ostream&
operator<<
(std::ostream& o,
const
Cov6f& value);
43
44
#if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
45
void
to_json(nlohmann::json& j,
const
Cov6f& value);
46
#endif
47
48
namespace
v890 {
49
using
Cov6f
=
edm4eic::Cov6f
;
50
}
// namespace v890
51
52
53
}
// namespace edm4eic
54
55
56
#endif
edm4eic::Cov6f
Definition
Cov6f.h:20
edm4eic::Cov6f::covariance
std::array< float, 21 > covariance
6d triangular packed covariance matrix
Definition
Cov6f.h:22
edm4eic::Cov6f::Cov6f
Cov6f(std::array< float, 21 > vcov)
Definition
Cov6f.h:25
edm4eic::Cov6f::operator()
float operator()(unsigned i, unsigned j) const
Definition
Cov6f.h:26
edm4eic::Cov6f::Cov6f
Cov6f()
Definition
Cov6f.h:24
edm4eic::Cov6f::operator()
float & operator()(unsigned i, unsigned j)
Definition
Cov6f.h:32
edm4eic::v890::Cov6f
edm4eic::Cov6f Cov6f
Definition
Cov6f.h:49
edm4eic
Definition
CalorimeterHit.cc:17
edm4eic::operator<<
std::ostream & operator<<(std::ostream &o, const CalorimeterHit &value)
Definition
CalorimeterHit.cc:99
build
edm4eic
Cov6f.h
Generated by
1.17.0