Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Track.h@ 801

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

FROG 3.0

File size: 676 bytes
Line 
1#ifndef _FROG_EVENT_TRACK_H__
2#define _FROG_EVENT_TRACK_H__
3
4#include "Base.h"
5
6namespace FROG{
7
8class Event_Track : public Base {
9public:
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.