#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::Event &e, 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... | |
virtual void | produce (edm::Event &, edm::EventSetup const &) |
void | swap (uint64_t &word) |
swapping the lsBits with the msBits More... | |
virtual | ~DTSpyReader () |
Destructor. More... | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
std::vector < ProductHolderIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesDependentUpon (std::string const &iProcessName, std::string const &iModuleLabel, bool iPrint, std::vector< char const * > &oModuleLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
virtual | ~EDConsumerBase () |
Private Attributes | |
int | dduID |
bool | debug |
edm::EventNumber_t | eventNumber |
DTSpy * | mySpy |
edm::RunNumber_t | runNumber |
Static Private Attributes | |
static const int | dduWordLength = 8 |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::EDProducer | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Read DT ROS8 raw data files
Definition at line 24 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 155 of file DTSpyReader.cc.
Referenced by fillRawData().
|
virtual |
Generate and fill FED raw data for a full event.
Definition at line 60 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(), edm::EventBase::id(), isHeader(), isTrailer(), mySpy, FEDRawData::resize(), runNumber, DTSpy::setlastPointer(), and swap().
Referenced by produce().
bool DTSpyReader::isHeader | ( | uint64_t | word, |
bool | dataTag | ||
) |
check for a 64 bits word to be a DDU header
Definition at line 176 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 190 of file DTSpyReader.cc.
References FEDTrailer::check(), and FEDTrailer::lenght().
Referenced by fillRawData().
|
virtual |
Implements edm::EDProducer.
Definition at line 137 of file DTSpyReader.cc.
References fillRawData(), edm::Event::put(), and lumiPlot::rawdata.
void DTSpyReader::swap | ( | uint64_t & | word | ) |
swapping the lsBits with the msBits
Definition at line 145 of file DTSpyReader.cc.
References twoNibble64::lsBits, and twoNibble64::msBits.
Referenced by fillRawData().
|
private |
Definition at line 61 of file DTSpyReader.h.
Referenced by DTSpyReader(), fillRawData(), and isHeader().
|
staticprivate |
Definition at line 63 of file DTSpyReader.h.
Referenced by fillRawData().
|
private |
Definition at line 60 of file DTSpyReader.h.
Referenced by DTSpyReader(), and fillRawData().
|
private |
Definition at line 58 of file DTSpyReader.h.
Referenced by fillRawData(), isHeader(), and Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor::setFilterBranches().
|
private |
Definition at line 55 of file DTSpyReader.h.
Referenced by DTSpyReader(), fillRawData(), and ~DTSpyReader().
|
private |
Definition at line 57 of file DTSpyReader.h.
Referenced by fillRawData().