#include <DTDDUFileReader.h>
Public Member Functions | |
virtual bool | checkEndOfFile () |
uint64_t | dmaUnpack (bool &isData, int &nread) |
pre-unpack the data if read via DMA More... | |
DTDDUFileReader (const edm::ParameterSet &pset) | |
Constructor. More... | |
virtual int | fillRawData (edm::EventID &eID, edm::Timestamp &tstamp, FEDRawDataCollection *&data) |
Generate and fill FED raw data for a full event. More... | |
bool | isHeader (uint64_t word, bool dataTag) |
check for a 64 bits word to be a DDU header More... | |
bool | isTrailer (uint64_t word, bool dataTag, int wordCount) |
check for a 64 bits word to be a DDU trailer More... | |
void | swap (uint64_t &word) |
swapping the lsBits with the msBits More... | |
virtual | ~DTDDUFileReader () |
Destructor. More... | |
Public Member Functions inherited from DaqBaseReader | |
DaqBaseReader () | |
virtual void | setRunNumber (edm::RunNumber_t runNumber) |
set the run number More... | |
virtual | ~DaqBaseReader () |
Private Attributes | |
int | dduID |
edm::EventNumber_t | eventNumber |
RawFile | inputFile |
int | numberOfHeaderWords |
bool | readFromDMA |
edm::RunNumber_t | runNumber |
int | skipEvents |
Static Private Attributes | |
static const int | dduWordLength = 8 |
Read DT ROS8 raw data files
Definition at line 20 of file DTDDUFileReader.h.
DTDDUFileReader::DTDDUFileReader | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 32 of file DTDDUFileReader.cc.
References gather_cfg::cout, edm::hlt::Exception, RawFile::fail(), lut2db_cfg::filename, edm::ParameterSet::getUntrackedParameter(), RawFile::ignore(), inputFile, numberOfHeaderWords, RawFile::open(), RawFile::read(), readFromDMA, runNumber, and skipEvents.
|
virtual |
Destructor.
Definition at line 64 of file DTDDUFileReader.cc.
References RawFile::close(), and inputFile.
|
virtual |
uint64_t DTDDUFileReader::dmaUnpack | ( | bool & | isData, |
int & | nread | ||
) |
pre-unpack the data if read via DMA
Definition at line 178 of file DTDDUFileReader.cc.
References data, inputFile, and RawFile::read().
Referenced by fillRawData().
|
virtual |
Generate and fill FED raw data for a full event.
Implements DaqBaseReader.
Definition at line 68 of file DTDDUFileReader.cc.
References filterCSVwithJSON::copy, gather_cfg::cout, FEDRawData::data(), data, dduID, dduWordLength, dmaUnpack(), eventNumber, FEDRawDataCollection::FEDData(), inputFile, isHeader(), isTrailer(), FEDNumbering::MINDTFEDID, RawFile::read(), readFromDMA, FEDRawData::resize(), runNumber, skipEvents, and swap().
bool DTDDUFileReader::isHeader | ( | uint64_t | word, |
bool | dataTag | ||
) |
check for a 64 bits word to be a DDU header
Definition at line 205 of file DTDDUFileReader.cc.
References FEDHeader::check(), dduID, eventNumber, and FEDHeader::sourceID().
Referenced by fillRawData().
bool DTDDUFileReader::isTrailer | ( | uint64_t | word, |
bool | dataTag, | ||
int | wordCount | ||
) |
check for a 64 bits word to be a DDU trailer
Definition at line 220 of file DTDDUFileReader.cc.
References FEDTrailer::check(), and FEDTrailer::lenght().
Referenced by fillRawData().
void DTDDUFileReader::swap | ( | uint64_t & | word | ) |
swapping the lsBits with the msBits
Definition at line 168 of file DTDDUFileReader.cc.
References twoNibble64::lsBits, and twoNibble64::msBits.
Referenced by fillRawData().
|
private |
Definition at line 58 of file DTDDUFileReader.h.
Referenced by fillRawData(), and isHeader().
|
staticprivate |
Definition at line 64 of file DTDDUFileReader.h.
Referenced by fillRawData().
|
private |
Definition at line 56 of file DTDDUFileReader.h.
Referenced by fillRawData(), isHeader(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
|
private |
Definition at line 53 of file DTDDUFileReader.h.
Referenced by checkEndOfFile(), dmaUnpack(), DTDDUFileReader(), fillRawData(), and ~DTDDUFileReader().
|
private |
Definition at line 62 of file DTDDUFileReader.h.
Referenced by DTDDUFileReader().
|
private |
Definition at line 60 of file DTDDUFileReader.h.
Referenced by DTDDUFileReader(), and fillRawData().
|
private |
Definition at line 55 of file DTDDUFileReader.h.
Referenced by DTDDUFileReader(), and fillRawData().
|
private |
Definition at line 61 of file DTDDUFileReader.h.
Referenced by DTDDUFileReader(), and fillRawData().