#ifndef _EVENT_TRACKHIT_H__ #define _EVENT_TRACKHIT_H__ #include "BaseColl_Id.h" namespace FROG{ class Event_Hit : public BaseColl_Id { public : float x; float y; float z; float Charge; virtual unsigned int chunkId(){ return 12111;} virtual bool isCompactible(){ return true; } Event_Hit(){} Event_Hit( unsigned int DetId, float x_, float y_, float z_, float Charge_): BaseColl_Id(DetId), x(x_),y(y_),z(z_),Charge(Charge_){} virtual ByteBuffer writeData(){ ByteBuffer toReturn(20); toReturn.putUInt(detId_); toReturn.putFloat(x); toReturn.putFloat(y); toReturn.putFloat(z); toReturn.putFloat(Charge); return toReturn; } }; }//FROG Namespace #endif