|
|
|||
File indexing completed on 2026-03-30 07:57:05
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::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": {}}, "ActsPodioEdm::Measurement": {"Description": "Local representation of a measurement", "Author": "Paul Gessinger, CERN", "Members": ["std::uint64_t geometryId // the associated surface identifier"], "VectorMembers": ["std::uint16_t indices // the local indices", "double parameterValues // the measurement parameter value", "double covarianceValues // the measurement covairance value"], "OneToOneRelations": ["edm4hep::SimTrackerHit simHit // the associated simulated hit"], "ExtraCode": {"declaration": "std::size_t size() const {\n return indices_size();\n}\n"}, "OneToManyRelations": [], "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 "ActsPodioEdm::Measurement"sv, 0044 {"simHit"sv}, 0045 {"indices"sv, "parameterValues"sv, "covarianceValues"sv}, 0046 }, 0047 }; 0048 } 0049 0050 /** 0051 * The schema version at generation time 0052 */ 0053 static constexpr podio::SchemaVersionT schemaVersion = 1; 0054 0055 /** 0056 * The helper class that takes care of registering the datamodel definition to 0057 * the DatamodelRegistry and to provide the index in that registry. 0058 * 0059 * Implemented as a singleton mainly to ensure only a single registration of 0060 * each datamodel, during the constructor 0061 */ 0062 class DatamodelRegistryIndex { 0063 public: 0064 static size_t value() { 0065 static const auto relationNames = ActsPodioEdm__getRelationNames(); 0066 static auto index = DatamodelRegistryIndex( 0067 podio::DatamodelRegistry::mutInstance().registerDatamodel( 0068 "ActsPodioEdm", ActsPodioEdm__JSONDefinition, relationNames)); 0069 return index.m_value; 0070 } 0071 0072 private: 0073 DatamodelRegistryIndex(size_t v) : m_value(v) {} 0074 size_t m_value{podio::DatamodelRegistry::NoDefinitionAvailable}; 0075 }; 0076 0077 namespace static_registration { 0078 // The usual trick via an IIFE and a const variable that we assign to, to 0079 // ensure that we populate this before everything starts 0080 inline bool ensureRegistration() { 0081 const static auto reg = []() { 0082 return ActsPodioEdm::meta::DatamodelRegistryIndex::value() != 0083 podio::DatamodelRegistry::NoDefinitionAvailable; 0084 }(); 0085 return reg; 0086 } 0087 0088 const auto registrationEnsured = ensureRegistration(); 0089 } // namespace static_registration 0090 0091 } // namespace ActsPodioEdm::meta 0092 0093 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|