CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
evf::FUShmRawCell Class Reference

#include <FUShmRawCell.h>

Public Member Functions

unsigned int buResourceId () const
 
void clear ()
 
void dump () const
 
unsigned int eventSize () const
 
unsigned int evtNumber () const
 
unsigned char * fedAddr (unsigned int i) const
 
unsigned int fedSize (unsigned int i) const
 
unsigned int fuResourceId () const
 
 FUShmRawCell (unsigned int payloadSize)
 
unsigned int getEventType () const
 
unsigned int getLumiSection () const
 
unsigned int index () const
 
void initialize (unsigned int index)
 
bool markFed (unsigned int i, unsigned int size, unsigned char *addr)
 
bool markSuperFrag (unsigned int i, unsigned int size, unsigned char *addr)
 
unsigned int nFed () const
 
unsigned int nSuperFrag () const
 
unsigned char * payloadAddr () const
 
unsigned int payloadSize () const
 
unsigned int readFed (unsigned int i, unsigned char *buffer) const
 
void setBuResourceId (unsigned int id)
 
void setEventTypeData ()
 
void setEventTypeEol ()
 
void setEventTypeStopper ()
 
void setEvtNumber (unsigned int evt)
 
void setFuResourceId (unsigned int id)
 
void setLumiSection (unsigned int)
 
unsigned char * superFragAddr (unsigned int i) const
 
unsigned int superFragSize (unsigned int i) const
 
unsigned char * writeData (unsigned char *data, unsigned int dataSize)
 
 ~FUShmRawCell ()
 

Static Public Member Functions

static unsigned int size (unsigned int payloadSize)
 

Private Attributes

unsigned int buResourceId_
 
unsigned int eventType_
 
unsigned int evtNumber_
 
unsigned int fedOffset_
 
unsigned int fedSizeOffset_
 
unsigned int fuResourceId_
 
unsigned int index_
 
unsigned int lumiSection_
 
unsigned int nFed_
 
unsigned int nSuperFrag_
 
unsigned int payloadOffset_
 
unsigned int payloadPosition_
 
unsigned int payloadSize_
 
unsigned int superFragOffset_
 
unsigned int superFragSizeOffset_
 

Detailed Description

Definition at line 10 of file FUShmRawCell.h.

Constructor & Destructor Documentation

FUShmRawCell::FUShmRawCell ( unsigned int  payloadSize)

Definition at line 29 of file FUShmRawCell.cc.

References fedAddr(), fedOffset_, fedSizeOffset_, nFed_, nSuperFrag_, payloadAddr(), payloadOffset_, payloadSize_, superFragAddr(), superFragOffset_, and superFragSizeOffset_.

Referenced by size().

31  , nFed_(NFED_MAX)
33 {
35  unsigned int* fedSizeAddr;
36  fedSizeAddr=(unsigned int*)((unsigned long)this+fedSizeOffset_);
37  new(fedSizeAddr) unsigned int[nFed_];
38 
39  fedOffset_=fedSizeOffset_+sizeof(unsigned int)*nFed_;
40  unsigned int* fedAddr;
41  fedAddr=(unsigned int*)((unsigned long)this+fedOffset_);
42  new(fedAddr) unsigned int[nFed_];
43 
44  superFragSizeOffset_=fedOffset_+sizeof(unsigned int)*nFed_;
45  unsigned int* superFragSizeAddr;
46  superFragSizeAddr=(unsigned int*)((unsigned long)this+superFragSizeOffset_);
47  new(superFragSizeAddr) unsigned int[nSuperFrag_];
48 
50  unsigned char* superFragAddr;
51  superFragAddr=(unsigned char*)((unsigned long)this+superFragOffset_);
52  new(superFragAddr) unsigned char[nSuperFrag_];
53 
54  payloadOffset_=superFragOffset_+sizeof(unsigned int)*nSuperFrag_;
55  unsigned char* payloadAddr;
56  payloadAddr=(unsigned char*)((unsigned long)this+payloadOffset_);
57  new(payloadAddr) unsigned char[payloadSize_];
58 }
#define NFED_MAX
Definition: FUShmRawCell.cc:17
unsigned int superFragOffset_
Definition: FUShmRawCell.h:93
unsigned int nSuperFrag_
Definition: FUShmRawCell.h:87
unsigned char * payloadAddr() const
unsigned char * superFragAddr(unsigned int i) const
unsigned int payloadOffset_
Definition: FUShmRawCell.h:94
unsigned char * fedAddr(unsigned int i) const
Definition: FUShmRawCell.cc:94
unsigned int fedOffset_
Definition: FUShmRawCell.h:91
unsigned int payloadSize() const
Definition: FUShmRawCell.h:30
unsigned int payloadSize_
Definition: FUShmRawCell.h:85
unsigned int superFragSizeOffset_
Definition: FUShmRawCell.h:92
unsigned int fedSizeOffset_
Definition: FUShmRawCell.h:90
FUShmRawCell(unsigned int payloadSize)
Definition: FUShmRawCell.cc:29
#define NSUPERFRAG_MAX
Definition: FUShmRawCell.cc:16
unsigned int nFed_
Definition: FUShmRawCell.h:86
FUShmRawCell::~FUShmRawCell ( )

