Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-14 08:38:00

0001 // AUTOMATICALLY GENERATED FILE - DO NOT EDIT
0002 
0003 #ifndef ACTSPODIOEDM_Jacobian_CollectionData_H
0004 #define ACTSPODIOEDM_Jacobian_CollectionData_H
0005 
0006 // datamodel specific includes
0007 #include "ActsPodioEdm/Jacobian.h"
0008 #include "ActsPodioEdm/JacobianData.h"
0009 #include "ActsPodioEdm/JacobianObj.h"
0010 
0011 // schema evolution specific includes
0012 
0013 // podio specific includes
0014 #include <deque>
0015 #include <memory>
0016 
0017 #include "podio/CollectionBuffers.h"
0018 #include "podio/ICollectionProvider.h"
0019 
0020 namespace ActsPodioEdm {
0021 
0022 using JacobianObjPointerContainer = std::deque<JacobianObj*>;
0023 using JacobianDataContainer = std::vector<JacobianData>;
0024 
0025 /**
0026  * Class encapsulating everything related to storage of data that is needed by a
0027  * collection.
0028  */
0029 class JacobianCollectionData {
0030  public:
0031   /**
0032    * The Objs of this collection
0033    */
0034   JacobianObjPointerContainer entries{};
0035 
0036   /**
0037    * Default constructor setting up the necessary buffers
0038    */
0039   JacobianCollectionData();
0040 
0041   /**
0042    * Constructor from existing I/O buffers
0043    */
0044   JacobianCollectionData(podio::CollectionReadBuffers&& buffers,
0045                          bool isSubsetColl);
0046 
0047   /**
0048    * Non copy-able, move-only class
0049    */
0050   JacobianCollectionData(const JacobianCollectionData&) = delete;
0051   JacobianCollectionData& operator=(const JacobianCollectionData&) = delete;
0052   JacobianCollectionData(JacobianCollectionData&& other) = default;
0053   JacobianCollectionData& operator=(JacobianCollectionData&& other) = default;
0054 
0055   /**
0056    * Destructor
0057    */
0058   ~JacobianCollectionData() = default;
0059 
0060   void clear(bool isSubsetColl);
0061 
0062   podio::CollectionWriteBuffers getCollectionBuffers(bool isSubsetColl);
0063 
0064   void prepareForWrite(bool isSubsetColl);
0065 
0066   void prepareAfterRead(uint32_t collectionID);
0067 
0068   void makeSubsetCollection();
0069 
0070   bool setReferences(const podio::ICollectionProvider* collectionProvider,
0071                      bool isSubsetColl);
0072 
0073  private:
0074   // members to handle 1-to-N-relations
0075 
0076   // members to handle vector members
0077 
0078   // I/O related buffers
0079   podio::CollRefCollection m_refCollections{};
0080   podio::VectorMembersInfo m_vecmem_info{};
0081   std::unique_ptr<JacobianDataContainer> m_data{nullptr};
0082 };
0083 
0084 }  // namespace ActsPodioEdm
0085 
0086 #endif