CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FUShmRecoCell.h
Go to the documentation of this file.
1 #ifndef FUSHMRECOCELL_H
2 #define FUSHMRECOCELL_H 1
3 
4 
5 namespace evf {
6 
8  {
9  public:
10  //
11  // construction/destruction
12  //
13  FUShmRecoCell(unsigned int payloadSize);
15 
16 
17  //
18  // member functions
19  //
20  void initialize(unsigned int index);
21 
22  unsigned int index() const { return index_; }
23  unsigned int rawCellIndex()const { return rawCellIndex_; }
24  unsigned int runNumber() const { return runNumber_; }
25  unsigned int evtNumber() const { return evtNumber_; }
26  unsigned int outModId() const { return outModId_; }
27  unsigned int fuProcessId() const { return fuProcessId_; }
28  unsigned int fuGuid() const { return fuGuid_; }
29  unsigned int type() const { return type_; }
30 
31  unsigned int payloadSize() const { return payloadSize_; }
32  unsigned char* payloadAddr() const;
33  unsigned int eventSize() const { return eventSize_; }
34  unsigned int nExpectedEPs() const { return nExpectedEPs_; }
35 
36  void writeInitMsg(unsigned int outModId,
37  unsigned int fuProcessId,
38  unsigned int fuGuid,
39  unsigned char *data,
40  unsigned int dataSize,
41  unsigned int nExpectedEPs);
42 
43  void writeEventData(unsigned int rawCellIndex,
44  unsigned int runNumber,
45  unsigned int evtNumber,
46  unsigned int outModId,
47  unsigned int fuProcessId,
48  unsigned int fuGuid,
49  unsigned char *data,
50  unsigned int dataSize);
51 
52  void writeErrorEvent(unsigned int rawCellIndex,
53  unsigned int runNumber,
54  unsigned int evtNumber,
55  unsigned int fuProcessId,
56  unsigned char *data,
57  unsigned int dataSize);
58 
59  void clear();
60 
61 
62  //
63  // static member functions
64  //
65  static unsigned int size(unsigned int payloadSize);
66 
67 
68  private:
69  //
70  // member data
71  //
72  unsigned int index_;
73  unsigned int rawCellIndex_;
74  unsigned int runNumber_;
75  unsigned int evtNumber_;
76  unsigned int outModId_;
77  unsigned int fuProcessId_;
78  unsigned int fuGuid_;
79  unsigned int type_;
80  unsigned int payloadSize_;
81  unsigned int payloadOffset_;
82  unsigned int eventSize_;
83  unsigned int nExpectedEPs_;
84 
85  };
86 
87 
88 } // namespace evf
89 
90 
91 #endif
unsigned int index() const
Definition: FUShmRecoCell.h:22
unsigned int type() const
Definition: FUShmRecoCell.h:29
void initialize(unsigned int index)
unsigned int runNumber() const
Definition: FUShmRecoCell.h:24
static unsigned int size(unsigned int payloadSize)
unsigned int fuGuid() const
Definition: FUShmRecoCell.h:28
unsigned int eventSize() const
Definition: FUShmRecoCell.h:33
unsigned int fuProcessId() const
Definition: FUShmRecoCell.h:27
unsigned int index_
Definition: FUShmRecoCell.h:72
unsigned int outModId_
Definition: FUShmRecoCell.h:76
unsigned int payloadSize() const
Definition: FUShmRecoCell.h:31
unsigned int type_
Definition: FUShmRecoCell.h:79
void writeInitMsg(unsigned int outModId, unsigned int fuProcessId, unsigned int fuGuid, unsigned char *data, unsigned int dataSize, unsigned int nExpectedEPs)
FUShmRecoCell(unsigned int payloadSize)
unsigned int fuGuid_
Definition: FUShmRecoCell.h:78
unsigned char * payloadAddr() const
unsigned int evtNumber() const
Definition: FUShmRecoCell.h:25
unsigned int nExpectedEPs() const
Definition: FUShmRecoCell.h:34
unsigned int rawCellIndex() const
Definition: FUShmRecoCell.h:23
unsigned int runNumber_
Definition: FUShmRecoCell.h:74
void writeErrorEvent(unsigned int rawCellIndex, unsigned int runNumber, unsigned int evtNumber, unsigned int fuProcessId, unsigned char *data, unsigned int dataSize)
unsigned int eventSize_
Definition: FUShmRecoCell.h:82
unsigned int payloadOffset_
Definition: FUShmRecoCell.h:81
unsigned int nExpectedEPs_
Definition: FUShmRecoCell.h:83
unsigned int outModId() const
Definition: FUShmRecoCell.h:26
unsigned int fuProcessId_
Definition: FUShmRecoCell.h:77
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
void writeEventData(unsigned int rawCellIndex, unsigned int runNumber, unsigned int evtNumber, unsigned int outModId, unsigned int fuProcessId, unsigned int fuGuid, unsigned char *data, unsigned int dataSize)
unsigned int payloadSize_
Definition: FUShmRecoCell.h:80
unsigned int rawCellIndex_
Definition: FUShmRecoCell.h:73
unsigned int evtNumber_
Definition: FUShmRecoCell.h:75