BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/ZddEvent/ZddEvent/ZddBoard.h
Go to the documentation of this file.
1#ifndef Event_ZDD_BOARD_H
2#define Event_ZDD_BOARD_H
3
4#include "ZddEvent/ZddChannel.h"
5
6//pre-declarations
7namespace Event {
8 class ZddEvent;
9}
10
11//class defination
12class ZddBoard
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
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
std::vector< ZddChannel * > Channels
void addChannel(ZddChannel *ch)
ZddBoard(Event::ZddEvent *p_evt)
virtual ~ZddBoard()