Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-16 09:07:42

0001 // AUTOMATICALLY GENERATED FILE - DO NOT EDIT
0002 
0003 #ifndef EDM4HEP_CaloHitContributionDATA_H
0004 #define EDM4HEP_CaloHitContributionDATA_H
0005 
0006 #include "edm4hep/Vector3f.h"
0007 #include <cstdint>
0008 
0009 namespace edm4hep {
0010 
0011 /** @class CaloHitContributionData
0012  *  Monte Carlo contribution to SimCalorimeterHit
0013  *  @author: EDM4hep authors
0014  */
0015 class CaloHitContributionData {
0016 public:
0017   std::int32_t PDG{};                 ///< PDG code of the shower particle that caused this contribution
0018   float energy{};                     ///< energy of this contribution [GeV]
0019   float time{};                       ///< time of this contribution [ns]
0020   ::edm4hep::Vector3f stepPosition{}; ///< position of this energy deposition (step) [mm]
0021   float stepLength{};                 ///< Geant4 step length for this contribution [mm]
0022 };
0023 
0024 namespace v6 {
0025   using CaloHitContributionData = edm4hep::CaloHitContributionData;
0026 } // namespace v6
0027 
0028 // Definition for older versions
0029 namespace v5 {
0030   class CaloHitContributionData {
0031   public:
0032     std::int32_t PDG{};                     ///< PDG code of the shower particle that caused this contribution
0033     float energy{};                         ///< energy of this contribution [GeV]
0034     float time{};                           ///< time of this contribution [ns]
0035     ::edm4hep::v5::Vector3f stepPosition{}; ///< position of this energy deposition (step) [mm]
0036     float stepLength{};                     ///< Geant4 step length for this contribution [mm]
0037   };
0038 } // namespace v5
0039 namespace v4 {
0040   class CaloHitContributionData {
0041   public:
0042     std::int32_t PDG{};                     ///< PDG code of the shower particle that caused this contribution
0043     float energy{};                         ///< energy of this contribution [GeV]
0044     float time{};                           ///< time of this contribution [ns]
0045     ::edm4hep::v4::Vector3f stepPosition{}; ///< position of this energy deposition (step) [mm]
0046     float stepLength{};                     ///< Geant4 step length for this contribution [mm]
0047   };
0048 } // namespace v4
0049 namespace v3 {
0050   class CaloHitContributionData {
0051   public:
0052     std::int32_t PDG{};                     ///< PDG code of the shower particle that caused this contribution
0053     float energy{};                         ///< energy of this contribution [GeV]
0054     float time{};                           ///< time of this contribution [ns]
0055     ::edm4hep::v3::Vector3f stepPosition{}; ///< position of this energy deposition (step) [mm]
0056   };
0057 } // namespace v3
0058 namespace v2 {
0059   class CaloHitContributionData {
0060   public:
0061     std::int32_t PDG{};                     ///< PDG code of the shower particle that caused this contribution
0062     float energy{};                         ///< energy of the this contribution [G]
0063     float time{};                           ///< time of this contribution [ns]
0064     ::edm4hep::v2::Vector3f stepPosition{}; ///< position of this energy deposition (step) [mm]
0065   };
0066 } // namespace v2
0067 
0068 } // namespace edm4hep
0069 
0070 #endif