Definition at line 62 of file FUShmRawCell.cc.

Referenced by evf::RawMsgBuf::~RawMsgBuf().

63 {
64 
65 }

Member Function Documentation

unsigned int evf::FUShmRawCell::buResourceId ( ) const
inline

Definition at line 27 of file FUShmRawCell.h.

References buResourceId_.

Referenced by evf::FUResourceTable::discard(), and evf::FUResourceTable::discardWhileHalting().

27 { return buResourceId_; }
unsigned int buResourceId_
Definition: FUShmRawCell.h:83
void FUShmRawCell::clear ( void  )

Definition at line 147 of file FUShmRawCell.cc.

References buResourceId_, eventType_, fedSizeOffset_, fuResourceId_, i, lumiSection_, nFed(), evf::evt::NOP, nSuperFrag(), payloadPosition_, and superFragSizeOffset_.

Referenced by evf::FUResource::allocate(), Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), evf::RawCache::releaseMsg(), evf::FUShmBuffer::releaseRawCell(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), Vispa.Views.PropertyView.PropertyView::updateContent(), and evf::FUShmServer::writeNext().

148 {
149  fuResourceId_=0xffffffff;
150  buResourceId_=0xffffffff;
151  lumiSection_ =0;
153  unsigned int* fedSizeAddr;
154  fedSizeAddr=(unsigned int*)((unsigned long)this+fedSizeOffset_);
155  for (unsigned int i=0;i<nFed();i++) *fedSizeAddr++=0;
156 
157  unsigned int* superFragSizeAddr;
158  superFragSizeAddr=(unsigned int*)((unsigned long)this+superFragSizeOffset_);
159  for (unsigned int i=0;i<nSuperFrag();i++) *superFragSizeAddr++=0;
160 
162 }
int i
Definition: DBlmapReader.cc:9
unsigned int payloadPosition_
Definition: FUShmRawCell.h:95
unsigned int eventType_
Definition: FUShmRawCell.h:89
unsigned int fuResourceId_
Definition: FUShmRawCell.h:82
unsigned int lumiSection_
Definition: FUShmRawCell.h:88
unsigned int superFragSizeOffset_
Definition: FUShmRawCell.h:92
unsigned int fedSizeOffset_
Definition: FUShmRawCell.h:90
unsigned int buResourceId_
Definition: FUShmRawCell.h:83
unsigned int nFed() const
Definition: FUShmRawCell.h:33
unsigned int nSuperFrag() const
Definition: FUShmRawCell.h:37
void FUShmRawCell::dump ( void  ) const

Definition at line 166 of file FUShmRawCell.cc.

References gather_cfg::cout, fedAddr(), fedSize(), i, j, nFed(), and size().

