CGEM BOSS 6.6.5.i
BESIII Offline Software System
Loading...
Searching...
No Matches
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/////////////////////////////////////
18{
19 public :
20
21 typedef std::vector<ZddFragment> Fragments;
22
23 ZddChannel();
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
#define private
int getScanCode() const
Definition ZddChannel.h:28
const Fragments & fragments() const
Definition ZddChannel.h:30
void addFragments(const ZddFragment &frag)
Definition ZddChannel.h:36
void setScanCode(int scanCode)
Definition ZddChannel.h:34
virtual ~ZddChannel()
Definition ZddChannel.cxx:8
int getChId() const
Definition ZddChannel.h:26
std::vector< ZddFragment > Fragments
Definition ZddChannel.h:21
void setChId(int chId)
Definition ZddChannel.h:32
int start_index
Definition ZddChannel.h:8
unsigned char * sample
Definition ZddChannel.h:10