#include <FEDRawData.h>
Public Types | |
typedef std::vector< unsigned char > | Data |
typedef Data::iterator | iterator |
Public Member Functions | |
unsigned char * | data () |
Return a pointer to the beginning of the data buffer. More... | |
const unsigned char * | data () const |
Return a const pointer to the beginning of the data buffer. More... | |
FEDRawData () | |
Default ctor. More... | |
FEDRawData (const FEDRawData &) | |
Copy constructor. More... | |
FEDRawData (size_t newsize) | |
void | resize (size_t newsize) |
size_t | size () const |
Lenght of the data buffer in bytes. More... | |
~FEDRawData () | |
Dtor. More... | |
Private Attributes | |
Data | data_ |
Class representing the raw data for one FED. The raw data is owned as a binary buffer. It is required that the lenght of the data is a multiple of the S-Link64 word lenght (8 byte). The FED data should include the standard FED header and trailer.
Definition at line 19 of file FEDRawData.h.
typedef std::vector<unsigned char> FEDRawData::Data |
Definition at line 21 of file FEDRawData.h.
typedef Data::iterator FEDRawData::iterator |
Definition at line 22 of file FEDRawData.h.
FEDRawData::FEDRawData | ( | ) |
FEDRawData::FEDRawData | ( | size_t | newsize | ) |
Ctor specifying the size to be preallocated, in bytes. It is required that the size is a multiple of the size of a FED word (8 bytes)
Definition at line 16 of file FEDRawData.cc.
References Exception.
FEDRawData::FEDRawData | ( | const FEDRawData & | in | ) |
FEDRawData::~FEDRawData | ( | ) |
unsigned char * FEDRawData::data | ( | ) |
Return a pointer to the beginning of the data buffer.
Definition at line 26 of file FEDRawData.cc.
References data_.
const unsigned char * FEDRawData::data | ( | ) | const |
Return a const pointer to the beginning of the data buffer.
Definition at line 24 of file FEDRawData.cc.
References data_.
Referenced by RawTask::_process(), ESRawDataTask::analyze(), ESFEDIntegrityTask::analyze(), PlaybackRawDataProvider::analyze(), HcalTBWriter::analyze(), DQMHcalPhiSymAlCaReco::analyze(), L1TMP7ZeroSupp::analyze(), RawToText::analyze(), BxTiming::analyze(), SiPixelRawDataErrorSource::analyze(), SiStripFEDCheckPlugin::analyze(), BlockFormatter::CleanUp(), SRBlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), TowerBlockFormatter::EndEvent(), FedRawDataInputSource::fillFEDRawDataCollection(), DaqFakeReader::fillFEDs(), DaqFakeReader::fillGTPFED(), DTTFFEDSim::fillRawData(), HLTDTROMonitorFilter::filter(), HLTHcalCalibTypeFilter::filter(), HcalEmptyEventFilter::filter(), TMTFilter::filter(), HcalCalibTypeFilter::filter(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), sistrip::FEDBufferGenerator::generateBuffer(), HLTHcalNZSFilter::hltFilter(), EcalFEDErrorFilter::hltFilter(), SiStripDCSStatus::initialise(), TableDataFormatter::interpretRawData(), EcalSupervisorTBDataFormatter::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), sistrip::SpyEventMatcher::mergeMatchingData(), sistrip::preconstructCheckFEDBuffer(), sistrip::preconstructCheckFEDBufferBase(), sistrip::preconstructCheckFEDSpyBuffer(), BlockFormatter::print(), DTuROSRawToDigi::process(), DTuROSDigiToRaw::process(), DTTFFEDReader::process(), L1TTwinMuxRawToDigi::processFed(), Phase2Tracker::Phase2TrackerCommissioningDigiProducer::produce(), RawDataCollectorByLabel::produce(), HcalCalibFEDSelector::produce(), DTUnpackingModule::produce(), HcalTBSource::produce(), CSCDCCUnpacker::produce(), RPCAMCRawToDigi::produce(), Phase2Tracker::Phase2TrackerDigiProducer::produce(), GEMRawToDigiModule::produce(), SubdetFEDSelector::produce(), sistrip::SpyEventSummaryProducer::produce(), SiStripRegFEDSelector::produce(), RPCTwinMuxRawToDigi::produce(), CSCTFUnpacker::produce(), ECALRegFEDSelector::produce(), LTCRawToDigi::produce(), ScalersRawToDigi::produce(), AlCaHcalNoiseProducer::produce(), TextToRaw::produce(), TcdsRawToDigi::produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector::produce(), L1GTEvmDigiToRaw::produce(), EcalFEDWithCRCErrorProducer::produce(), GctRawToDigi::produce(), EcalRawToDigi::produce(), L1GlobalTriggerEvmRawToDigi::produce(), L1GTDigiToRaw::produce(), l1t::L1TRawToDigi::produce(), OnlineMetaDataRawToDigi::produce(), omtf::OmtfPacker::produce(), l1t::L1TDigiToRaw::produce(), l1t::AMC13DumpToRaw::produce(), L1GlobalTriggerRawToDigi::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), HcalTriggerPrimitiveAlgo::runFEFormatError(), RawDataFEDSelector::select(), FRDStreamSource::setRunAndEventInfo(), sistrip::RawToDigiUnpacker::triggerFed(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), CastorCtdcUnpacker::unpack(), CastorUnpacker::unpack(), ZdcUnpacker::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), hcaltb::HcalTBSlowDataUnpacker::unpackMaps(), HcalUnpacker::unpackUMNio(), HcalUnpacker::unpackUTCA(), HcalUnpacker::unpackVME(), and RawEventOutputModuleForBU< Consumer >::write().
void FEDRawData::resize | ( | size_t | newsize | ) |
Resize to the specified size in bytes. It is required that the size is a multiple of the size of a FED word (8 bytes)
Definition at line 28 of file FEDRawData.cc.
References data_, Exception, and size().
Referenced by PlaybackRawDataProvider::analyze(), BlockFormatter::CleanUp(), SRBlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), FedRawDataInputSource::fillFEDRawDataCollection(), DaqFakeReader::fillFEDs(), DaqFakeReader::fillGTPFED(), DTTFFEDSim::fillRawData(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), sistrip::FEDBufferGenerator::generateBuffer(), DTuROSDigiToRaw::process(), RawDataCollectorByLabel::produce(), HcalCalibFEDSelector::produce(), HcalTBSource::produce(), SubdetFEDSelector::produce(), SiStripRegFEDSelector::produce(), ECALRegFEDSelector::produce(), AlCaHcalNoiseProducer::produce(), TextToRaw::produce(), L1GTEvmDigiToRaw::produce(), EcalFEDWithCRCErrorProducer::produce(), L1GTDigiToRaw::produce(), omtf::OmtfPacker::produce(), l1t::L1TDigiToRaw::produce(), l1t::AMC13DumpToRaw::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), LmfSource::readEventWithinFile(), RawDataFEDSelector::select(), FRDStreamSource::setRunAndEventInfo(), and LmfSource::setRunAndEventInfo().
|
inline |
Lenght of the data buffer in bytes.
Definition at line 45 of file FEDRawData.h.
References data_.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), RawTask::_process(), MatacqProducer::addMatacqData(), ESRawDataTask::analyze(), PlaybackRawDataProvider::analyze(), ESFEDIntegrityTask::analyze(), myRawAna::analyze(), HcalTBWriter::analyze(), DQMHcalPhiSymAlCaReco::analyze(), L1TMP7ZeroSupp::analyze(), RawToText::analyze(), SiPixelRawDataErrorSource::analyze(), SiStripFEDCheckPlugin::analyze(), SiStripFEDMonitorPlugin::analyze(), EcalSelectiveReadoutValidation::analyzeDataVolume(), HcalTBWriter::buildTree(), BlockFormatter::CleanUp(), sistrip::RawToDigiUnpacker::createDigis(), sistrip::DigiToRaw::createFedBuffers_(), SRBlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), TowerBlockFormatter::EndEvent(), HLTDTROMonitorFilter::filter(), HLTHcalCalibTypeFilter::filter(), HcalEmptyEventFilter::filter(), HcalCalibTypeFilter::filter(), LaserSorter::getOutputFedList(), HLTFEDSizeFilter::hltFilter(), HLTHcalNZSFilter::hltFilter(), EcalFEDErrorFilter::hltFilter(), SiStripDCSStatus::initialise(), TableDataFormatter::interpretRawData(), EcalSupervisorTBDataFormatter::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), sistrip::SpyEventMatcher::mergeMatchingData(), sistrip::preconstructCheckFEDBufferBase(), BlockFormatter::print(), BlockFormatter::PrintSizes(), DTuROSRawToDigi::process(), DTTFFEDReader::process(), L1TTwinMuxRawToDigi::processFed(), Phase2Tracker::Phase2TrackerCommissioningDigiProducer::produce(), RawDataCollectorByLabel::produce(), evf::EvFFEDSelector::produce(), HcalCalibFEDSelector::produce(), DTUnpackingModule::produce(), CSCDCCUnpacker::produce(), CTPPSPixelRawToDigi::produce(), RPCAMCRawToDigi::produce(), Phase2Tracker::Phase2TrackerDigiProducer::produce(), HcalRawToDigi::produce(), GEMRawToDigiModule::produce(), SubdetFEDSelector::produce(), CastorRawToDigi::produce(), sistrip::SpyEventSummaryProducer::produce(), SiStripRegFEDSelector::produce(), RPCTwinMuxRawToDigi::produce(), CSCTFUnpacker::produce(), ECALRegFEDSelector::produce(), ScalersRawToDigi::produce(), LTCRawToDigi::produce(), AlCaHcalNoiseProducer::produce(), TcdsRawToDigi::produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector::produce(), L1GTEvmDigiToRaw::produce(), RctRawToDigi::produce(), EcalFEDWithCRCErrorProducer::produce(), EcalRawToDigi::produce(), GctRawToDigi::produce(), L1GlobalTriggerEvmRawToDigi::produce(), L1GTDigiToRaw::produce(), OnlineMetaDataRawToDigi::produce(), l1t::L1TRawToDigi::produce(), l1t::AMC13DumpToRaw::produce(), l1t::AMCDumpToRaw::produce(), L1GlobalTriggerRawToDigi::produce(), l1t::MP7BufferDumpToRaw::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), resize(), HcalTriggerPrimitiveAlgo::runFEFormatError(), ecaldqm::SelectiveReadoutTask::runOnSource(), RawDataFEDSelector::select(), sistrip::RawToDigiUnpacker::triggerFed(), hcaltb::HcalTBQADCUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), CastorCtdcUnpacker::unpack(), CastorUnpacker::unpack(), ZdcUnpacker::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), hcaltb::HcalTBSlowDataUnpacker::unpackMaps(), HcalUnpacker::unpackVME(), and RawEventOutputModuleForBU< Consumer >::write().