CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
InputFile Struct Reference

#include <FedRawDataInputSource.h>

Public Member Functions

bool advance (unsigned char *&dataPosition, const size_t size)
 
 InputFile (evf::EvFDaqDirector::FileStatus status, unsigned int lumi=0, std::string const &name=std::string(), uint32_t fileSize=0, uint32_t nChunks=0, int nEvents=0, FedRawDataInputSource *parent=0)
 
 InputFile (std::string &name)
 
void moveToPreviousChunk (const size_t size, const size_t offset)
 
void rewindChunk (const size_t size)
 
bool waitForChunk (unsigned int chunkid)
 

Public Attributes

uint32_t bufferPosition_ = 0
 
uint32_t chunkPosition_ = 0
 
tbb::concurrent_vector
< InputChunk * > 
chunks_
 
unsigned int currentChunk_ = 0
 
std::string fileName_
 
uint32_t fileSize_
 
unsigned int lumi_
 
uint32_t nChunks_
 
int nEvents_
 
unsigned int nProcessed_
 
FedRawDataInputSourceparent_
 
evf::EvFDaqDirector::FileStatus status_
 

Detailed Description

Definition at line 213 of file FedRawDataInputSource.h.

Constructor & Destructor Documentation

InputFile::InputFile ( evf::EvFDaqDirector::FileStatus  status,
unsigned int  lumi = 0,
std::string const &  name = std::string(),
uint32_t  fileSize = 0,
uint32_t  nChunks = 0,
int  nEvents = 0,
FedRawDataInputSource parent = 0 
)
inline

Definition at line 229 of file FedRawDataInputSource.h.

InputFile::InputFile ( std::string &  name)
inline

Definition at line 244 of file FedRawDataInputSource.h.

Member Function Documentation

bool InputFile::advance ( unsigned char *&  dataPosition,
const size_t  size 
)
inline

Definition at line 1286 of file FedRawDataInputSource.cc.

void InputFile::moveToPreviousChunk ( const size_t  size,
const size_t  offset 
)
inline

Definition at line 1322 of file FedRawDataInputSource.cc.

void InputFile::rewindChunk ( const size_t  size)
inline

Definition at line 1332 of file FedRawDataInputSource.cc.

bool InputFile::waitForChunk ( unsigned int  chunkid)
inline

Definition at line 246 of file FedRawDataInputSource.h.

Member Data Documentation

uint32_t InputFile::bufferPosition_ = 0

Definition at line 225 of file FedRawDataInputSource.h.

uint32_t InputFile::chunkPosition_ = 0

Definition at line 226 of file FedRawDataInputSource.h.

tbb::concurrent_vector<InputChunk*> InputFile::chunks_

Definition at line 223 of file FedRawDataInputSource.h.

unsigned int InputFile::currentChunk_ = 0

Definition at line 227 of file FedRawDataInputSource.h.

std::string InputFile::fileName_

Definition at line 217 of file FedRawDataInputSource.h.

uint32_t InputFile::fileSize_

Definition at line 218 of file FedRawDataInputSource.h.

unsigned int InputFile::lumi_

Definition at line 216 of file FedRawDataInputSource.h.

uint32_t InputFile::nChunks_

Definition at line 219 of file FedRawDataInputSource.h.

int InputFile::nEvents_

Definition at line 220 of file FedRawDataInputSource.h.

unsigned int InputFile::nProcessed_

Definition at line 221 of file FedRawDataInputSource.h.

FedRawDataInputSource* InputFile::parent_

Definition at line 214 of file FedRawDataInputSource.h.

evf::EvFDaqDirector::FileStatus InputFile::status_

Definition at line 215 of file FedRawDataInputSource.h.