Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-07-01 08:57:58

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 ADCHit : public JObject {
0010 
0011     JOBJECT_PUBLIC(ADCHit)
0012 
0013     uint32_t crate;
0014     uint32_t slot;
0015     uint32_t channel;
0016     uint32_t energy;
0017     uint32_t timestamp;
0018 
0019     void Summarize(JObjectSummary& summary) const override {
0020         summary.add(crate, NAME_OF(crate), "%f");
0021         summary.add(slot, NAME_OF(slot), "%f");
0022         summary.add(channel, NAME_OF(channel), "%f");
0023         summary.add(energy, NAME_OF(energy), "%f", "Energy in GeV");
0024         summary.add(timestamp, NAME_OF(timestamp), "%f", "Time in ticks since timeframe start");
0025     }
0026 };
0027 
0028