Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // AUTOMATICALLY GENERATED FILE - DO NOT EDIT
0002 
0003 #ifndef EDM4HEP_ObjectID_H
0004 #define EDM4HEP_ObjectID_H
0005 
0006 #include <cstdint>
0007 #include <ostream>
0008 #include <podio/ObjectID.h>
0009 
0010 #if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
0011 #include "nlohmann/json_fwd.hpp"
0012 #endif
0013 
0014 namespace edm4hep {
0015 
0016 /** @class ObjectID
0017  *
0018  *  @author:
0019  */
0020 class ObjectID {
0021 public:
0022   std::int32_t index{};
0023   std::int32_t collectionID{};
0024 
0025   ObjectID() = default;
0026   ObjectID(const podio::ObjectID& id) : index(id.index), collectionID(id.collectionID) {
0027   }
0028 };
0029 
0030 std::ostream& operator<<(std::ostream& o, const edm4hep::ObjectID& value);
0031 
0032 #if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
0033 void to_json(nlohmann::json& j, const ObjectID& value);
0034 #endif
0035 
0036 } // namespace edm4hep
0037 
0038 #endif