Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_CaloHit.h@ 825

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

FROG 3.0

File size: 625 bytes
Line 
1#ifndef _FROG_EVENT_CALOHIT_H__
2#define _FROG_EVENT_CALOHIT_H__
3
4#include "BaseColl_Id.h"
5
6namespace FROG{
7
8class Event_CaloHit : public BaseColl_Id {
9public :
10 float E; float t;
11
12 virtual unsigned int chunkId(){ return 12210;}
13 virtual bool isCompactible(){ return true; }
14
15 Event_CaloHit(){}
16 Event_CaloHit( unsigned int DetId, float E_, float t_):
17 BaseColl_Id(DetId),
18 E(E_),t(t_){}
19
20 virtual ByteBuffer writeData(){
21 ByteBuffer toReturn(12);
22 toReturn.putUInt(detId_);
23 toReturn.putFloat(E);
24 toReturn.putFloat(t);
25 return toReturn;
26 }
27
28
29};
30
31}//FROG Namespace
32#endif
Note: See TracBrowser for help on using the repository browser.