Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:55:28

0001 // AUTOMATICALLY GENERATED FILE - DO NOT EDIT
0002 
0003 #ifndef EDM4EIC_CovDiag3f_H
0004 #define EDM4EIC_CovDiag3f_H
0005 
0006 #include <ostream>
0007 
0008 #if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
0009 #include "nlohmann/json_fwd.hpp"
0010 #endif
0011 
0012 namespace edm4eic {
0013 
0014 /** @class CovDiag3f
0015  *  
0016  *  @author: 
0017  */
0018 class CovDiag3f {
0019 public:
0020   float xx{};
0021   float yy{};
0022   float zz{};
0023 
0024  CovDiag3f() : xx{0}, yy{0}, zz{0} {}
0025  CovDiag3f(double x, double y, double z)
0026  : xx{static_cast<float>(x)}, yy{static_cast<float>(y)}, zz{static_cast<float>(z)} {}
0027  float operator()(unsigned i, unsigned j) const {return (i == j) ? *(&xx + i) : 0.;}
0028  
0029 
0030 };
0031 
0032 std::ostream& operator<<(std::ostream& o, const edm4eic::CovDiag3f& value);
0033 
0034 #if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
0035 void to_json(nlohmann::json& j, const CovDiag3f& value);
0036 #endif
0037 
0038 } // namespace edm4eic
0039 
0040 
0041 #endif