#include <DTROS25FileReader.h>
Public Member Functions | |
virtual bool | checkEndOfFile () |
DTROS25FileReader (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 (uint32_t word) |
check for a 32 bits word to be a ROS25 header More... | |
bool | isTrailer (uint32_t word) |
check for a 32 bits word to be a ROS25 trailer More... | |
void | swap (uint32_t &word) |
swapping the lsBits with the msBits More... | |
virtual | ~DTROS25FileReader () |
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 | |
edm::EventNumber_t | eventNumber |
RawFile | inputFile |
edm::RunNumber_t | runNumber |
Static Private Attributes | |
static const int | rosWordLenght = 4 |
Read DT ROS8 raw data files
Definition at line 20 of file DTROS25FileReader.h.
DTROS25FileReader::DTROS25FileReader | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 32 of file DTROS25FileReader.cc.
References edm::hlt::Exception, RawFile::fail(), lut2db_cfg::filename, edm::ParameterSet::getUntrackedParameter(), inputFile, and RawFile::open().
|
virtual |
Destructor.
Definition at line 45 of file DTROS25FileReader.cc.
References RawFile::close(), and inputFile.
|
virtual |
|
virtual |
Generate and fill FED raw data for a full event.
Implements DaqBaseReader.
Definition at line 50 of file DTROS25FileReader.cc.
References filterCSVwithJSON::copy, gather_cfg::cout, FEDRawData::data(), data, eventNumber, FEDRawDataCollection::FEDData(), i, inputFile, isHeader(), isTrailer(), FEDNumbering::MINDTFEDID, RawFile::read(), FEDRawData::resize(), rosWordLenght, runNumber, and swap().
bool DTROS25FileReader::isHeader | ( | uint32_t | word | ) |
check for a 32 bits word to be a ROS25 header
Definition at line 139 of file DTROS25FileReader.cc.
References eventNumber.
Referenced by fillRawData().
bool DTROS25FileReader::isTrailer | ( | uint32_t | word | ) |
check for a 32 bits word to be a ROS25 trailer
Definition at line 151 of file DTROS25FileReader.cc.
Referenced by fillRawData().
void DTROS25FileReader::swap | ( | uint32_t & | word | ) |
swapping the lsBits with the msBits
Definition at line 129 of file DTROS25FileReader.cc.
References twoNibble::lsBits, and twoNibble::msBits.
Referenced by fillRawData().
|
private |
Definition at line 52 of file DTROS25FileReader.h.
Referenced by fillRawData(), isHeader(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
|
private |
Definition at line 49 of file DTROS25FileReader.h.
Referenced by checkEndOfFile(), DTROS25FileReader(), fillRawData(), and ~DTROS25FileReader().
|
staticprivate |
Definition at line 54 of file DTROS25FileReader.h.
Referenced by fillRawData().
|
private |
Definition at line 51 of file DTROS25FileReader.h.
Referenced by fillRawData().