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