BOSS
7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ZddEvent/ZddEvent-00-00-04/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-80/RootEventData/RootEventData_rootcint.cxx:11
ZddChannel
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:18
ZddChannel::getScanCode
int getScanCode() const
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:28
ZddChannel::fragments
const Fragments & fragments() const
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:30
ZddChannel::Fragments
std::vector< ZddFragment > Fragments
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:21
ZddChannel::addFragments
void addFragments(const ZddFragment &frag)
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:36
ZddChannel::setScanCode
void setScanCode(int scanCode)
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:34
ZddChannel::ZddChannel
ZddChannel()
Definition:
ZddChannel.cxx:3
ZddChannel::~ZddChannel
virtual ~ZddChannel()
Definition:
ZddChannel.cxx:8
ZddChannel::getChId
int getChId() const
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:26
ZddChannel::setChId
void setChId(int chId)
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:32
ZddFragment
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:7
ZddFragment::start_index
int start_index
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:8
ZddFragment::length
int length
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:9
ZddFragment::sample
unsigned char * sample
Definition:
Event/ZddEvent/ZddEvent-00-00-04/ZddEvent/ZddChannel.h:10
source
Event
ZddEvent
ZddEvent-00-00-04
ZddEvent
ZddChannel.h
Generated by
1.9.6