CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FUShmDqmCell.h
Go to the documentation of this file.
1 #ifndef FUSHMDQMCELL_H
2 #define FUSHMDQMCELL_H 1
3 
4 
5 namespace evf {
6 
8  {
9  public:
10  //
11  // construction/destruction
12  //
13  FUShmDqmCell(unsigned int payloadSize);
14  ~FUShmDqmCell();
15 
16 
17  //
18  // member functions
19  //
20  void initialize(unsigned int index);
21 
22  unsigned int index() const { return index_; }
23  unsigned int runNumber() const { return runNumber_; }
24  unsigned int evtAtUpdate() const { return evtAtUpdate_; }
25  unsigned int folderId() const { return folderId_; }
26  unsigned int fuProcessId() const { return fuProcessId_; }
27  unsigned int fuGuid() const { return fuGuid_; }
28 
29  unsigned int payloadSize() const { return payloadSize_; }
30  unsigned char* payloadAddr() const;
31  unsigned int eventSize() const { return eventSize_; }
32 
33  void writeData(unsigned int runNumber,
34  unsigned int evtAtUpdate,
35  unsigned int folderId,
36  unsigned int fuProcessId,
37  unsigned int fuGuid,
38  unsigned char *data,
39  unsigned int dataSize);
40 
41  void clear();
42 
43 
44  //
45  // static member functions
46  //
47  static unsigned int size(unsigned int payloadSize);
48 
49 
50  private:
51  //
52  // member data
53  //
54  unsigned int index_;
55  unsigned int runNumber_;
56  unsigned int evtAtUpdate_;
57  unsigned int folderId_;
58  unsigned int fuProcessId_;
59  unsigned int fuGuid_;
60  unsigned int payloadSize_;
61  unsigned int payloadOffset_;
62  unsigned int eventSize_;
63 
64  };
65 
66 
67 } // namespace evf
68 
69 
70 #endif
unsigned int fuGuid_
Definition: FUShmDqmCell.h:59
unsigned int fuGuid() const
Definition: FUShmDqmCell.h:27
unsigned int index() const
Definition: FUShmDqmCell.h:22
void initialize(unsigned int index)
Definition: FUShmDqmCell.cc:46
unsigned int folderId() const
Definition: FUShmDqmCell.h:25
unsigned int payloadOffset_
Definition: FUShmDqmCell.h:61
unsigned int evtAtUpdate() const
Definition: FUShmDqmCell.h:24
unsigned int runNumber_
Definition: FUShmDqmCell.h:55
FUShmDqmCell(unsigned int payloadSize)
Definition: FUShmDqmCell.cc:25
unsigned int evtAtUpdate_
Definition: FUShmDqmCell.h:56
unsigned int fuProcessId() const
Definition: FUShmDqmCell.h:26
unsigned int runNumber() const
Definition: FUShmDqmCell.h:23
unsigned int payloadSize_
Definition: FUShmDqmCell.h:60
unsigned int eventSize_
Definition: FUShmDqmCell.h:62
unsigned int index_
Definition: FUShmDqmCell.h:54
unsigned char * payloadAddr() const
Definition: FUShmDqmCell.cc:54
unsigned int fuProcessId_
Definition: FUShmDqmCell.h:58
unsigned int eventSize() const
Definition: FUShmDqmCell.h:31
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
unsigned int folderId_
Definition: FUShmDqmCell.h:57
void writeData(unsigned int runNumber, unsigned int evtAtUpdate, unsigned int folderId, unsigned int fuProcessId, unsigned int fuGuid, unsigned char *data, unsigned int dataSize)
Definition: FUShmDqmCell.cc:69
static unsigned int size(unsigned int payloadSize)
Definition: FUShmDqmCell.cc:97
unsigned int payloadSize() const
Definition: FUShmDqmCell.h:29