Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-10-13 09:14:34

0001 // AUTOMATICALLY GENERATED FILE - DO NOT EDIT
0002 
0003 #ifndef EDM4EIC_HGCROCSample_H
0004 #define EDM4EIC_HGCROCSample_H
0005 
0006 #include <cstdint>
0007 #include <ostream>
0008 
0009 #if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
0010 #include "nlohmann/json_fwd.hpp"
0011 #endif
0012 
0013 namespace edm4eic {
0014 
0015 /** @class HGCROCSample
0016  *  
0017  *  @author: 
0018  */
0019 class HGCROCSample {
0020 public:
0021   std::uint16_t ADC{}; ///< [ADC Counts], amplitude of signal during sample, valid IFF TOTInProgress is false
0022   std::uint16_t timeOfArrival{}; ///< Time of arrival (TOA) [TDC counts], nonzero IFF ADC crossed threshold upwards during sample
0023   std::uint16_t timeOverThreshold{}; ///< Time over threshold (TOT) [TDC counts], nonzero IFF ADC crossed threshold downwards during sample AND if TOA fired in a previous sample
0024   bool TOTInProgress{}; ///< Flag which indicates if TOT calculation is ongoing, ADC value may be corrupted if this is true
0025   bool TOTComplete{}; ///< Flag which indicates if a TOT calculation is complete and TOT value is valid
0026 
0027 
0028 };
0029 
0030 std::ostream& operator<<(std::ostream& o, const edm4eic::HGCROCSample& value);
0031 
0032 #if defined(PODIO_JSON_OUTPUT) && !defined(__CLING__)
0033 void to_json(nlohmann::json& j, const HGCROCSample& value);
0034 #endif
0035 
0036 } // namespace edm4eic
0037 
0038 
0039 #endif