167 {
168  for (unsigned int i=0;i<nFed();i++) {
169  cout<<"fed "<<i<<": "<<flush;
170  unsigned char* addr=fedAddr(i);
171  unsigned int size=fedSize(i);
172  cout.fill(0);
173  cout<<setiosflags(ios::right);
174  for (unsigned int j=0;j<size;j++)
175  cout<<setw(2)<<hex<<(int)addr[j]<<dec<<" "<<flush;
176  cout<<endl;
177  }
178 }
int i
Definition: DBlmapReader.cc:9
static unsigned int size(unsigned int payloadSize)
int j
Definition: DBlmapReader.cc:9
unsigned char * fedAddr(unsigned int i) const
Definition: FUShmRawCell.cc:94
unsigned int nFed() const
Definition: FUShmRawCell.h:33
tuple cout
Definition: gather_cfg.py:121
unsigned int fedSize(unsigned int i) const
Definition: FUShmRawCell.cc:82
unsigned int FUShmRawCell::eventSize ( ) const

Definition at line 140 of file FUShmRawCell.cc.

References payloadPosition_.

Referenced by evf::RawMsgBuf::usedSize(), and evf::FUShmBuffer::writeErrorEventData().

141 {
142  return payloadPosition_;
143 }
unsigned int payloadPosition_
Definition: FUShmRawCell.h:95
unsigned int evf::FUShmRawCell::evtNumber ( ) const
inline
unsigned char * FUShmRawCell::fedAddr ( unsigned int  i) const

Definition at line 94 of file FUShmRawCell.cc.

References gather_cfg::cout, fedOffset_, i, nFed(), payloadAddr(), and query::result.

Referenced by dump(), evf::IPCMethod::dumpEvent(), FUShmRawCell(), markFed(), readFed(), and evf::FUShmBuffer::writeErrorEventData().

95 {
96  if (i>=nFed()) {cout<<"invalid fed index '"<<i<<"'."<<endl; return 0; }
97  unsigned int* fedOffsetAddr;
98  fedOffsetAddr=(unsigned int*)((unsigned long)this+fedOffset_);
99  fedOffsetAddr+=i;
100  unsigned int fedOffset=*fedOffsetAddr;
101  unsigned char* result=(unsigned char*)((unsigned long)payloadAddr()+fedOffset);
102  return result;
103 }
int i
Definition: DBlmapReader.cc:9
unsigned char * payloadAddr() const
tuple result
Definition: query.py:137
unsigned int fedOffset_
Definition: FUShmRawCell.h:91
unsigned int nFed() const
Definition: FUShmRawCell.h:33
tuple cout
Definition: gather_cfg.py:121
unsigned int FUShmRawCell::fedSize ( unsigned int  i) const

Definition at line 82 of file FUShmRawCell.cc.

References gather_cfg::cout, fedSizeOffset_, i, nFed(), and query::result.

Referenced by dump(), evf::IPCMethod::dumpEvent(), FUShmReader::fillRawData(), readFed(), evf::FUShmClient::readNext(), and evf::FUShmBuffer::writeErrorEventData().

83 {
84  if (i>=nFed()) {cout<<"invalid fed index '"<<i<<"'."<<endl; return 0; }
85  unsigned int* fedSizeAddr;
86  fedSizeAddr=(unsigned int*)((unsigned long)this+fedSizeOffset_);
87  fedSizeAddr+=i;
88  unsigned int result=*fedSizeAddr;
89  return result;
90 }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
unsigned int fedSizeOffset_
Definition: FUShmRawCell.h:90
unsigned int nFed() const
Definition: FUShmRawCell.h:33
tuple cout
Definition: gather_cfg.py:121
unsigned int evf::FUShmRawCell::fuResourceId ( ) const
inline
unsigned int evf::FUShmRawCell::getEventType ( ) const
inline

Definition at line 69 of file FUShmRawCell.h.

References eventType_.

Referenced by FUShmReader::fillRawData().

69 {return eventType_;}
unsigned int eventType_
Definition: FUShmRawCell.h:89
unsigned int evf::FUShmRawCell::getLumiSection ( ) const
inline

Definition at line 70 of file FUShmRawCell.h.

References lumiSection_.

Referenced by FUShmReader::fillRawData().

