Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-10-30 08:10:12

0001 // AUTOMATICALLY GENERATED FILE - DO NOT EDIT
0002 
0003 #ifndef ActsPodioEdmDATAMODEL_DEFINITION_H
0004 #define ActsPodioEdmDATAMODEL_DEFINITION_H
0005 
0006 #include "podio/DatamodelRegistry.h"
0007 #include "podio/SchemaEvolution.h"
0008 
0009 namespace ActsPodioEdm::meta {
0010 /**
0011  * The complete definition of the datamodel at generation time in JSON format.
0012  */
0013 static constexpr auto ActsPodioEdm__JSONDefinition =
0014     R"DATAMODELDEF({"options": {"getSyntax": true, "exposePODMembers": false, "includeSubfolder": "ActsPodioEdm/"}, "schema_version": 1, "components": {"ActsPodioEdm::Vector3f": {"Members": ["float x", "float y", "float z"], "ExtraCode": {"declaration": " constexpr Vector3f() : x(0),y(0),z(0) {}\n constexpr Vector3f(float xx, float yy, float zz) : x(xx),y(yy),z(zz) {}\n constexpr Vector3f(const float* v) : x(v[0]),y(v[1]),z(v[2]) {}\n constexpr bool operator==(const Vector3f& v) const { return (x==v.x&&y==v.y&&z==v.z) ; }\n constexpr float operator[](unsigned i) const { return *( &x + i ) ; }\n "}}, "ActsPodioEdm::Surface": {"Members": ["int surfaceType", "int boundsType", "std::uint64_t geometryId", "std::uint64_t identifier", "std::array<double, 10> boundValues", "std::uint32_t boundValuesSize", "std::array<double, 16> transform"]}, "ActsPodioEdm::TrackInfo": {"Members": ["std::array<double, 6> parameters", "std::array<double, 36> covariance // local covariance", "std::uint32_t tipIndex // index of the outermost track state", "std::uint32_t stemIndex // index of the innermost track state", "unsigned int nMeasurements // number of measurements", "unsigned int nHoles // number of holes", "float chi2 // chi squared of the track", "unsigned int ndf // number of degrees of freedom", "unsigned int nOutliers // number of outliers", "unsigned int nSharedHits // number of shared hits"]}, "ActsPodioEdm::TrackStateInfo": {"Members": ["std::uint32_t previous", "std::uint32_t next", "std::uint32_t ipredicted", "std::uint32_t ifiltered", "std::uint32_t ismoothed", "std::array<double, 6> measurement", "std::array<double, 36> measurementCovariance", "std::uint32_t measdim", "std::uint32_t ijacobian", "std::uint64_t projector", "bool hasProjector", "float chi2", "double pathLength", "std::uint64_t typeFlags", "std::uint64_t uncalibratedIdentifier"]}, "ActsPodioEdm::BoundParametersInfo": {"Members": ["std::array<double, 6> values", "std::array<double, 36> covariance"]}, "ActsPodioEdm::JacobianInfo": {"Members": ["std::array<double, 36> values"]}, "ActsPodioEdm::ParticleHypothesis": {"Members": ["std::uint32_t absPdg", "float mass", "float absQ"]}}, "datatypes": {"ActsPodioEdm::Track": {"Description": "Reconstructed track", "Author": "Paul Gessinger, CERN", "Members": ["ActsPodioEdm::TrackInfo data // local parameters and covariance", "ActsPodioEdm::Surface referenceSurface // reference surface", "ActsPodioEdm::ParticleHypothesis particleHypothesis // particle hypothesis"], "VectorMembers": [], "OneToOneRelations": [], "OneToManyRelations": [], "ExtraCode": {}, "MutableExtraCode": {}}, "ActsPodioEdm::TrackState": {"Description": "Local state on a track", "Author": "Paul Gessinger, CERN", "Members": ["ActsPodioEdm::TrackStateInfo data // local information", "ActsPodioEdm::Surface referenceSurface // reference surface"], "VectorMembers": [], "OneToOneRelations": [], "OneToManyRelations": [], "ExtraCode": {}, "MutableExtraCode": {}}, "ActsPodioEdm::BoundParameters": {"Description": "Local track parameters", "Author": "Paul Gessinger, CERN", "Members": ["ActsPodioEdm::BoundParametersInfo data // parameter information"], "VectorMembers": [], "OneToOneRelations": [], "OneToManyRelations": [], "ExtraCode": {}, "MutableExtraCode": {}}, "ActsPodioEdm::Jacobian": {"Description": "Jacobian matrix from the previous track state to the current one", "Author": "Paul Gessinger, CERN", "Members": ["ActsPodioEdm::JacobianInfo data // the jacobian data"], "VectorMembers": [], "OneToOneRelations": [], "OneToManyRelations": [], "ExtraCode": {}, "MutableExtraCode": {}}}, "interfaces": {}, "links": {}})DATAMODELDEF";
0015 
0016 /**
0017  * The names of all relations and vector members for all datatypes
0018  */
0019 inline podio::RelationNameMapping ActsPodioEdm__getRelationNames() {
0020   using namespace std::string_view_literals;
0021   return {
0022       {
0023           "ActsPodioEdm::Track"sv,
0024           {},
0025           {},
0026       },
0027       {
0028           "ActsPodioEdm::TrackState"sv,
0029           {},
0030           {},
0031       },
0032       {
0033           "ActsPodioEdm::BoundParameters"sv,
0034           {},
0035           {},
0036       },
0037       {
0038           "ActsPodioEdm::Jacobian"sv,
0039           {},
0040           {},
0041       },
0042   };
0043 }
0044 
0045 /**
0046  * The schema version at generation time
0047  */
0048 static constexpr podio::SchemaVersionT schemaVersion = 1;
0049 
0050 /**
0051  * The helper class that takes care of registering the datamodel definition to
0052  * the DatamodelRegistry and to provide the index in that registry.
0053  *
0054  * Implemented as a singleton mainly to ensure only a single registration of
0055  * each datamodel, during the constructor
0056  */
0057 class DatamodelRegistryIndex {
0058  public:
0059   static size_t value() {
0060     static const auto relationNames = ActsPodioEdm__getRelationNames();
0061     static auto index = DatamodelRegistryIndex(
0062         podio::DatamodelRegistry::mutInstance().registerDatamodel(
0063             "ActsPodioEdm", ActsPodioEdm__JSONDefinition, relationNames));
0064     return index.m_value;
0065   }
0066 
0067  private:
0068   DatamodelRegistryIndex(size_t v) : m_value(v) {}
0069   size_t m_value{podio::DatamodelRegistry::NoDefinitionAvailable};
0070 };
0071 
0072 namespace static_registration {
0073 // The usual trick via an IIFE and a const variable that we assign to, to
0074 // ensure that we populate this before everything starts
0075 inline bool ensureRegistration() {
0076   const static auto reg = []() {
0077     return ActsPodioEdm::meta::DatamodelRegistryIndex::value() !=
0078            podio::DatamodelRegistry::NoDefinitionAvailable;
0079   }();
0080   return reg;
0081 }
0082 
0083 const auto registrationEnsured = ensureRegistration();
0084 }  // namespace static_registration
0085 
0086 }  // namespace ActsPodioEdm::meta
0087 
0088 #endif