BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ZddEvent/include/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/////////////////////////////////////
17public:
18 typedef std::vector<ZddFragment> Fragments;
19
20 ZddChannel();
21 virtual ~ZddChannel();
22
23 int getChId() const { return m_chId; }
24
25 int getScanCode() const { return m_scanCode; }
26
27 const Fragments& fragments() const { return m_frags; }
28
29 void setChId( int chId ) { m_chId = chId; }
30
31 void setScanCode( int scanCode ) { m_scanCode = scanCode; }
32
33 void addFragments( const ZddFragment& frag ) { m_frags.push_back( frag ); }
34
35private:
36 int m_chId;
37 int m_scanCode;
38 Fragments m_frags;
39};
40
41#endif
const Fragments & fragments() const
std::vector< ZddFragment > Fragments
void addFragments(const ZddFragment &frag)
virtual ~ZddChannel()
Definition ZddChannel.cxx:5