Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Segment.h@ 727

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

FROG 3.0

File size: 849 bytes
Line 
1#ifndef _FROG_EVENT_SEGMENT_H__
2#define _FROG_EVENT_SEGMENT_H__
3
4#include "BaseColl_Id.h"
5
6namespace FROG{
7
8class Event_Segment : public BaseColl_Id {
9public :
10 float x; float y; float z;
11 float dx; float dy; float dz;
12
13 virtual unsigned int chunkId(){ return 12112;}
14 virtual bool isCompactible(){ return true; }
15
16 Event_Segment(){ }
17 Event_Segment( unsigned int DetId,
18 float x_, float y_, float z_, float dx_, float dy_, float dz_):
19 BaseColl_Id(DetId),
20 x(x_),y(y_),z(z_),dx(dx_), dy(dy_), dz(dz_){}
21
22 virtual ByteBuffer writeData(){
23 ByteBuffer toReturn(28);
24 toReturn.putUInt(detId_);
25 toReturn.putFloat(x);
26 toReturn.putFloat(y);
27 toReturn.putFloat(z);
28 toReturn.putFloat(dx);
29 toReturn.putFloat(dy);
30 toReturn.putFloat(dz);
31 return toReturn;
32 }
33};
34
35}//FROG Namespace
36#endif
Note: See TracBrowser for help on using the repository browser.