Rev | Line | |
---|
[583] | 1 | #ifndef _FROG_EVENT_TRACK_H__
|
---|
| 2 | #define _FROG_EVENT_TRACK_H__
|
---|
| 3 |
|
---|
| 4 | #include "Base.h"
|
---|
| 5 |
|
---|
| 6 | namespace FROG{
|
---|
| 7 |
|
---|
| 8 | class Event_Track : public Base {
|
---|
| 9 | public:
|
---|
| 10 | char coll_; float p_; float pt_; float chi2_;
|
---|
| 11 | unsigned int NHits;
|
---|
| 12 |
|
---|
| 13 | virtual unsigned int chunkId(){ return 12110;}
|
---|
| 14 | virtual bool isCompactible(){ return false; }
|
---|
| 15 |
|
---|
| 16 | Event_Track(){}
|
---|
| 17 | Event_Track(char Coll, float P, float Pt, float Chi2) :
|
---|
| 18 | coll_(Coll), p_(P),pt_(Pt),chi2_(Chi2){}
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | virtual ByteBuffer writeData(){
|
---|
| 22 | ByteBuffer toReturn(13);
|
---|
| 23 | toReturn.putByte(coll_);
|
---|
| 24 | toReturn.putFloat(p_);
|
---|
| 25 | toReturn.putFloat(pt_);
|
---|
| 26 | toReturn.putFloat(chi2_);
|
---|
| 27 | return toReturn;
|
---|
| 28 | }
|
---|
| 29 | };
|
---|
| 30 |
|
---|
| 31 | }//FROG Namespace
|
---|
| 32 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.