Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Sim_Hit.h@ 918

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

FROG 3.0

File size: 768 bytes
Line 
1#ifndef _FROG_EVENT_SIM_HIT_H__
2#define _FROG_EVENT_SIM_HIT_H__
3
4#include "Base.h"
5
6namespace FROG{
7
8class Event_Sim_Hit : public Base {
9public :
10 float x; float y; float z; float Charge; unsigned char ProcessType;
11
12 virtual unsigned int chunkId(){ return 11010;}
13 virtual bool isCompactible(){ return true; }
14
15 Event_Sim_Hit(){}
16 Event_Sim_Hit(float x_, float y_, float z_, float Charge_, unsigned char ProcessType_):
17 x(x_),y(y_),z(z_),Charge(Charge_), ProcessType(ProcessType_){}
18
19 virtual ByteBuffer writeData(){
20 ByteBuffer toReturn(20);
21 toReturn.putFloat(x);
22 toReturn.putFloat(y);
23 toReturn.putFloat(z);
24 toReturn.putFloat(Charge);
25 toReturn.putInt(ProcessType);
26 return toReturn;
27 }
28};
29
30}//FROG Namespace
31#endif
Note: See TracBrowser for help on using the repository browser.