| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /**\file | ||
| 2 | * \brief Declarations for calorimetry data | ||
| 3 | * | ||
| 4 | * The calorimeter assembly energy deposition sum. May be not unique on event | ||
| 5 | * to facilitate pile-up separation. | ||
| 6 | * | ||
| 7 | * \author Alexey Shevelev | ||
| 8 | * \author Renat Dusaev | ||
| 9 | * | ||
| 10 | * \warning This is a file generated for event's data structure. | ||
| 11 | * \note Generated at 14/08/2025 23:52:56 with template utils/evstruct/templates/cpp/impl.cc | ||
| 12 | * \version 0.1 | ||
| 13 | */ | ||
| 14 | |||
| 15 | |||
| 16 | #include "na64event/data/calo.hh" | ||
| 17 | |||
| 18 | #include <cmath> | ||
| 19 | #include "na64event/reset-values.hh" | ||
| 20 | |||
| 21 | namespace na64dp { | ||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 | namespace event { | ||
| 26 | ✗ | CaloHit::CaloHit( LocalMemory & lmem ) | |
| 27 | ✗ | : hits(lmem) | |
| 28 | |||
| 29 | ✗ | {} | |
| 30 | } // namespace ::event::na64dp | ||
| 31 | |||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | namespace util { | ||
| 36 | ✗ | void reset( event::CaloHit & obj ) { | |
| 37 | using namespace event; | ||
| 38 | |||
| 39 | ✗ | obj.hits.clear(); | |
| 40 | ✗ | ::na64dp::util::reset(obj.timeClusterLabel); | |
| 41 | |||
| 42 | ✗ | ::na64dp::util::reset(obj.eDep); | |
| 43 | |||
| 44 | ✗ | ::na64dp::util::reset(obj.eDepError); | |
| 45 | |||
| 46 | ✗ | ::na64dp::util::reset(obj.time); | |
| 47 | |||
| 48 | ✗ | ::na64dp::util::reset(obj.timeStddev); | |
| 49 | |||
| 50 | } | ||
| 51 | } // namespace ::na64dp::util | ||
| 52 | |||
| 53 | |||
| 54 | namespace event { | ||
| 55 | |||
| 56 | |||
| 57 | |||
| 58 | |||
| 59 | // getter for CaloHit::hits disabled | ||
| 60 | ✗ | static StdFloat_t _CaloHit_get_timeClusterLabel( const CaloHit & obj ) { | |
| 61 | ✗ | return static_cast<StdFloat_t>(obj.timeClusterLabel); // simple value | |
| 62 | } | ||
| 63 | ✗ | static StdFloat_t _CaloHit_get_eDep( const CaloHit & obj ) { | |
| 64 | ✗ | return static_cast<StdFloat_t>(obj.eDep); // simple value | |
| 65 | } | ||
| 66 | ✗ | static StdFloat_t _CaloHit_get_eDepError( const CaloHit & obj ) { | |
| 67 | ✗ | return static_cast<StdFloat_t>(obj.eDepError); // simple value | |
| 68 | } | ||
| 69 | ✗ | static StdFloat_t _CaloHit_get_time( const CaloHit & obj ) { | |
| 70 | ✗ | return static_cast<StdFloat_t>(obj.time); // simple value | |
| 71 | } | ||
| 72 | ✗ | static StdFloat_t _CaloHit_get_timeStddev( const CaloHit & obj ) { | |
| 73 | ✗ | return static_cast<StdFloat_t>(obj.timeStddev); // simple value | |
| 74 | } | ||
| 75 | |||
| 76 | ✗ | static StdFloat_t _CaloHit_get_nHits( const CaloHit & obj ) { return obj.hits.size(); } | |
| 77 | |||
| 78 | |||
| 79 | const Traits<CaloHit>::Getters | ||
| 80 | Traits<CaloHit>::getters = { | ||
| 81 | |||
| 82 | |||
| 83 | // getter for CaloHit::hits disabled | ||
| 84 | { "timeClusterLabel", { "Time cluster label, may be not set", _CaloHit_get_timeClusterLabel } }, | ||
| 85 | { "eDep", { "Energy deposition sum, MeV", _CaloHit_get_eDep } }, | ||
| 86 | { "eDepError", { "Estimated energy deposition\u0027s error", _CaloHit_get_eDepError } }, | ||
| 87 | { "time", { "Mean time", _CaloHit_get_time } }, | ||
| 88 | { "timeStddev", { "Time standard deviation (of hits)", _CaloHit_get_timeStddev } }, | ||
| 89 | |||
| 90 | { "nHits", { "Returns number of SADC hits", _CaloHit_get_nHits } }, | ||
| 91 | |||
| 92 | }; | ||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | } // namespace ::na64dp::event | ||
| 97 | } // namespace na64dp | ||
| 98 |