![]() |
![]() |
#include <DTSpyReader.h>
Public Member Functions | |
uint64_t | dmaUnpack (const uint32_t *dmaData, bool &isData) |
pre-unpack the data if read via DMA More... | |
DTSpyReader (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 | ~DTSpyReader () |
Destructor. More... | |
![]() | |
DaqBaseReader () | |
virtual void | setRunNumber (edm::RunNumber_t runNumber) |
set the run number More... | |
virtual | ~DaqBaseReader () |
Private Attributes | |
int | dduID |
bool | debug |
edm::EventNumber_t | eventNumber |
DTSpy * | mySpy |
edm::RunNumber_t | runNumber |
Static Private Attributes | |
static const int | dduWordLength = 8 |
Read DT ROS8 raw data files
Definition at line 23 of file DTSpyReader.h.
DTSpyReader::DTSpyReader | ( | const edm::ParameterSet & | pset | ) |
Constructor.
connecting to XDAQ note ("0.0.0.0" = localhost)
Definition at line 33 of file DTSpyReader.cc.
References DTCtcp::Connect(), gather_cfg::cout, dduID, debug, edm::ParameterSet::getUntrackedParameter(), and mySpy.
|
virtual |
uint64_t DTSpyReader::dmaUnpack | ( | const uint32_t * | dmaData, |
bool & | isData | ||
) |
pre-unpack the data if read via DMA
Definition at line 141 of file DTSpyReader.cc.
Referenced by fillRawData().
|
virtual |
Generate and fill FED raw data for a full event.
Implements DaqBaseReader.
Definition at line 58 of file DTSpyReader.cc.
References filterCSVwithJSON::copy, gather_cfg::cout, FEDRawData::data(), dduID, dduWordLength, debug, dmaUnpack(), eventNumber, FEDRawDataCollection::FEDData(), DTSpy::getEventPointer(), DTSpy::getNextBuffer(), DTSpy::getRunNo(), isHeader(), isTrailer(), mySpy, FEDRawData::resize(), runNumber, DTSpy::setlastPointer(), and swap().
bool DTSpyReader::isHeader | ( | uint64_t | word, |
bool | dataTag | ||
) |
check for a 64 bits word to be a DDU header
Definition at line 162 of file DTSpyReader.cc.
References FEDHeader::check(), dduID, eventNumber, and FEDHeader::sourceID().
Referenced by fillRawData().
bool DTSpyReader::isTrailer | ( | uint64_t | word, |
bool | dataTag, | ||
int | wordCount | ||
) |
check for a 64 bits word to be a DDU trailer
Definition at line 176 of file DTSpyReader.cc.
References FEDTrailer::check(), and FEDTrailer::lenght().
Referenced by fillRawData().
void DTSpyReader::swap | ( | uint64_t & | word | ) |
swapping the lsBits with the msBits
Definition at line 131 of file DTSpyReader.cc.
References twoNibble64::lsBits, and twoNibble64::msBits.
Referenced by fillRawData().
|
private |
Definition at line 59 of file DTSpyReader.h.
Referenced by DTSpyReader(), fillRawData(), and isHeader().
|
staticprivate |
Definition at line 61 of file DTSpyReader.h.
Referenced by fillRawData().
|
private |
Definition at line 58 of file DTSpyReader.h.
Referenced by DTSpyReader(), and fillRawData().
|
private |
Definition at line 56 of file DTSpyReader.h.
Referenced by fillRawData(), isHeader(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
|
private |
Definition at line 53 of file DTSpyReader.h.
Referenced by DTSpyReader(), fillRawData(), and ~DTSpyReader().
|
private |
Definition at line 55 of file DTSpyReader.h.
Referenced by fillRawData().