BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/ZddEvent/ZddEvent/ZddChannel.h
Go to the documentation of this file.
1#ifndef Event_ZDD_CHANNEL_H
2#define Event_ZDD_CHANNEL_H
3
4#include <vector>
5
6/////////////////////////////////////
7typedef struct {
8 int start_index; //the index of the 1st sample in this fragment
9 int length; //the length (in bytes) of this fragment
10 unsigned char* sample; //data samples in this fragment
11}
12// the data model for a ZDD fragment
14
15
16/////////////////////////////////////
17class ZddChannel
18{
19 public :
20
21 typedef std::vector<ZddFragment> Fragments;
22
24 virtual ~ZddChannel();
25
26 int getChId() const { return m_chId; }
27
28 int getScanCode() const { return m_scanCode; }
29
30 const Fragments& fragments() const { return m_frags; }
31
32 void setChId(int chId) { m_chId = chId; }
33
34 void setScanCode(int scanCode) { m_scanCode = scanCode; }
35
36 void addFragments(const ZddFragment& frag) { m_frags.push_back(frag); }
37
38 private :
39
40 int m_chId;
41 int m_scanCode;
42 Fragments m_frags;
43};
44
45#endif
virtual ~ZddChannel()
void addFragments(const ZddFragment &frag)