BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
ZddBoard.h
Go to the documentation of this file.
1#ifndef Event_ZDD_BOARD_H
2#define Event_ZDD_BOARD_H
3
5
6//pre-declarations
7namespace Event {
8 class ZddEvent;
9}
10
11//class defination
13{
14 public :
15
16 typedef std::vector<ZddChannel*> Channels;
17
19 virtual ~ZddBoard();
20
21 //user interfaces
22 int getBoardId() const { return m_boradId; }
23 int getCounter() const { return m_counter; }
24 int getTimeTag() const { return m_timeTag; }
25
26 const Channels& channels() const { return m_chs; }
27
28 //interfaces for setting data
29 void setBoardId(int boardId) { m_boradId = boardId; }
30 void setCounter(int counter) { m_counter = counter; }
31 void setTimeTag(int timeTag) { m_timeTag = timeTag; }
32
33 void addChannel(ZddChannel* ch);
34
35 private :
36
37 int m_boradId;
38 int m_counter;
39 int m_timeTag;
40
41 Event::ZddEvent* m_evt;
42 Channels m_chs;
43};
44
45#endif
#define private
std::vector< ZddChannel * > Channels
Definition: ZddBoard.h:16
const Channels & channels() const
Definition: ZddBoard.h:26
int getCounter() const
Definition: ZddBoard.h:23
void addChannel(ZddChannel *ch)
Definition: ZddBoard.cxx:14
int getTimeTag() const
Definition: ZddBoard.h:24
int getBoardId() const
Definition: ZddBoard.h:22
virtual ~ZddBoard()
Definition: ZddBoard.cxx:10
void setBoardId(int boardId)
Definition: ZddBoard.h:29
void setCounter(int counter)
Definition: ZddBoard.h:30
void setTimeTag(int timeTag)
Definition: ZddBoard.h:31
_EXTERN_ std::string ZddEvent
Definition: EventModel.h:80
Definition: Event.h:21