Fork me on GitHub

source: svn/trunk/Utilities/frog/Event.h@ 769

Last change on this file since 769 was 583, checked in by cp3-support, 13 years ago

FROG 3.0

File size: 739 bytes
RevLine 
[583]1#ifndef _FROG_EVENT_H__
2#define _FROG_EVENT_H__
3
4#include "BaseColl.h"
5
6namespace FROG{
7
8class Event : public Base {
9public :
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.