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
/////////////////////////////////////
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
class
ZddChannel
{
17
public
:
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
35
private
:
36
int
m_chId;
37
int
m_scanCode;
38
Fragments
m_frags;
39
};
40
41
#endif
ZddChannel::getScanCode
int getScanCode() const
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:25
ZddChannel::fragments
const Fragments & fragments() const
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:27
ZddChannel::Fragments
std::vector< ZddFragment > Fragments
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:18
ZddChannel::addFragments
void addFragments(const ZddFragment &frag)
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:33
ZddChannel::setScanCode
void setScanCode(int scanCode)
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:31
ZddChannel::ZddChannel
ZddChannel()
Definition
ZddChannel.cxx:3
ZddChannel::~ZddChannel
virtual ~ZddChannel()
Definition
ZddChannel.cxx:5
ZddChannel::getChId
int getChId() const
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:23
ZddChannel::setChId
void setChId(int chId)
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:29
ZddFragment
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:7
ZddFragment::start_index
int start_index
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:8
ZddFragment::length
int length
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:9
ZddFragment::sample
unsigned char * sample
Definition
Event/ZddEvent/include/ZddEvent/ZddChannel.h:10
8.0.0
BOSS_Source
Event
ZddEvent
include
ZddEvent
ZddChannel.h
Generated by
1.16.1