[583] | 1 | #ifndef _FROG_EVENT_SIM_PARTICLE_H__
|
---|
| 2 | #define _FROG_EVENT_SIM_PARTICLE_H__
|
---|
| 3 |
|
---|
| 4 | #include "Base.h"
|
---|
| 5 |
|
---|
| 6 | namespace FROG{
|
---|
| 7 |
|
---|
| 8 | class Event_Sim_Particle : public Base {
|
---|
| 9 | public :
|
---|
| 10 | float Px;float Py; float Pz; float E;int Type;float charge;
|
---|
| 11 | float V1x;float V1y;float V1z;
|
---|
| 12 | float V2x;float V2y;float V2z;
|
---|
| 13 |
|
---|
| 14 | virtual unsigned int chunkId(){ return 11040;}
|
---|
| 15 | virtual bool isCompactible(){ return true; }
|
---|
| 16 |
|
---|
| 17 | Event_Sim_Particle(){}
|
---|
| 18 | Event_Sim_Particle(
|
---|
| 19 | float Px_,float Py_, float Pz_, float E_,int Type_,float charge_,
|
---|
| 20 | float V1x_,float V1y_,float V1z_,
|
---|
| 21 | float V2x_,float V2y_,float V2z_):
|
---|
| 22 | Px(Px_), Py(Py_), Pz(Pz_), E(E_), Type(Type_), charge(charge_),
|
---|
| 23 | V1x(V1x_),V1y(V1y_), V1z(V1z_),
|
---|
| 24 | V2x(V2x_),V2y(V2y_), V2z(V2z_){}
|
---|
| 25 |
|
---|
| 26 | virtual ByteBuffer writeData(){
|
---|
| 27 | ByteBuffer toReturn(48);
|
---|
| 28 | toReturn.putFloat(Px);
|
---|
| 29 | toReturn.putFloat(Py);
|
---|
| 30 | toReturn.putFloat(Pz);
|
---|
| 31 | toReturn.putFloat(E);
|
---|
| 32 | toReturn.putInt(Type);
|
---|
| 33 | toReturn.putFloat(charge);
|
---|
| 34 | toReturn.putFloat(V1x);
|
---|
| 35 | toReturn.putFloat(V1y);
|
---|
| 36 | toReturn.putFloat(V1z);
|
---|
| 37 | toReturn.putFloat(V2x);
|
---|
| 38 | toReturn.putFloat(V2y);
|
---|
| 39 | toReturn.putFloat(V2z);
|
---|
| 40 | return toReturn;
|
---|
| 41 | }
|
---|
| 42 | };
|
---|
| 43 |
|
---|
| 44 | }//FROG Namespace
|
---|
| 45 | #endif
|
---|