Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Candidate.h@ 683

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

FROG 3.0

File size: 690 bytes
Line 
1#ifndef _FROG_EVENT_RECOCANDIDATE_H__
2#define _FROG_EVENT_RECOCANDIDATE_H__
3
4#include "Base.h"
5
6namespace FROG{
7
8class Event_Candidate : public Base {
9public :
10 int PdgId_; float P_; float Eta_; float Phi_;
11
12 virtual unsigned int chunkId(){ return 15100;}
13 virtual bool isCompactible(){ return true; }
14
15 Event_Candidate() {}
16 Event_Candidate(int PdgId, float P, float Eta, float Phi ) :
17 PdgId_(PdgId), P_(P), Eta_(Eta),Phi_(Phi){}
18
19 virtual ByteBuffer writeData(){
20 ByteBuffer toReturn(16);
21 toReturn.putInt(PdgId_);
22 toReturn.putFloat(P_);
23 toReturn.putFloat(Eta_);
24 toReturn.putFloat(Phi_);
25 return toReturn;
26 }
27
28};
29
30}//FROG Namespace
31#endif
Note: See TracBrowser for help on using the repository browser.