CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BUEvent.h
Go to the documentation of this file.
1 #ifndef BUEVENT_H
2 #define BUEVENT_H 1
3 
4 
5 namespace evf
6 {
7 
8  class BUEvent
9  {
10  public:
11  //
12  // construction/destruction
13  //
14  BUEvent(unsigned int buResourceId,unsigned int bufferSize=0x400000);
15  virtual ~BUEvent();
16 
17 
18  //
19  // member functions
20  //
21  void initialize(unsigned int evtNumber);
22 
23  bool writeFed(unsigned int id,unsigned char* data,unsigned int size);
24  bool writeFedHeader(unsigned int i);
25  bool writeFedTrailer(unsigned int i);
26 
27  unsigned int buResourceId() const { return buResourceId_; }
28  unsigned int evtNumber() const { return evtNumber_; }
29  unsigned int evtSize() const { return evtSize_; }
30  unsigned int bufferSize() const { return bufferSize_; }
31  unsigned int nFed() const { return nFed_; }
32  unsigned int fedId(unsigned int i) const { return fedId_[i]; }
33  unsigned int fedSize(unsigned int i) const { return fedSize_[i]; }
34  unsigned char* fedAddr(unsigned int i) const;
35 
36  static bool computeCrc() { return computeCrc_; }
38 
39  void dump();
40 
41 
42  private:
43  //
44  // member data
45  //
46  unsigned int buResourceId_;
47  unsigned int evtNumber_;
48  unsigned int evtSize_;
49  unsigned int bufferSize_;
50  unsigned int nFed_;
51  unsigned int *fedId_;
52  unsigned int *fedPos_;
53  unsigned int *fedSize_;
54  unsigned char *buffer_;
55 
56  static bool computeCrc_;
57 
58  };
59 
60 
61 } // namespace evf
62 
63 
64 #endif
int i
Definition: DBlmapReader.cc:9
void initialize(unsigned int evtNumber)
Definition: BUEvent.cc:74
static bool computeCrc_
Definition: BUEvent.h:56
unsigned char * buffer_
Definition: BUEvent.h:54
BUEvent(unsigned int buResourceId, unsigned int bufferSize=0x400000)
Definition: BUEvent.cc:41
unsigned int evtNumber() const
Definition: BUEvent.h:28
static void setComputeCrc(bool computeCrc)
Definition: BUEvent.h:37
unsigned int evtNumber_
Definition: BUEvent.h:47
bool writeFed(unsigned int id, unsigned char *data, unsigned int size)
Definition: BUEvent.cc:83
unsigned int buResourceId_
Definition: BUEvent.h:46
unsigned int buResourceId() const
Definition: BUEvent.h:27
unsigned int * fedId_
Definition: BUEvent.h:51
bool writeFedHeader(unsigned int i)
Definition: BUEvent.cc:106
unsigned char * fedAddr(unsigned int i) const
Definition: BUEvent.cc:146
unsigned int nFed_
Definition: BUEvent.h:50
unsigned int evtSize() const
Definition: BUEvent.h:29
unsigned int fedId(unsigned int i) const
Definition: BUEvent.h:32
unsigned int bufferSize_
Definition: BUEvent.h:49
static bool computeCrc()
Definition: BUEvent.h:36
bool writeFedTrailer(unsigned int i)
Definition: BUEvent.cc:123
unsigned int * fedPos_
Definition: BUEvent.h:52
unsigned int * fedSize_
Definition: BUEvent.h:53
unsigned int fedSize(unsigned int i) const
Definition: BUEvent.h:33
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
virtual ~BUEvent()
Definition: BUEvent.cc:60
unsigned int nFed() const
Definition: BUEvent.h:31
unsigned int bufferSize() const
Definition: BUEvent.h:30
tuple size
Write out results.
unsigned int evtSize_
Definition: BUEvent.h:48
void dump()
Definition: BUEvent.cc:153