BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/ZddEvent/include/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 {
13public:
14 typedef std::vector<ZddChannel*> Channels;
15
16 ZddBoard( Event::ZddEvent* p_evt );
17 virtual ~ZddBoard();
18
19 // user interfaces
20 int getBoardId() const { return m_boradId; }
21 int getCounter() const { return m_counter; }
22 int getTimeTag() const { return m_timeTag; }
23
24 const Channels& channels() const { return m_chs; }
25
26 // interfaces for setting data
27 void setBoardId( int boardId ) { m_boradId = boardId; }
28 void setCounter( int counter ) { m_counter = counter; }
29 void setTimeTag( int timeTag ) { m_timeTag = timeTag; }
30
31 void addChannel( ZddChannel* ch );
32
33private:
34 int m_boradId;
35 int m_counter;
36 int m_timeTag;
37
38 Event::ZddEvent* m_evt;
39 Channels m_chs;
40};
41
42#endif
std::vector< ZddChannel * > Channels
const Channels & channels() const
void addChannel(ZddChannel *ch)
Definition ZddBoard.cxx:10
ZddBoard(Event::ZddEvent *p_evt)
Definition ZddBoard.cxx:4
virtual ~ZddBoard()
Definition ZddBoard.cxx:8