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  , lumiSection_(0)
35 {
37  unsigned int* fedSizeAddr;
38  fedSizeAddr=(unsigned int*)((unsigned long)this+fedSizeOffset_);
39  new(fedSizeAddr) unsigned int[nFed_];
40 
41  fedOffset_=fedSizeOffset_+sizeof(unsigned int)*nFed_;
42  unsigned int* fedAddr;
43  fedAddr=(unsigned int*)((unsigned long)this+fedOffset_);
44  new(fedAddr) unsigned int[nFed_];
45 
46  superFragSizeOffset_=fedOffset_+sizeof(unsigned int)*nFed_;
47  unsigned int* superFragSizeAddr;
48  superFragSizeAddr=(unsigned int*)((unsigned long)this+superFragSizeOffset_);
49  new(superFragSizeAddr) unsigned int[nSuperFrag_];
50 
52  unsigned char* superFragAddr;
53  superFragAddr=(unsigned char*)((unsigned long)this+superFragOffset_);
54  new(superFragAddr) unsigned char[nSuperFrag_];
55 
56  payloadOffset_=superFragOffset_+sizeof(unsigned int)*nSuperFrag_;
57  unsigned char* payloadAddr;
58  payloadAddr=(unsigned char*)((unsigned long)this+payloadOffset_);
59  new(payloadAddr) unsigned char[payloadSize_];
60 }
#define NFED_MAX
Definition: FUShmRawCell.cc:17
unsigned int superFragOffset_
Definition: FUShmRawCell.h:93
unsigned int eventType_
Definition: FUShmRawCell.h:89
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:96
unsigned int fedOffset_
Definition: FUShmRawCell.h:91
unsigned int payloadSize() const
Definition: FUShmRawCell.h:30
unsigned int lumiSection_
Definition: FUShmRawCell.h:88
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 64 of file FUShmRawCell.cc.

65 {
66 
67 }

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().

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

Definition at line 149 of file FUShmRawCell.cc.

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

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

150 {
151  fuResourceId_=0xffffffff;
152  buResourceId_=0xffffffff;
153  lumiSection_ =0;
155  unsigned int* fedSizeAddr;
156  fedSizeAddr=(unsigned int*)((unsigned long)this+fedSizeOffset_);
157  for (unsigned int i=0;i<nFed();i++) *fedSizeAddr++=0;
158 
159  unsigned int* superFragSizeAddr;
160  superFragSizeAddr=(unsigned int*)((unsigned long)this+superFragSizeOffset_);
161  for (unsigned int i=0;i<nSuperFrag();i++) *superFragSizeAddr++=0;
162 
164 }
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 168 of file FUShmRawCell.cc.

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

169 {
170  for (unsigned int i=0;i<nFed();i++) {
171  cout<<"fed "<<i<<": "<<flush;
172  unsigned char* addr=fedAddr(i);
173  unsigned int size=fedSize(i);
174  cout.fill(0);
175  cout<<setiosflags(ios::right);
176  for (unsigned int j=0;j<size;j++)
177  cout<<setw(2)<<hex<<(int)addr[j]<<dec<<" "<<flush;
178  cout<<endl;
179  }
180 }
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:96
unsigned int nFed() const
Definition: FUShmRawCell.h:33
tuple cout
Definition: gather_cfg.py:41
unsigned int fedSize(unsigned int i) const
Definition: FUShmRawCell.cc:84
unsigned int FUShmRawCell::eventSize ( ) const

Definition at line 142 of file FUShmRawCell.cc.

References payloadPosition_.

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

143 {
144  return payloadPosition_;
145 }
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 96 of file FUShmRawCell.cc.

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

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

97 {
98  if (i>=nFed()) {cout<<"invalid fed index '"<<i<<"'."<<endl; return 0; }
99  unsigned int* fedOffsetAddr;
100  fedOffsetAddr=(unsigned int*)((unsigned long)this+fedOffset_);
101  fedOffsetAddr+=i;
102  unsigned int fedOffset=*fedOffsetAddr;
103  unsigned char* result=(unsigned char*)((unsigned long)payloadAddr()+fedOffset);
104  return result;
105 }
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:41
unsigned int FUShmRawCell::fedSize ( unsigned int  i) const

Definition at line 84 of file FUShmRawCell.cc.

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

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

85 {
86  if (i>=nFed()) {cout<<"invalid fed index '"<<i<<"'."<<endl; return 0; }
87  unsigned int* fedSizeAddr;
88  fedSizeAddr=(unsigned int*)((unsigned long)this+fedSizeOffset_);
89  fedSizeAddr+=i;
90  unsigned int result=*fedSizeAddr;
91  return result;
92 }
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:41
unsigned int evf::FUShmRawCell::fuResourceId ( ) const
inline

Definition at line 26 of file FUShmRawCell.h.

References fuResourceId_.

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

26 { return fuResourceId_; }
unsigned int fuResourceId_
Definition: FUShmRawCell.h:82
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 75 of file FUShmRawCell.cc.

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

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

76 {
77  index_=index;
78  lumiSection_=0;
80 }
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 217 of file FUShmRawCell.cc.

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

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

