6 #ifndef CMYEVENTSEGMENT_H
7 #define CMYEVENTSEGMENT_H
9 #include <CEventSegment.h>
42 uint32_t s_tstampHighCFD;
53 unsigned getChan()
const {
60 unsigned getSlot()
const {
61 return (s_id & 0xf0) >> 4;
67 unsigned getCrate()
const {
68 return (s_id & 0xf00) >> 8;
74 unsigned headerLength()
const {
75 return (s_id & 0x1f000) >> 12;
81 unsigned eventLength()
const {
82 return (s_id & 0x7ffe0000) >> 17;
89 std::vector<int> m_modEvtLens;
97 bool m_systemInitialized;
98 bool m_firmwareLoadedRecently;
100 CExperiment* m_pExperiment;
104 size_t m_nCumulativeBytes;
105 size_t m_nBytesPerRun;
123 virtual void initialize();
130 virtual size_t read(
void* rBuffer,
size_t maxwords);
132 virtual void disable();
134 virtual void clear();
137 virtual void onBegin();
139 virtual void onResume();
141 virtual void onEnd(CExperiment* pExperiment);
152 int GetCrateID()
const;
177 return std::pair<size_t, size_t>(m_nCumulativeBytes, m_nBytesPerRun);
const int MAX_MODULES_PER_CRATE
A full crate is 13 modules.
Definition: CMyEventSegment.h:16
Defines a class for storing system configuration information.
Defines a class to manage the booting process for DDAS.
Derived class for DDAS event segments.
Definition: CMyEventSegment.h:31
~CMyEventSegment()
Destructor.
CMyEventSegment()
Default constructor.
std::pair< size_t, size_t > getStatistics()
Get the cumulative and current run statistics.
Definition: CMyEventSegment.h:176
size_t GetNumberOfModules()
Get the number of modules in the crate.
Definition: CMyEventSegment.h:147
Trigger class for DDAS.
Definition: CMyTrigger.h:24
Store the system configuration information needed by Readout.
Definition: Configuration.h:81
BootType
An enum for boot type bitmasks.
Definition: SystemBooter.h:59
@ FullBoot
Bitmask for full boot with firmware load.
Definition: SystemBooter.h:60