70 {return lumiSection_;}
unsigned int lumiSection_
Definition: FUShmRawCell.h:88
unsigned int evf::FUShmRawCell::index ( ) const
inline
void FUShmRawCell::initialize ( unsigned int  index)

Definition at line 73 of file FUShmRawCell.cc.

References eventType_, index(), index_, lumiSection_, and evf::evt::NOP.

Referenced by evf::FUResourceQueue::buildResource(), and evf::FUShmBuffer::reset().

74 {
75  index_=index;
76  lumiSection_=0;
78 }
unsigned int eventType_
Definition: FUShmRawCell.h:89
unsigned int lumiSection_
Definition: FUShmRawCell.h:88
unsigned int index_
Definition: FUShmRawCell.h:81
unsigned int index() const
Definition: FUShmRawCell.h:25
bool FUShmRawCell::markFed ( unsigned int  i,
unsigned int  size,
unsigned char *  addr 
)

Definition at line 215 of file FUShmRawCell.cc.

References gather_cfg::cout, fedAddr(), fedOffset_, fedSizeOffset_, i, nFed(), evf::evtn::offset(), payloadAddr(), payloadSize(), and size().

Referenced by evf::ResourceChecker::findFEDs(), evf::FUResource::process(), and evf::FUShmServer::writeNext().

218 {
219  if (i>=nFed())
220  {cout<<"invalid fed index '"<<i<<"'."<<endl; return false; }
221  if (addr<payloadAddr())
222  { cout<<"invalid fed addr '0x"<<hex<<(unsigned long)addr<<dec<<"'."<<endl; return false; }
223 
224  unsigned long offset=(unsigned long)addr-(unsigned long)payloadAddr();
225 
226  if (offset>=payloadSize())
227  { cout<<"invalid fed addr '0x"<<hex<<(unsigned long)addr<<dec<<"'."<<endl; return false; }
228 
229  unsigned int* fedSizeAddr;
230  fedSizeAddr=(unsigned int*)((unsigned long)this+fedSizeOffset_);
231  fedSizeAddr+=i;
232  *fedSizeAddr=size;
233 
234  unsigned int* fedAddr;
235  fedAddr=(unsigned int*)((unsigned long)this+fedOffset_);
236  fedAddr+=i;
237  *fedAddr=offset;
238 
239  return true;
240 }
int i
Definition: DBlmapReader.cc:9
static unsigned int size(unsigned int payloadSize)
unsigned char * payloadAddr() const
unsigned int offset(bool)
unsigned char * fedAddr(unsigned int i) const
Definition: FUShmRawCell.cc:94
unsigned int fedOffset_
Definition: FUShmRawCell.h:91
unsigned int payloadSize() const
Definition: FUShmRawCell.h:30
unsigned int fedSizeOffset_
Definition: FUShmRawCell.h:90
unsigned int nFed() const
Definition: FUShmRawCell.h:33
tuple cout
Definition: gather_cfg.py:121
bool FUShmRawCell::markSuperFrag ( unsigned int  i,
unsigned int  size,
unsigned char *  addr 
)

Definition at line 244 of file FUShmRawCell.cc.

References gather_cfg::cout, i, nSuperFrag(), evf::evtn::offset(), payloadAddr(), payloadSize(), size(), superFragAddr(), superFragOffset_, and superFragSizeOffset_.

Referenced by evf::FUResource::fillSuperFragPayload(), and evf::FUResource::process().

