#include <L1GlobalTriggerEvmRawToDigi.h>
Public Member Functions | |
L1GlobalTriggerEvmRawToDigi (const edm::ParameterSet &) | |
constructor(s) More... | |
virtual | ~L1GlobalTriggerEvmRawToDigi () |
destructor More... | |
Public Member Functions inherited from edm::EDProducer | |
EDProducer () | |
virtual | ~EDProducer () |
Public Member Functions inherited from edm::ProducerBase | |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
boost::function< void(const BranchDescription &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
virtual | ~ProducerBase () |
Private Member Functions | |
virtual void | beginJob () |
void | dumpFedRawData (const unsigned char *, int, std::ostream &) |
dump FED raw data More... | |
virtual void | endJob () |
virtual void | produce (edm::Event &, const edm::EventSetup &) |
void | produceEmptyProducts (edm::Event &) |
produce empty products in case of problems More... | |
void | unpackHeader (const unsigned char *, FEDHeader &) |
block unpackers More... | |
void | unpackTrailer (const unsigned char *, FEDTrailer &) |
unpack trailer word More... | |
Private Attributes | |
cms_uint16_t | m_activeBoardsMaskGt |
mask for active boards More... | |
int | m_bstLengthBytes |
length of BST record (in bytes) More... | |
int | m_evmGtFedId |
edm::InputTag | m_evmGtInputTag |
input tags for GT EVM record More... | |
L1GtFdlWord * | m_gtFdlWord |
L1GtfeExtWord * | m_gtfeWord |
bool | m_isDebugEnabled |
int | m_lowSkipBxInEvent |
int | m_recordLength0 |
total Bx's in the event, obtained from GTFE block More... | |
int | m_recordLength1 |
corresponding to alternative 1 in altNrBxBoard() More... | |
L1TcsWord * | m_tcsWord |
int | m_totalBxInEvent |
number of Bx for a board, obtained from GTFE block (record length & alternative) More... | |
int | m_unpackBxInEvent |
int | m_uppSkipBxInEvent |
int | m_verbosity |
verbosity level More... | |
Additional Inherited Members | |
Public Types inherited from edm::EDProducer | |
typedef EDProducer | ModuleType |
typedef WorkerT< EDProducer > | WorkerType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
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::EDProducer | |
CurrentProcessingContext const * | currentContext () const |
Protected Member Functions inherited from edm::ProducerBase | |
template<class TProducer , class TMethod > | |
void | callWhenNewProductsRegistered (TProducer *iProd, TMethod iMethod) |
Description: unpack EVM raw data into digitized data.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Description: unpack raw data into digitized data.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 46 of file L1GlobalTriggerEvmRawToDigi.h.
|
explicit |
constructor(s)
Definition at line 58 of file L1GlobaTriggerEvmRawToDigi.cc.
References LogDebug, m_activeBoardsMaskGt, m_bstLengthBytes, m_evmGtFedId, m_evmGtInputTag, m_gtFdlWord, m_gtfeWord, m_isDebugEnabled, m_tcsWord, m_unpackBxInEvent, and m_verbosity.
|
virtual |
destructor
Definition at line 127 of file L1GlobaTriggerEvmRawToDigi.cc.
References m_gtFdlWord, m_gtfeWord, and m_tcsWord.
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 137 of file L1GlobaTriggerEvmRawToDigi.cc.
|
private |
dump FED raw data
Definition at line 807 of file L1GlobaTriggerEvmRawToDigi.cc.
References i, LogDebug, LogTrace, L1GlobalTriggerReadoutSetup::UnitLength, and L1GlobalTriggerReadoutSetup::WordLength.
Referenced by produce().
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 830 of file L1GlobaTriggerEvmRawToDigi.cc.
|
privatevirtual |
Implements edm::EDProducer.
Definition at line 144 of file L1GlobaTriggerEvmRawToDigi.cc.
References L1GtfeWord::activeBoards(), L1GtfeWord::altNrBxBoard(), FEDRawData::data(), dumpFedRawData(), FDL, edm::EventSetup::get(), edm::Event::getByLabel(), L1GtfeExtWord::getSize(), L1TcsWord::getSize(), L1GtFdlWord::getSize(), GMT, L1GtParameters::gtBstLengthBytes(), GTFE, edm::HandleBase::isValid(), LogDebug, LogTrace, L1TcsWord::luminositySegmentNr(), L1GtFdlWord::lumiSegmentNr(), m_activeBoardsMaskGt, m_bstLengthBytes, m_evmGtFedId, m_evmGtInputTag, m_gtFdlWord, m_gtfeWord, m_isDebugEnabled, m_lowSkipBxInEvent, m_recordLength0, m_recordLength1, m_tcsWord, m_totalBxInEvent, m_unpackBxInEvent, m_uppSkipBxInEvent, m_verbosity, max(), L1GtfeExtWord::print(), L1TcsWord::print(), L1GtFdlWord::print(), produceEmptyProducts(), edm::Handle< T >::product(), edm::ESHandle< class >::product(), PSB, edm::Event::put(), L1GtfeWord::recordLength(), L1GtfeWord::recordLength1(), L1GtfeExtWord::reset(), L1TcsWord::reset(), L1GtFdlWord::reset(), L1GtfeExtWord::resize(), L1GtfeWord::setActiveBoards(), L1TcsWord::setLuminositySegmentNr(), L1GtFdlWord::setLumiSegmentNr(), L1GtfeWord::setRecordLength(), L1GtfeWord::setRecordLength1(), FEDRawData::size(), TCS, TIM, L1GtfeExtWord::unpack(), L1TcsWord::unpack(), L1GtFdlWord::unpack(), unpackHeader(), and unpackTrailer().
Referenced by JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
|
private |
produce empty products in case of problems
Definition at line 796 of file L1GlobaTriggerEvmRawToDigi.cc.
References edm::Event::put().
Referenced by produce().
|
private |
block unpackers
unpack header
Definition at line 697 of file L1GlobaTriggerEvmRawToDigi.cc.
References FEDHeader::bxID(), edm::isDebugEnabled(), LogDebug, FEDHeader::lvl1ID(), FEDHeader::moreHeaders(), FEDHeader::sourceID(), FEDHeader::triggerType(), and FEDHeader::version().
Referenced by produce().
|
private |
unpack trailer word
Definition at line 749 of file L1GlobaTriggerEvmRawToDigi.cc.
References FEDTrailer::crc(), FEDTrailer::evtStatus(), FEDTrailer::lenght(), LogDebug, m_isDebugEnabled, m_verbosity, FEDTrailer::moreTrailers(), and FEDTrailer::ttsBits().
Referenced by produce().
|
private |
mask for active boards
Definition at line 94 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), and produce().
|
private |
length of BST record (in bytes)
Definition at line 120 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), and produce().
|
private |
FED Id for GT EVM record default value defined in DataFormats/FEDRawData/src/FEDNumbering.cc
Definition at line 91 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), and produce().
|
private |
input tags for GT EVM record
Definition at line 87 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), and produce().
|
private |
Definition at line 84 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), produce(), and ~L1GlobalTriggerEvmRawToDigi().
|
private |
Definition at line 82 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), produce(), and ~L1GlobalTriggerEvmRawToDigi().
|
private |
Definition at line 126 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), produce(), and unpackTrailer().
|
private |
lowest bxInEvent to be unpacked in the event assume symmetrical number of BX around L1Accept
Definition at line 101 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by produce().
|
private |
total Bx's in the event, obtained from GTFE block
corresponding to alternative 0 in altNrBxBoard()
Definition at line 110 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by produce().
|
private |
corresponding to alternative 1 in altNrBxBoard()
Definition at line 113 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by produce().
|
private |
Definition at line 83 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), produce(), and ~L1GlobalTriggerEvmRawToDigi().
|
private |
number of Bx for a board, obtained from GTFE block (record length & alternative)
Definition at line 116 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by produce().
|
private |
Definition at line 97 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), and produce().
|
private |
upper bxInEvent to be unpacked in the event assume symmetrical number of BX around L1Accept
Definition at line 105 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by produce().
|
private |
verbosity level
Definition at line 125 of file L1GlobalTriggerEvmRawToDigi.h.
Referenced by L1GlobalTriggerEvmRawToDigi(), produce(), and unpackTrailer().