File indexing completed on 2025-07-01 08:35:22
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #ifndef EDM4HEP_CONSTANTS_H
0020 #define EDM4HEP_CONSTANTS_H
0021
0022 #include <cstdint>
0023
0024 #define DEPRECATED_LABEL(name, newname) \
0025 static constexpr const auto name [[deprecated("Use 'edm4hep::labels::" #newname "' instead")]] = labels::newname
0026
0027 namespace edm4hep {
0028 namespace labels {
0029 static constexpr const char* CellIDEncoding = "CellIDEncoding";
0030 static constexpr const char* EventHeader = "EventHeader";
0031 static constexpr const char* EventWeightsNames = "EventWeightNames";
0032 static constexpr const char* ShapeParameterNames = "shapeParameterNames";
0033 static constexpr const char* EventFilterStats = "EventFilterStats";
0034
0035 static constexpr const char* MCParticles = "MCParticles";
0036
0037
0038 static constexpr const char* PIDParameterNames = "ParameterNames";
0039 static constexpr const char* PIDAlgoName = "AlgoName";
0040 static constexpr const char* PIDAlgoType = "AlgoType";
0041
0042
0043 static constexpr const char* GeneratorToolVersions = "GeneratorToolVersions";
0044 static constexpr const char* GeneratorToolNames = "GeneratorToolNames";
0045 static constexpr const char* GeneratorToolDescriptions = "GeneratorToolDescriptions";
0046 static constexpr const char* GeneratorEventParameters = "GeneratorEventParameters";
0047 static constexpr const char* GeneratorPdfInfo = "GeneratorPdfInfo";
0048 static constexpr const char* GeneratorWeightNames = "GeneratorWeightNames";
0049 }
0050
0051 DEPRECATED_LABEL(CellIDEncoding, CellIDEncoding);
0052 DEPRECATED_LABEL(EventHeaderName, EventHeader);
0053 DEPRECATED_LABEL(EventWeights, EventWeightsNames);
0054 DEPRECATED_LABEL(shapeParameterNames, ShapeParameterNames);
0055 DEPRECATED_LABEL(EventFilterStats, EventFilterStats);
0056
0057 DEPRECATED_LABEL(pidParameterNames, PIDParameterNames);
0058 DEPRECATED_LABEL(pidAlgoName, PIDAlgoName);
0059 DEPRECATED_LABEL(pidAlgoType, PIDAlgoType);
0060
0061
0062
0063 using DimType = std::uint16_t;
0064
0065
0066 enum class Cartesian : DimType { x = 0, y, z };
0067
0068
0069
0070 enum class FourMomCoords : DimType { x = 0, y, z, t };
0071
0072
0073 enum class TrackParams : DimType { d0 = 0, phi, omega, z0, tanLambda, time };
0074
0075
0076 enum class TrackerPulseDims : DimType { charge = 0, time };
0077
0078 }
0079
0080 #undef DEPRECATED_LABEL
0081
0082 #endif