Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Beam.h@ 766

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

FROG 3.0

File size: 1.1 KB
Line 
1#ifndef _FROG_EVENT_BEAM_H__
2#define _FROG_EVENT_BEAM_H__
3
4#include "BaseColl_Id.h"
5
6namespace FROG{
7
8class Event_Beam : public BaseColl_Id {
9public :
10 float x; float y; float z;
11 float px; float py; float pz;
12 float sigmax; float sigmay; float sigmaz;
13 unsigned int N;
14
15 virtual unsigned int chunkId(){ return 19001;}
16 virtual bool isCompactible(){ return true; }
17
18 Event_Beam(){}
19 Event_Beam( unsigned int DetId,
20 float x_, float y_, float z_,
21 float px_, float py_, float pz_,
22 float sigmax_, float sigmay_, float sigmaz_,
23 unsigned int N_):
24 BaseColl_Id(DetId),
25 x(x_),y(y_),z(z_),
26 px(px_),py(py_),pz(pz_),
27 sigmax(sigmax_),sigmay(sigmay_),sigmaz(sigmaz_),
28 N(N_){}
29
30 virtual ByteBuffer writeData(){
31 ByteBuffer toReturn(44);
32 toReturn.putUInt(detId_);
33 toReturn.putFloat(x);
34 toReturn.putFloat(y);
35 toReturn.putFloat(z);
36 toReturn.putFloat(px);
37 toReturn.putFloat(py);
38 toReturn.putFloat(pz);
39 toReturn.putFloat(sigmax);
40 toReturn.putFloat(sigmay);
41 toReturn.putFloat(sigmaz);
42 toReturn.putUInt(N);
43 return toReturn;
44 }
45};
46
47}//FROG Namespace
48#endif
Note: See TracBrowser for help on using the repository browser.