#include <DTuROSRawToDigi.h>
Public Member Functions | |
DTuROSRawToDigi (const edm::ParameterSet &pset) | |
Constructor. More... | |
bool | fillRawData (edm::Event &e, const edm::EventSetup &c, DTDigiCollection &digis, std::vector< DTuROSFEDData > &words) |
Generate and fill FED raw data for a full event. More... | |
void | produce (edm::Event &e, const edm::EventSetup &c) override |
Produce digis out of raw data. More... | |
~DTuROSRawToDigi () override | |
Destructor. More... | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
~EDProducerBase () override | |
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 () | |
std::vector< edm::ProductResolverIndex > const & | putTokenIndexToProductResolverIndex () const |
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, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
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 & | itemsToGetFrom (BranchType iType) 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 |
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Private Member Functions | |
edm::InputTag | getDTuROSInputTag () |
void | process (int DTuROSFED, edm::Handle< FEDRawDataCollection > data, edm::ESHandle< DTReadOutMapping > mapping, DTDigiCollection &digis, DTuROSFEDData &fwords) |
void | readline (int &lines, long &dataWord) |
int | theDDU (int crate, int slot, int link, bool tenDDU) |
int | theROB (int slot, int link) |
int | theROS (int slot, int link) |
Private Attributes | |
bool | debug_ |
edm::InputTag | DTuROSInputTag_ |
std::vector< int > | feds_ |
unsigned char * | lineFED |
int | nfeds_ |
edm::EDGetTokenT< FEDRawDataCollection > | Raw_token |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
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) |
L1 DT uROS Raw-to-Digi
C. Heidemann - RWTH Aachen J. Troconiz - UAM Madrid
Definition at line 37 of file DTuROSRawToDigi.h.
DTuROSRawToDigi::DTuROSRawToDigi | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 30 of file DTuROSRawToDigi.cc.
References debug_, DTuROSInputTag_, feds_, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, FEDNumbering::MAXDTUROSFEDID, FEDNumbering::MINDTUROSFEDID, nfeds_, and Raw_token.
|
override |
bool DTuROSRawToDigi::fillRawData | ( | edm::Event & | e, |
const edm::EventSetup & | c, | ||
DTDigiCollection & | digis, | ||
std::vector< DTuROSFEDData > & | words | ||
) |
Generate and fill FED raw data for a full event.
Definition at line 68 of file DTuROSRawToDigi.cc.
References data, feds_, edm::EventSetup::get(), edm::Event::getByToken(), HPSPFTaus_cff::mapping, nfeds_, process(), and Raw_token.
Referenced by produce().
|
inlineprivate |
|
private |
Definition at line 87 of file DTuROSRawToDigi.cc.
References dt_crc::calcCRC(), FEDRawData::data(), debug_, TauDecayModes::dec, relativeConstraints::error, FEDRawDataCollection::FEDData(), DTROChainCoding::getCode(), DTuROSROSData::getokword1(), gen::k, DTWireId::layerId(), lineFED, groupFilesInBlocks::lines, readline(), DTReadOutMapping::readOutToGeometry(), DTuROSROSData::seterror(), DTuROSFEDData::setevtlgth(), DTuROSROSData::setexword(), DTuROSFEDData::setfed(), DTuROSROSData::setheader1(), DTuROSFEDData::setheader1(), DTuROSROSData::setheader2(), DTuROSFEDData::setheader2(), DTuROSFEDData::setnslots(), DTuROSROSData::setokword1(), DTuROSROSData::setokword2(), DTuROSROSData::setokxword(), DTuROSROSData::setslot(), DTuROSFEDData::setslotsize(), DTuROSROSData::settrailer(), DTuROSFEDData::settrailer(), DTuROSFEDData::setuROS(), FEDRawData::size(), theDDU(), theROB(), theROS(), DTWireId::wire(), and globals_cff::x1.
Referenced by ConfigBuilder.ConfigBuilder::addExtraStream(), ConfigBuilder.ConfigBuilder::completeInputCommand(), ConfigBuilder.ConfigBuilder::doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::dumpPython(), fillRawData(), ConfigBuilder.ConfigBuilder.PrintAllModules::leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::outputEventContent(), ConfigBuilder.ConfigBuilder::prepare(), ConfigBuilder.ConfigBuilder::prepare_ALCA(), ConfigBuilder.ConfigBuilder::prepare_DQM(), ConfigBuilder.ConfigBuilder::prepare_HLT(), ConfigBuilder.ConfigBuilder::prepare_LHE(), ConfigBuilder.ConfigBuilder::prepare_PATFILTER(), ConfigBuilder.ConfigBuilder::prepare_VALIDATION(), ConfigBuilder.ConfigBuilder::renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder::renameInputTagsInSequence(), ConfigBuilder.ConfigBuilder::scheduleSequence(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProcess(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor::setProperty().
|
override |
Produce digis out of raw data.
Definition at line 52 of file DTuROSRawToDigi.cc.
References fillRawData(), eostools::move(), and edm::Event::put().
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
inlineprivate |
Definition at line 77 of file DTuROSRawToDigi.h.
References groupFilesInBlocks::lines, theDDU(), theROB(), and theROS().
Referenced by process().
|
private |
Definition at line 435 of file DTuROSRawToDigi.cc.
References FEDNumbering::MAXDTUROSFEDID, FEDNumbering::MINDTUROSFEDID, and theROS().
Referenced by process(), and readline().
|
private |
Definition at line 476 of file DTuROSRawToDigi.cc.
References DEFINE_FWK_MODULE.
Referenced by process(), and readline().
|
private |
Definition at line 467 of file DTuROSRawToDigi.cc.
Referenced by process(), readline(), and theDDU().
|
private |
Definition at line 58 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and process().
|
private |
Definition at line 56 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and getDTuROSInputTag().
|
private |
Definition at line 62 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and fillRawData().
|
private |
Definition at line 64 of file DTuROSRawToDigi.h.
Referenced by process().
|
private |
Definition at line 60 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and fillRawData().
|
private |
Definition at line 91 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and fillRawData().