#include <L1GlobalTriggerRawToDigi.h>
Public Member Functions | |
L1GlobalTriggerRawToDigi (const edm::ParameterSet &) | |
constructor(s) More... | |
virtual | ~L1GlobalTriggerRawToDigi () |
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 | unpackGMT (const unsigned char *, std::auto_ptr< L1MuGMTReadoutCollection > &, edm::Event &) |
unpack the GMT record More... | |
void | unpackHeader (const unsigned char *, FEDHeader &) |
block unpackers More... | |
void | unpackPSB (const edm::EventSetup &, const unsigned char *, L1GtPsbWord &) |
void | unpackTrailer (const unsigned char *, FEDTrailer &) |
unpack trailer word More... | |
Private Attributes | |
boost::uint16_t | m_activeBoardsMaskGt |
mask for active boards More... | |
int | m_daqGtFedId |
edm::InputTag | m_daqGtInputTag |
input tags for GT DAQ record More... | |
L1GtFdlWord * | m_gtFdlWord |
L1GtfeWord * | m_gtfeWord |
L1GtPsbWord * | m_gtPsbWord |
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... | |
int | m_totalBxInEvent |
number of Bx for a board, obtained from GTFE block (record length & alternative) More... | |
const L1MuTriggerPtScale * | m_TriggerPtScale |
const L1MuTriggerScales * | m_TriggerScales |
muon trigger scales to convert unpacked data into physical quantities 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) |
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 raw data into digitized data.
Implementation: <TODO: enter implementation details>
$Date$ $Revision$
Definition at line 50 of file L1GlobalTriggerRawToDigi.h.
|
explicit |
constructor(s)
Definition at line 65 of file L1GlobaTriggerRawToDigi.cc.
References LogDebug, m_activeBoardsMaskGt, m_daqGtFedId, m_daqGtInputTag, m_gtFdlWord, m_gtfeWord, m_gtPsbWord, m_isDebugEnabled, m_unpackBxInEvent, and m_verbosity.
|
virtual |
destructor
Definition at line 138 of file L1GlobaTriggerRawToDigi.cc.
References m_gtFdlWord, m_gtfeWord, and m_gtPsbWord.
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 148 of file L1GlobaTriggerRawToDigi.cc.
|
private |
dump FED raw data
Definition at line 1037 of file L1GlobaTriggerRawToDigi.cc.
References i, LogDebug, LogTrace, L1GlobalTriggerReadoutSetup::UnitLength, and L1GlobalTriggerReadoutSetup::WordLength.
Referenced by produce().
|
privatevirtual |
Reimplemented from edm::EDProducer.
Definition at line 1060 of file L1GlobaTriggerRawToDigi.cc.
|
privatevirtual |
Implements edm::EDProducer.
Definition at line 153 of file L1GlobaTriggerRawToDigi.cc.
References L1GtfeWord::activeBoards(), L1GtfeWord::altNrBxBoard(), FEDRawData::data(), dumpFedRawData(), FDL, edm::EventSetup::get(), edm::Event::getByLabel(), L1GtPsbWord::getSize(), L1GtfeWord::getSize(), L1GtFdlWord::getSize(), GMT, GTFE, edm::HandleBase::isValid(), LogDebug, LogTrace, L1GtFdlWord::lumiSegmentNr(), m_activeBoardsMaskGt, m_daqGtFedId, m_daqGtInputTag, m_gtFdlWord, m_gtfeWord, m_gtPsbWord, m_isDebugEnabled, m_lowSkipBxInEvent, m_recordLength0, m_recordLength1, m_totalBxInEvent, m_TriggerPtScale, m_TriggerScales, m_unpackBxInEvent, m_uppSkipBxInEvent, m_verbosity, max(), L1GtPsbWord::print(), L1GtfeWord::print(), L1GtFdlWord::print(), produceEmptyProducts(), edm::Handle< T >::product(), edm::ESHandle< class >::product(), PSB, edm::Event::put(), L1GtfeWord::recordLength(), L1GtfeWord::recordLength1(), L1GtPsbWord::reset(), L1GtfeWord::reset(), L1GtFdlWord::reset(), L1GtfeWord::setActiveBoards(), L1GtFdlWord::setLumiSegmentNr(), L1GtfeWord::setRecordLength(), L1GtfeWord::setRecordLength1(), FEDRawData::size(), TCS, TIM, L1GtfeWord::unpack(), L1GtFdlWord::unpack(), unpackGMT(), unpackHeader(), unpackPSB(), and unpackTrailer().
Referenced by python.JSONExport.JsonExport::export(), and python.HTMLExport.HTMLExport::export().
|
private |
produce empty products in case of problems
Definition at line 1008 of file L1GlobaTriggerRawToDigi.cc.
References edm::Event::put().
Referenced by produce().
|
private |
unpack the GMT record
Definition at line 845 of file L1GlobaTriggerRawToDigi.cc.
References L1MuRegionalCand::empty(), L1MuGMTCand::empty(), L1MuRegionalCand::eta_packed(), L1MuGMTCand::etaIndex(), L1MuScale::getCenter(), L1MuTriggerScales::getGMTEtaScale(), L1MuScale::getLowEdge(), L1MuTriggerScales::getPhiScale(), L1MuTriggerPtScale::getPtScale(), L1MuTriggerScales::getRegionalEtaScale(), LogTrace, m_lowSkipBxInEvent, m_totalBxInEvent, m_TriggerPtScale, m_TriggerScales, m_uppSkipBxInEvent, L1TEmulatorMonitor_cff::p, L1MuRegionalCand::phi_packed(), L1MuGMTCand::phiIndex(), L1MuRegionalCand::pt_packed(), L1MuGMTCand::ptIndex(), edm::Event::put(), L1MuGMTReadoutRecord::setBCERR(), L1MuGMTReadoutRecord::setBxInEvent(), L1MuGMTReadoutRecord::setBxNr(), L1MuRegionalCand::setEtaValue(), L1MuGMTCand::setEtaValue(), L1MuGMTReadoutRecord::setEvNr(), L1MuGMTReadoutRecord::setGMTBrlCand(), L1MuGMTReadoutRecord::setGMTCand(), L1MuGMTReadoutRecord::setGMTFwdCand(), L1MuGMTReadoutRecord::setInputCand(), L1MuRegionalCand::setPhiValue(), L1MuGMTCand::setPhiValue(), L1MuRegionalCand::setPtValue(), L1MuGMTCand::setPtValue(), L1MuRegionalCand::setType(), and L1MuRegionalCand::type_idx().
Referenced by produce().
|
private |
block unpackers
unpack header
Definition at line 754 of file L1GlobaTriggerRawToDigi.cc.
References FEDHeader::bxID(), LogDebug, FEDHeader::lvl1ID(), m_isDebugEnabled, m_verbosity, FEDHeader::moreHeaders(), FEDHeader::sourceID(), FEDHeader::triggerType(), and FEDHeader::version().
Referenced by produce().
|
private |
unpack PSB blocks unpacking is done in PSB class format methods are given later to translate from the PSB format to the physical input of the PSB
Definition at line 806 of file L1GlobaTriggerRawToDigi.cc.
References L1GtPsbWord::getSize(), LogTrace, L1GtPsbWord::setAData(), L1GtPsbWord::setBData(), L1GtPsbWord::setBoardId(), L1GtPsbWord::setBxInEvent(), L1GtPsbWord::setBxNr(), L1GtPsbWord::setEventNr(), L1GtPsbWord::setLocalBxNr(), and L1GlobalTriggerReadoutSetup::UnitLength.
Referenced by produce().
|
private |
unpack trailer word
Definition at line 961 of file L1GlobaTriggerRawToDigi.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 109 of file L1GlobalTriggerRawToDigi.h.
Referenced by L1GlobalTriggerRawToDigi(), and produce().
|
private |
FED Id for GT DAQ record default value defined in DataFormats/FEDRawData/src/FEDNumbering.cc
Definition at line 106 of file L1GlobalTriggerRawToDigi.h.
Referenced by L1GlobalTriggerRawToDigi(), and produce().
|
private |
input tags for GT DAQ record
Definition at line 102 of file L1GlobalTriggerRawToDigi.h.
Referenced by L1GlobalTriggerRawToDigi(), and produce().
|
private |
Definition at line 99 of file L1GlobalTriggerRawToDigi.h.
Referenced by L1GlobalTriggerRawToDigi(), produce(), and ~L1GlobalTriggerRawToDigi().
|
private |
Definition at line 97 of file L1GlobalTriggerRawToDigi.h.
Referenced by L1GlobalTriggerRawToDigi(), produce(), and ~L1GlobalTriggerRawToDigi().
|
private |
Definition at line 98 of file L1GlobalTriggerRawToDigi.h.
Referenced by L1GlobalTriggerRawToDigi(), produce(), and ~L1GlobalTriggerRawToDigi().
|
private |
Definition at line 142 of file L1GlobalTriggerRawToDigi.h.
Referenced by L1GlobalTriggerRawToDigi(), produce(), unpackHeader(), and unpackTrailer().
|
private |
lowest bxInEvent to be unpacked in the event assume symmetrical number of BX around L1Accept
Definition at line 116 of file L1GlobalTriggerRawToDigi.h.
Referenced by produce(), and unpackGMT().
|
private |
total Bx's in the event, obtained from GTFE block
corresponding to alternative 0 in altNrBxBoard()
Definition at line 125 of file L1GlobalTriggerRawToDigi.h.
Referenced by produce().
|
private |
corresponding to alternative 1 in altNrBxBoard()
Definition at line 128 of file L1GlobalTriggerRawToDigi.h.
Referenced by produce().
|
private |
number of Bx for a board, obtained from GTFE block (record length & alternative)
Definition at line 131 of file L1GlobalTriggerRawToDigi.h.
Referenced by produce(), and unpackGMT().
|
private |
Definition at line 136 of file L1GlobalTriggerRawToDigi.h.
Referenced by produce(), and unpackGMT().
|
private |
muon trigger scales to convert unpacked data into physical quantities
Definition at line 135 of file L1GlobalTriggerRawToDigi.h.
Referenced by produce(), and unpackGMT().
|
private |
Definition at line 112 of file L1GlobalTriggerRawToDigi.h.
Referenced by L1GlobalTriggerRawToDigi(), and produce().
|
private |
upper bxInEvent to be unpacked in the event assume symmetrical number of BX around L1Accept
Definition at line 120 of file L1GlobalTriggerRawToDigi.h.
Referenced by produce(), and unpackGMT().
|
private |
verbosity level
Definition at line 141 of file L1GlobalTriggerRawToDigi.h.
Referenced by L1GlobalTriggerRawToDigi(), produce(), unpackHeader(), and unpackTrailer().