File indexing completed on 2026-10-03 09:05:32
0001
0002
0003 #ifndef EDM4HEP_Quantity_H
0004 #define EDM4HEP_Quantity_H
0005
0006 #include <cstdint>
0007 #include <ostream>
0008
0009 #if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
0010 #include "nlohmann/json_fwd.hpp"
0011 #endif
0012
0013 namespace edm4hep {
0014
0015
0016
0017
0018
0019 class Quantity {
0020 public:
0021 std::int32_t type{};
0022 float value{};
0023 float error{};
0024 };
0025
0026 std::ostream& operator<<(std::ostream& o, const Quantity& value);
0027
0028 #if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
0029 void to_json(nlohmann::json& j, const Quantity& value);
0030 #endif
0031
0032 namespace v6 {
0033 using Quantity = edm4hep::Quantity;
0034 }
0035
0036
0037 namespace v5 {
0038
0039 class Quantity {
0040 public:
0041 std::int16_t type{};
0042 float value{};
0043 float error{};
0044 };
0045
0046 }
0047 namespace v4 {
0048
0049 class Quantity {
0050 public:
0051 std::int16_t type{};
0052 float value{};
0053 float error{};
0054 };
0055
0056 }
0057 namespace v3 {
0058
0059 class Quantity {
0060 public:
0061 std::int16_t type{};
0062 float value{};
0063 float error{};
0064 };
0065
0066 }
0067 namespace v2 {
0068
0069 class Quantity {
0070 public:
0071 std::int16_t type{};
0072 float value{};
0073 float error{};
0074 };
0075
0076 }
0077
0078 }
0079
0080 #endif