247 {
248  if (i>=nSuperFrag())
249  {cout<<"invalid sf index '"<<i<<"'."<<endl; return false; }
250  if (addr<payloadAddr())
251  {cout<<"invalid sf addr '0x"<<hex<<(unsigned long)addr<<dec<<"'."<<endl;return false;}
252 
253  unsigned int offset=(unsigned long)addr-(unsigned long)payloadAddr();
254 
255  if (offset>=payloadSize())
256  {cout<<"invalid sf addr '0x"<<hex<<(unsigned long)addr<<dec<<"'."<<endl;return false;}
257 
258  unsigned int* superFragSizeAddr;
259  superFragSizeAddr=(unsigned int*)((unsigned long)this+superFragSizeOffset_);
260  superFragSizeAddr+=i;
261  *superFragSizeAddr=size;
262 
263  unsigned int* superFragAddr;
264  superFragAddr=(unsigned int*)((unsigned long)this+superFragOffset_);
265  superFragAddr+=i;
266  *superFragAddr=offset;
267 
268  return true;
269 }
int i
Definition: DBlmapReader.cc:9
unsigned int superFragOffset_
Definition: FUShmRawCell.h:93
static unsigned int size(unsigned int payloadSize)
unsigned char * payloadAddr() const
unsigned char * superFragAddr(unsigned int i) const
unsigned int offset(bool)
unsigned int payloadSize() const
Definition: FUShmRawCell.h:30
unsigned int superFragSizeOffset_
Definition: FUShmRawCell.h:92
unsigned int nSuperFrag() const
Definition: FUShmRawCell.h:37
tuple cout
Definition: gather_cfg.py:121
unsigned int evf::FUShmRawCell::nFed ( ) const
inline
unsigned int evf::FUShmRawCell::nSuperFrag ( ) const
inline

Definition at line 37 of file FUShmRawCell.h.

References nSuperFrag_.

Referenced by evf::FUResource::allocate(), clear(), markSuperFrag(), superFragAddr(), and superFragSize().

37 { return nSuperFrag_; }
unsigned int nSuperFrag_
Definition: FUShmRawCell.h:87
unsigned char * FUShmRawCell::payloadAddr ( ) const

Definition at line 132 of file FUShmRawCell.cc.

References payloadOffset_, and query::result.

Referenced by fedAddr(), FUShmRawCell(), markFed(), markSuperFrag(), superFragAddr(), and evf::FUShmBuffer::writeErrorEventData().

133 {
134  unsigned char* result=(unsigned char*)((unsigned long)this+payloadOffset_);
135  return result;
136 }
tuple result
Definition: query.py:137
unsigned int payloadOffset_
Definition: FUShmRawCell.h:94
unsigned int evf::FUShmRawCell::payloadSize ( ) const
inline

Definition at line 30 of file FUShmRawCell.h.

References payloadSize_.

Referenced by evf::FUResource::allocate(), markFed(), markSuperFrag(), and size().

30 { return payloadSize_; }
unsigned int payloadSize_
Definition: FUShmRawCell.h:85
unsigned int FUShmRawCell::readFed ( unsigned int  i,
unsigned char *  buffer 
) const

Definition at line 182 of file FUShmRawCell.cc.

References fedAddr(), fedSize(), and size().

Referenced by FUShmReader::fillRawData(), and evf::FUShmClient::readNext().

184 {
185  unsigned int size=fedSize(i);
186  unsigned char* addr=fedAddr(i);
187  memcpy(buffer,addr,size);
188  return size;
189 }
int i
Definition: DBlmapReader.cc:9
static unsigned int size(unsigned int payloadSize)
unsigned char * fedAddr(unsigned int i) const
Definition: FUShmRawCell.cc:94
unsigned int fedSize(unsigned int i) const
Definition: FUShmRawCell.cc:82
void evf::FUShmRawCell::setBuResourceId ( unsigned int  id)
inline

Definition at line 44 of file FUShmRawCell.h.

References buResourceId_.

44 { buResourceId_=id; }
unsigned int buResourceId_
Definition: FUShmRawCell.h:83
void evf::FUShmRawCell::setEventTypeData ( )
inline

Definition at line 57 of file FUShmRawCell.h.

References evf::evt::DATA, eventType_, and evf::evt::NOP.

Referenced by evf::FUResource::allocate().

58  {assert(eventType_ == evt::NOP);
60  }
unsigned int eventType_
Definition: FUShmRawCell.h:89
void evf::FUShmRawCell::setEventTypeEol ( )
inline

Definition at line 61 of file FUShmRawCell.h.

References evf::evt::EOL, eventType_, and evf::evt::NOP.

Referenced by evf::FUShmBuffer::writeRawLumiSectionEvent().

