CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
InputChunk Struct Reference

#include <FedRawDataInputSource.h>

Public Member Functions

 InputChunk (unsigned int index, uint32_t size)
 
void reset (unsigned int newOffset, unsigned int toRead, unsigned int fileIndex)
 
 ~InputChunk ()
 

Public Attributes

unsigned char * buf_
 
unsigned int fileIndex_
 
unsigned int index_
 
InputChunknext_ = nullptr
 
unsigned int offset_
 
std::atomic< bool > readComplete_
 
uint32_t size_
 
uint32_t usedSize_ = 0
 

Detailed Description

Definition at line 182 of file FedRawDataInputSource.h.

Constructor & Destructor Documentation

◆ InputChunk()

InputChunk::InputChunk ( unsigned int  index,
uint32_t  size 
)
inline

Definition at line 192 of file FedRawDataInputSource.h.

192  : size_(size), index_(index) {
193  buf_ = new unsigned char[size_];
194  reset(0, 0, 0);
195  }

References buf_, reset(), and size_.

◆ ~InputChunk()

InputChunk::~InputChunk ( )
inline

Definition at line 203 of file FedRawDataInputSource.h.

203 { delete[] buf_; }

References buf_.

Member Function Documentation

◆ reset()

void InputChunk::reset ( unsigned int  newOffset,
unsigned int  toRead,
unsigned int  fileIndex 
)
inline

Definition at line 196 of file FedRawDataInputSource.h.

196  {
197  offset_ = newOffset;
198  usedSize_ = toRead;
199  fileIndex_ = fileIndex;
200  readComplete_ = false;
201  }

References fileIndex_, offset_, readComplete_, and usedSize_.

Referenced by InputChunk(), and FedRawDataInputSource::readSupervisor().

Member Data Documentation

◆ buf_

unsigned char* InputChunk::buf_

◆ fileIndex_

unsigned int InputChunk::fileIndex_

Definition at line 189 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker(), and reset().

◆ index_

unsigned int InputChunk::index_

Definition at line 187 of file FedRawDataInputSource.h.

◆ next_

InputChunk* InputChunk::next_ = nullptr

Definition at line 184 of file FedRawDataInputSource.h.

◆ offset_

unsigned int InputChunk::offset_

Definition at line 188 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker(), and reset().

◆ readComplete_

std::atomic<bool> InputChunk::readComplete_

◆ size_

uint32_t InputChunk::size_

Definition at line 185 of file FedRawDataInputSource.h.

Referenced by InputChunk().

◆ usedSize_

uint32_t InputChunk::usedSize_ = 0

Definition at line 186 of file FedRawDataInputSource.h.

Referenced by FedRawDataInputSource::readWorker(), and reset().

InputChunk::offset_
unsigned int offset_
Definition: FedRawDataInputSource.h:188
InputChunk::usedSize_
uint32_t usedSize_
Definition: FedRawDataInputSource.h:186
InputChunk::buf_
unsigned char * buf_
Definition: FedRawDataInputSource.h:183
InputChunk::reset
void reset(unsigned int newOffset, unsigned int toRead, unsigned int fileIndex)
Definition: FedRawDataInputSource.h:196
InputChunk::index_
unsigned int index_
Definition: FedRawDataInputSource.h:187
InputChunk::readComplete_
std::atomic< bool > readComplete_
Definition: FedRawDataInputSource.h:190
InputChunk::fileIndex_
unsigned int fileIndex_
Definition: FedRawDataInputSource.h:189
InputChunk::size_
uint32_t size_
Definition: FedRawDataInputSource.h:185
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443