Rev | Line | |
---|
[583] | 1 | #ifndef _FROG_EVENT_CALOHIT_H__
|
---|
| 2 | #define _FROG_EVENT_CALOHIT_H__
|
---|
| 3 |
|
---|
| 4 | #include "BaseColl_Id.h"
|
---|
| 5 |
|
---|
| 6 | namespace FROG{
|
---|
| 7 |
|
---|
| 8 | class Event_CaloHit : public BaseColl_Id {
|
---|
| 9 | public :
|
---|
| 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.