Rev | Line | |
---|
[583] | 1 | #ifndef _FROG_EVENT_H__
|
---|
| 2 | #define _FROG_EVENT_H__
|
---|
| 3 |
|
---|
| 4 | #include "BaseColl.h"
|
---|
| 5 |
|
---|
| 6 | namespace FROG{
|
---|
| 7 |
|
---|
| 8 | class Event : public Base {
|
---|
| 9 | public :
|
---|
| 10 | unsigned int NRun_;
|
---|
| 11 | unsigned int NEvent_;
|
---|
| 12 | unsigned long long TimeStamp_;
|
---|
| 13 |
|
---|
| 14 | virtual unsigned int chunkId(){ return 10002;}
|
---|
| 15 | virtual bool isCompactible(){ return false; }
|
---|
| 16 |
|
---|
| 17 | Event(){NRun_=0;NEvent_=0;TimeStamp_=0;}
|
---|
| 18 | Event(unsigned int Run, unsigned int Event, unsigned long long TimeStamp = 0){
|
---|
| 19 | NRun_ = Run;
|
---|
| 20 | NEvent_ = Event;
|
---|
| 21 | TimeStamp_= TimeStamp;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | virtual ByteBuffer writeData(){
|
---|
| 25 | ByteBuffer toReturn(16);
|
---|
| 26 | toReturn.putUInt(NRun_);
|
---|
| 27 | toReturn.putUInt(NEvent_);
|
---|
| 28 | toReturn.putULong(TimeStamp_);
|
---|
| 29 | return toReturn;
|
---|
| 30 | }
|
---|
| 31 | };
|
---|
| 32 |
|
---|
| 33 | }//FROG Namespace
|
---|
| 34 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.