220 {
221  if (i>=nFed())
222  {cout<<"invalid fed index '"<<i<<"'."<<endl; return false; }
223  if (addr<payloadAddr())
224  { cout<<"invalid fed addr '0x"<<hex<<(unsigned long)addr<<dec<<"'."<<endl; return false; }
225 
226  unsigned long offset=(unsigned long)addr-(unsigned long)payloadAddr();
227 
228  if (offset>=payloadSize())
229  { cout<<"invalid fed addr '0x"<<hex<<(unsigned long)addr<<dec<<"'."<<endl; return false; }
230 
231  unsigned int* fedSizeAddr;
232  fedSizeAddr=(unsigned int*)((unsigned long)this+fedSizeOffset_);
233  fedSizeAddr+=i;
234  *fedSizeAddr=size;
235 
236  unsigned int* fedAddr;
237  fedAddr=(unsigned int*)((unsigned long)this+fedOffset_);
238  fedAddr+=i;
239  *fedAddr=offset;
240 
241  return true;
242 }
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:96
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:41
bool FUShmRawCell::markSuperFrag ( unsigned int  i,
unsigned int  size,
unsigned char *  addr 
)

Definition at line 246 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().

249 {
250  if (i>=nSuperFrag())
251  {cout<<"invalid sf index '"<<i<<"'."<<endl; return false; }
252  if (addr<payloadAddr())
253  {cout<<"invalid sf addr '0x"<<hex<<(unsigned long)addr<<dec<<"'."<<endl;return false;}
254 
255  unsigned int offset=(unsigned long)addr-(unsigned long)payloadAddr();
256 
257  if (offset>=payloadSize())
258  {cout<<"invalid sf addr '0x"<<hex<<(unsigned long)addr<<dec<<"'."<<endl;return false;}
259 
260  unsigned int* superFragSizeAddr;
261  superFragSizeAddr=(unsigned int*)((unsigned long)this+superFragSizeOffset_);
262  superFragSizeAddr+=i;
263  *superFragSizeAddr=size;
264 
265  unsigned int* superFragAddr;
266  superFragAddr=(unsigned int*)((unsigned long)this+superFragOffset_);
267  superFragAddr+=i;
268  *superFragAddr=offset;
269 
270  return true;
271 }
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:41
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 134 of file FUShmRawCell.cc.

References payloadOffset_, and query::result.

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

135 {
136  unsigned char* result=(unsigned char*)((unsigned long)this+payloadOffset_);
137  return result;
138 }
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 184 of file FUShmRawCell.cc.

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

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

186 {
187  unsigned int size=fedSize(i);
188  unsigned char* addr=fedAddr(i);
189  memcpy(buffer,addr,size);
190  return size;
191 }
int i
Definition: DBlmapReader.cc:9
static unsigned int size(unsigned int payloadSize)
unsigned char * fedAddr(unsigned int i) const
Definition: FUShmRawCell.cc:96
unsigned int fedSize(unsigned int i) const
Definition: FUShmRawCell.cc:84
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::FUResource::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 275 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().

276 {
277  return
278  sizeof(FUShmRawCell)+
279  sizeof(unsigned int)*2*(NFED_MAX+NSUPERFRAG_MAX)+
280  sizeof(unsigned char)*payloadSize;
281 }
#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 121 of file FUShmRawCell.cc.

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

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

122 {
123  if (i>=nSuperFrag()) {cout<<"invalid fed index '"<<i<<"'."<<endl; return 0; }
124  unsigned int* superFragOffsetAddr;
125  superFragOffsetAddr=(unsigned int*)((unsigned long)this+superFragOffset_);
126  superFragOffsetAddr+=i;
127  unsigned int superFragOffset=*superFragOffsetAddr;
128  unsigned char* result=(unsigned char*)((unsigned long)payloadAddr()+superFragOffset);
129  return result;
130 }
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:41
unsigned int FUShmRawCell::superFragSize ( unsigned int  i) const

Definition at line 109 of file FUShmRawCell.cc.

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

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

110 {
111  if (i>=nSuperFrag()) {cout<<"invalid sf index '"<<i<<"'."<<endl; return 0; }
112  unsigned int* superFragSizeAddr;
113  superFragSizeAddr=(unsigned int*)((unsigned long)this+superFragSizeOffset_);
114  superFragSizeAddr+=i;
115  unsigned int result=*superFragSizeAddr;
116  return result;
117 }
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:41
unsigned char * FUShmRawCell::writeData ( unsigned char *  data,
unsigned int  dataSize 
)

Definition at line 195 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().

197 {
198  if (payloadPosition_+dataSize>payloadSize_) {
199  cout<<"FUShmRawCell::writeData: data to be written does not fit!"<<endl;
200  return 0;
201  }
202 
203  // result = addr of data to be written *in* the cell
204  unsigned char* result=
205  (unsigned char*)((unsigned long)this+payloadOffset_+payloadPosition_);
206  memcpy(result,data,dataSize);
207  payloadPosition_+=dataSize;
208  return result;
209 }
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
tuple cout
Definition: gather_cfg.py:41

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().