Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Sim_Track.h@ 773

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

FROG 3.0

File size: 969 bytes
RevLine 
[583]1#ifndef _FROG_EVENT_SIM_TRACK_H__
2#define _FROG_EVENT_SIM_TRACK_H__
3
4#include "Base.h"
5
6namespace FROG{
7
8class Event_Sim_Track : public Base {
9public :
10 int track_id;float Px;float Py; float Pz; float E;int Type;int parent_vertex;float charge;
11
12 virtual unsigned int chunkId(){ return 11030;}
13 virtual bool isCompactible(){ return true; }
14
15 Event_Sim_Track(){}
16 Event_Sim_Track(
17 int track_id_,float Px_,float Py_, float Pz_, float E_,int Type_,int parent_vertex_,float charge_):
18 track_id(track_id_), Px(Px_), Py(Py_), Pz(Pz_), E(E_), Type(Type_),parent_vertex(parent_vertex_),charge(charge_){}
19
20 virtual ByteBuffer writeData(){
21 ByteBuffer toReturn(48);
22 toReturn.putInt(track_id);
23 toReturn.putFloat(Px);
24 toReturn.putFloat(Py);
25 toReturn.putFloat(Pz);
26 toReturn.putFloat(E);
27 toReturn.putInt(Type);
28 toReturn.putInt(parent_vertex);
29 toReturn.putFloat(charge);
30
31 return toReturn;
32 }
33};
34
35}//FROG Namespace
36#endif
Note: See TracBrowser for help on using the repository browser.