Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Hit.h@ 585

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

FROG 3.0

File size: 731 bytes
RevLine 
[583]1#ifndef _EVENT_TRACKHIT_H__
2#define _EVENT_TRACKHIT_H__
3
4#include "BaseColl_Id.h"
5
6namespace FROG{
7
8class Event_Hit : public BaseColl_Id {
9public :
10 float x; float y; float z; float Charge;
11
12 virtual unsigned int chunkId(){ return 12111;}
13 virtual bool isCompactible(){ return true; }
14
15 Event_Hit(){}
16 Event_Hit( unsigned int DetId,
17 float x_, float y_, float z_, float Charge_):
18 BaseColl_Id(DetId),
19 x(x_),y(y_),z(z_),Charge(Charge_){}
20
21 virtual ByteBuffer writeData(){
22 ByteBuffer toReturn(20);
23 toReturn.putUInt(detId_);
24 toReturn.putFloat(x);
25 toReturn.putFloat(y);
26 toReturn.putFloat(z);
27 toReturn.putFloat(Charge);
28 return toReturn;
29 }
30};
31
32}//FROG Namespace
33#endif
Note: See TracBrowser for help on using the repository browser.