Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:17:18

0001 
0002 // Copyright 2020, Jefferson Science Associates, LLC.
0003 // Subject to the terms in the LICENSE file found in the top-level directory.
0004 
0005 
0006 #ifndef _ADCSample_h_
0007 #define _ADCSample_h_
0008 
0009 #include <JANA/JObject.h>
0010 
0011 struct ADCSample : public JObject {
0012 
0013     // define data types
0014     uint32_t source_id;   // 32-bit identifier governed by the INDRA message format
0015     uint16_t channel_id;  // adc channel number
0016     uint16_t sample_id;   // adc sample number
0017     uint16_t adc_value;   // adc sample value
0018 
0019     // construct the jobect
0020     void Summarize(JObjectSummary& summary) const override {
0021         summary.add(source_id,  NAME_OF(source_id), "%d");
0022         summary.add(sample_id,  NAME_OF(sample_id),  "%d");
0023         summary.add(channel_id, NAME_OF(channel_id), "%d");
0024         summary.add(adc_value,  NAME_OF(adc_value),  "%d");
0025     }
0026 };
0027 
0028 #endif  // _ADCSample_h_