62  {assert(eventType_ == evt::NOP);
64  }
unsigned int eventType_
Definition: FUShmRawCell.h:89
void evf::FUShmRawCell::setEventTypeStopper ( )
inline
void evf::FUShmRawCell::setEvtNumber ( unsigned int  evt)
inline

Definition at line 45 of file FUShmRawCell.h.

References evtNumber_.

Referenced by evf::ResourceChecker::findFEDs().

45 { evtNumber_ =evt; }
unsigned int evtNumber_
Definition: FUShmRawCell.h:84
void evf::FUShmRawCell::setFuResourceId ( unsigned int  id)
inline

Definition at line 43 of file FUShmRawCell.h.

References fuResourceId_.

Referenced by evf::FUResource::allocate().

43 { fuResourceId_=id; }
unsigned int fuResourceId_
Definition: FUShmRawCell.h:82
void FUShmRawCell::setLumiSection ( unsigned int  ls)
unsigned int FUShmRawCell::size ( unsigned int  payloadSize)
static

Definition at line 273 of file FUShmRawCell.cc.

References FUShmRawCell(), NFED_MAX, NSUPERFRAG_MAX, and payloadSize().

Referenced by dump(), evf::FUShmBuffer::FUShmBuffer(), markFed(), markSuperFrag(), readFed(), evf::FUShmBuffer::releaseSharedMemory(), and evf::FUShmBuffer::size().

274 {
275  return
276  sizeof(FUShmRawCell)+
277  sizeof(unsigned int)*2*(NFED_MAX+NSUPERFRAG_MAX)+
278  sizeof(unsigned char)*payloadSize;
279 }
#define NFED_MAX
Definition: FUShmRawCell.cc:17
unsigned int payloadSize() const
Definition: FUShmRawCell.h:30
FUShmRawCell(unsigned int payloadSize)
Definition: FUShmRawCell.cc:29
#define NSUPERFRAG_MAX
Definition: FUShmRawCell.cc:16
unsigned char * FUShmRawCell::superFragAddr ( unsigned int  i) const

Definition at line 119 of file FUShmRawCell.cc.

References gather_cfg::cout, i, nSuperFrag(), payloadAddr(), query::result, and superFragOffset_.

Referenced by evf::ResourceChecker::findFEDs(), FUShmRawCell(), and markSuperFrag().

120 {
121  if (i>=nSuperFrag()) {cout<<"invalid fed index '"<<i<<"'."<<endl; return 0; }
122  unsigned int* superFragOffsetAddr;
123  superFragOffsetAddr=(unsigned int*)((unsigned long)this+superFragOffset_);
124  superFragOffsetAddr+=i;
125  unsigned int superFragOffset=*superFragOffsetAddr;
126  unsigned char* result=(unsigned char*)((unsigned long)payloadAddr()+superFragOffset);
127  return result;
128 }
int i
Definition: DBlmapReader.cc:9
unsigned int superFragOffset_
Definition: FUShmRawCell.h:93
unsigned char * payloadAddr() const
tuple result
Definition: query.py:137
unsigned int nSuperFrag() const
Definition: FUShmRawCell.h:37
tuple cout
Definition: gather_cfg.py:121
unsigned int FUShmRawCell::superFragSize ( unsigned int  i) const

Definition at line 107 of file FUShmRawCell.cc.

References gather_cfg::cout, i, nSuperFrag(), query::result, and superFragSizeOffset_.

Referenced by evf::ResourceChecker::findFEDs().

108 {
109  if (i>=nSuperFrag()) {cout<<"invalid sf index '"<<i<<"'."<<endl; return 0; }
110  unsigned int* superFragSizeAddr;
111  superFragSizeAddr=(unsigned int*)((unsigned long)this+superFragSizeOffset_);
112  superFragSizeAddr+=i;
113  unsigned int result=*superFragSizeAddr;
114  return result;
115 }
int i
Definition: DBlmapReader.cc:9
tuple result
Definition: query.py:137
unsigned int superFragSizeOffset_
Definition: FUShmRawCell.h:92
unsigned int nSuperFrag() const
Definition: FUShmRawCell.h:37
tuple cout
Definition: gather_cfg.py:121
unsigned char * FUShmRawCell::writeData ( unsigned char *  data,
unsigned int  dataSize 
)

