#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 | |
EDProducer (const EDProducer &)=delete | |
bool | hasAbilityToProduceInBeginLumis () const final |
bool | hasAbilityToProduceInBeginProcessBlocks () const final |
bool | hasAbilityToProduceInBeginRuns () const final |
bool | hasAbilityToProduceInEndLumis () const final |
bool | hasAbilityToProduceInEndProcessBlocks () const final |
bool | hasAbilityToProduceInEndRuns () const final |
const EDProducer & | operator= (const EDProducer &)=delete |
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 |
edm::ESGetToken< DTReadOutMapping, DTReadOutMappingRcd > | mapping_token_ |
int | nfeds_ |
edm::EDGetTokenT< FEDRawDataCollection > | Raw_token |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
using | CacheTypes = CacheContexts< T... > |
using | GlobalCache = typename CacheTypes::GlobalCache |
using | HasAbility = AbilityChecker< T... > |
using | InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache |
using | LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache |
using | LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > |
using | LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache |
using | RunCache = typename CacheTypes::RunCache |
using | RunContext = RunContextT< RunCache, GlobalCache > |
using | RunSummaryCache = typename CacheTypes::RunSummaryCache |
L1 DT uROS Raw-to-Digi
C. Heidemann - RWTH Aachen J. Troconiz - UAM Madrid
Definition at line 39 of file DTuROSRawToDigi.h.
DTuROSRawToDigi::DTuROSRawToDigi | ( | const edm::ParameterSet & | pset | ) |
Constructor.
Definition at line 27 of file DTuROSRawToDigi.cc.
References debug_, DTuROSInputTag_, feds_, mps_fire::i, mapping_token_, FEDNumbering::MAXDTUROSFEDID, FEDNumbering::MINDTUROSFEDID, nfeds_, muonDTDigis_cfi::pset, 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 60 of file DTuROSRawToDigi.cc.
References HltBtagPostValidation_cff::c, data, MillePedeFileConverter_cfg::e, feds_, DTuROSFEDData::getfed(), taus_updatedMVAIds_cff::mapping, mapping_token_, nfeds_, process(), and Raw_token.
Referenced by produce().
|
inlineprivate |
|
private |
Definition at line 79 of file DTuROSRawToDigi.cc.
References dt_crc::calcCRC(), RawDataTask_cfi::CRC, FEDRawData::data(), data, debug_, TauDecayModes::dec, relativeConstraints::error, DTROChainCoding::getCode(), DTuROSROSData::getokword1(), dqmiolumiharvest::j, dqmdumpme::k, DTWireId::layerId(), lineFED, groupFilesInBlocks::lines, taus_updatedMVAIds_cff::mapping, readline(), 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 testProducerWithPsetDescEmpty_cfi::x1.
Referenced by fillRawData().
|
override |
Produce digis out of raw data.
Definition at line 46 of file DTuROSRawToDigi.cc.
References HltBtagPostValidation_cff::c, MillePedeFileConverter_cfg::e, fillRawData(), and eostools::move().
|
inlineprivate |
Definition at line 75 of file DTuROSRawToDigi.h.
References lineFED, and groupFilesInBlocks::lines.
Referenced by process().
|
private |
Definition at line 377 of file DTuROSRawToDigi.cc.
References FEDNumbering::MAXDTUROSFEDID, FEDNumbering::MINDTUROSFEDID, and theROS().
Referenced by process().
|
private |
Definition at line 417 of file DTuROSRawToDigi.cc.
Referenced by process().
|
private |
Definition at line 409 of file DTuROSRawToDigi.cc.
|
private |
Definition at line 56 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and process().
|
private |
Definition at line 54 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and getDTuROSInputTag().
|
private |
Definition at line 60 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and fillRawData().
|
private |
Definition at line 62 of file DTuROSRawToDigi.h.
Referenced by process(), and readline().
|
private |
Definition at line 90 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and fillRawData().
|
private |
Definition at line 58 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and fillRawData().
|
private |
Definition at line 89 of file DTuROSRawToDigi.h.
Referenced by DTuROSRawToDigi(), and fillRawData().