Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-03 09:05:32

0001 // AUTOMATICALLY GENERATED FILE - DO NOT EDIT
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 /** @class Quantity
0016  *
0017  *  @author:
0018  */
0019 class Quantity {
0020 public:
0021   std::int32_t type{}; ///< flag identifying how to interpret the quantity
0022   float value{};       ///< value of the quantity
0023   float error{};       ///< error on the value of the quantity
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 } // namespace v6
0035 
0036 // Definitions for older versions
0037 namespace v5 {
0038 
0039   class Quantity {
0040   public:
0041     std::int16_t type{}; ///< flag identifying how to interpret the quantity
0042     float value{};       ///< value of the quantity
0043     float error{};       ///< error on the value of the quantity
0044   };
0045 
0046 } // namespace v5
0047 namespace v4 {
0048 
0049   class Quantity {
0050   public:
0051     std::int16_t type{}; ///< flag identifying how to interpret the quantity
0052     float value{};       ///< value of the quantity
0053     float error{};       ///< error on the value of the quantity
0054   };
0055 
0056 } // namespace v4
0057 namespace v3 {
0058 
0059   class Quantity {
0060   public:
0061     std::int16_t type{}; ///< flag identifying how to interpret the quantity
0062     float value{};       ///< value of the quantity
0063     float error{};       ///< error on the value of the quantity
0064   };
0065 
0066 } // namespace v3
0067 namespace v2 {
0068 
0069   class Quantity {
0070   public:
0071     std::int16_t type{}; ///< flag identifying how to interpret the quantity
0072     float value{};       ///< value of the quantity
0073     float error{};       ///< error on the value of the quantity
0074   };
0075 
0076 } // namespace v2
0077 
0078 } // namespace edm4hep
0079 
0080 #endif