Definition at line 193 of file FUShmRawCell.cc.

References gather_cfg::cout, payloadOffset_, payloadPosition_, payloadSize_, and query::result.

Referenced by evf::FUResource::fillSuperFragPayload(), evf::FUResource::process(), and evf::FUShmServer::writeNext().

195 {
196  if (payloadPosition_+dataSize>payloadSize_) {
197  cout<<"FUShmRawCell::writeData: data to be written does not fit!"<<endl;
198  return 0;
199  }
200 
201  // result = addr of data to be written *in* the cell
202  unsigned char* result=
203  (unsigned char*)((unsigned long)this+payloadOffset_+payloadPosition_);
204  memcpy(result,data,dataSize);
205  payloadPosition_+=dataSize;
206  return result;
207 }
unsigned int payloadPosition_
Definition: FUShmRawCell.h:95
tuple result
Definition: query.py:137
unsigned int payloadOffset_
Definition: FUShmRawCell.h:94
unsigned int payloadSize_
Definition: FUShmRawCell.h:85
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:82
tuple cout
Definition: gather_cfg.py:121

Member Data Documentation

unsigned int evf::FUShmRawCell::buResourceId_
private

Definition at line 83 of file FUShmRawCell.h.

Referenced by buResourceId(), clear(), and setBuResourceId().

unsigned int evf::FUShmRawCell::eventType_
private
unsigned int evf::FUShmRawCell::evtNumber_
private

Definition at line 84 of file FUShmRawCell.h.

Referenced by evtNumber(), and setEvtNumber().

unsigned int evf::FUShmRawCell::fedOffset_
private

Definition at line 91 of file FUShmRawCell.h.

Referenced by fedAddr(), FUShmRawCell(), and markFed().

unsigned int evf::FUShmRawCell::fedSizeOffset_
private

Definition at line 90 of file FUShmRawCell.h.

Referenced by clear(), fedSize(), FUShmRawCell(), and markFed().

unsigned int evf::FUShmRawCell::fuResourceId_
private

Definition at line 82 of file FUShmRawCell.h.

Referenced by clear(), fuResourceId(), and setFuResourceId().

unsigned int evf::FUShmRawCell::index_
private

Definition at line 81 of file FUShmRawCell.h.

Referenced by index(), and initialize().

unsigned int evf::FUShmRawCell::lumiSection_
private

Definition at line 88 of file FUShmRawCell.h.

Referenced by clear(), getLumiSection(), initialize(), and setLumiSection().

unsigned int evf::FUShmRawCell::nFed_
private

Definition at line 86 of file FUShmRawCell.h.

Referenced by FUShmRawCell(), and nFed().

unsigned int evf::FUShmRawCell::nSuperFrag_
private

Definition at line 87 of file FUShmRawCell.h.

Referenced by FUShmRawCell(), and nSuperFrag().

unsigned int evf::FUShmRawCell::payloadOffset_
private

Definition at line 94 of file FUShmRawCell.h.

Referenced by FUShmRawCell(), payloadAddr(), and writeData().

unsigned int evf::FUShmRawCell::payloadPosition_
private

Definition at line 95 of file FUShmRawCell.h.

Referenced by clear(), eventSize(), and writeData().

unsigned int evf::FUShmRawCell::payloadSize_
private

Definition at line 85 of file FUShmRawCell.h.

Referenced by FUShmRawCell(), payloadSize(), and writeData().

unsigned int evf::FUShmRawCell::superFragOffset_
private

Definition at line 93 of file FUShmRawCell.h.

Referenced by FUShmRawCell(), markSuperFrag(), and superFragAddr().

unsigned int evf::FUShmRawCell::superFragSizeOffset_
private

Definition at line 92 of file FUShmRawCell.h.

Referenced by clear(), FUShmRawCell(), markSuperFrag(), and superFragSize().