BOSS
7.0.5
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
/////////////////////////////////////
7
typedef
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
13
ZddFragment
;
14
15
16
/////////////////////////////////////
17
class
ZddChannel
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
private
#define private
Definition:
Event/RootEventData/RootEventData-00-03-81/RootEventData/RootEventData_rootcint.cxx:11
ZddChannel
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:18
ZddChannel::~ZddChannel
virtual ~ZddChannel()
ZddChannel::getScanCode
int getScanCode() const
Definition:
InstallArea/include/ZddEvent/ZddEvent/ZddChannel.h:28
ZddChannel::fragments
const Fragments & fragments() const
Definition:
InstallArea/include/ZddEvent/ZddEvent/ZddChannel.h:30
ZddChannel::Fragments
std::vector< ZddFragment > Fragments
Definition:
InstallArea/include/ZddEvent/ZddEvent/ZddChannel.h:21
ZddChannel::addFragments
void addFragments(const ZddFragment &frag)
Definition:
InstallArea/include/ZddEvent/ZddEvent/ZddChannel.h:36
ZddChannel::setScanCode
void setScanCode(int scanCode)
Definition:
InstallArea/include/ZddEvent/ZddEvent/ZddChannel.h:34
ZddChannel::ZddChannel
ZddChannel()
ZddChannel::getChId
int getChId() const
Definition:
InstallArea/include/ZddEvent/ZddEvent/ZddChannel.h:26
ZddChannel::setChId
void setChId(int chId)
Definition:
InstallArea/include/ZddEvent/ZddEvent/ZddChannel.h:32
ZddFragment
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:7
source
InstallArea
include
ZddEvent
ZddEvent
ZddChannel.h
Generated by
1.9.6