Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-10-13 09:43:11

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 #pragma once
0006 #include <JANA/JObject.h>
0007 #include <cstdint>
0008 
0009 struct TDCPulse: public JObject {
0010 
0011     JOBJECT_PUBLIC(TDCPulse)
0012 
0013     uint32_t crate;
0014     uint32_t slot;
0015     uint32_t channel;
0016 
0017     uint32_t coarse_time;
0018     uint32_t fine_time;
0019     bool is_leading;
0020 
0021     void Summarize(JObjectSummary& summary) const override {
0022         summary.add(crate, NAME_OF(crate), "%d");
0023         summary.add(slot, NAME_OF(slot), "%d");
0024         summary.add(channel, NAME_OF(channel), "%d");
0025         summary.add(coarse_time, NAME_OF(coarse_time), "%d");
0026         summary.add(fine_time, NAME_OF(fine_time), "%d");
0027         summary.add(is_leading, NAME_OF(is_leading), "%d");
0028     }
0029 };
0030 
0031