Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Jet.h@ 589

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

removed old FROG utility

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