#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) |
std::vector < edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector < ProductResolverIndexAndSkipBit > const & | itemsToGetFromEvent () const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
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(), eostools::move(), 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().