CGEM BOSS
6.6.5.h
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
/////////////////////////////////////
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
RootEventData_rootcint.cxx:11
ZddChannel
Definition
ZddChannel.h:18
ZddChannel::getScanCode
int getScanCode() const
Definition
ZddChannel.h:28
ZddChannel::fragments
const Fragments & fragments() const
Definition
ZddChannel.h:30
ZddChannel::addFragments
void addFragments(const ZddFragment &frag)
Definition
ZddChannel.h:36
ZddChannel::setScanCode
void setScanCode(int scanCode)
Definition
ZddChannel.h:34
ZddChannel::ZddChannel
ZddChannel()
Definition
ZddChannel.cxx:3
ZddChannel::~ZddChannel
virtual ~ZddChannel()
Definition
ZddChannel.cxx:8
ZddChannel::getChId
int getChId() const
Definition
ZddChannel.h:26
ZddChannel::Fragments
std::vector< ZddFragment > Fragments
Definition
ZddChannel.h:21
ZddChannel::setChId
void setChId(int chId)
Definition
ZddChannel.h:32
ZddFragment
Definition
ZddChannel.h:7
ZddFragment::start_index
int start_index
Definition
ZddChannel.h:8
ZddFragment::sample
unsigned char * sample
Definition
ZddChannel.h:10
ZddFragment::length
int length
Definition
ZddChannel.h:9
6.6.5.h
Event
ZddEvent
ZddEvent-00-00-04
ZddEvent
ZddChannel.h
Generated by
1.12.0