Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_CaloTower.h@ 667

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

FROG 3.0

File size: 975 bytes
RevLine 
[583]1#ifndef _FROG_EVENT_CALOTOWER_H__
2#define _FROG_EVENT_CALOTOWER_H__
3
4#include "BaseColl_Id.h"
5
6namespace FROG{
7
8class Event_CaloTower : public BaseColl_Id {
9public :
10 float Eem_; float Ehad_;
11 unsigned int Components_CollEvtId_;
12 std::vector<unsigned int> Components_Vector_;
13
14 virtual unsigned int chunkId(){ return 12310;}
15 virtual bool isCompactible(){ return false; }
16
17 Event_CaloTower( ){}
18 Event_CaloTower( unsigned int DetId, float Eem, float Ehad):
19 BaseColl_Id(DetId),
20 Eem_(Eem),Ehad_(Ehad){}
21
22 virtual ByteBuffer writeData(){
23 ByteBuffer toReturn(16+Components_Vector_.size()*4);
24 toReturn.putUInt(detId_);
25 toReturn.putFloat(Eem_);
26 toReturn.putFloat(Ehad_);
27 if(Components_Vector_.size()>0){
28 toReturn.putUInt(Components_CollEvtId_);
29 for(unsigned int i=0;i<Components_Vector_.size();i++){
30 toReturn.putUInt(Components_Vector_[i]);
31 }
32 }
33 return toReturn;
34 }
35};
36
37}//FROG Namespace
38#endif
Note: See TracBrowser for help on using the repository browser.