#include <FEDRawData.h>
Public Types | |
typedef std::vector< unsigned char > | Data |
typedef Data::iterator | iterator |
Public Member Functions | |
const unsigned char * | data () const |
Return a const pointer to the beginning of the data buffer. | |
unsigned char * | data () |
Return a pointer to the beginning of the data buffer. | |
FEDRawData () | |
Default ctor. | |
FEDRawData (size_t newsize) | |
FEDRawData (const FEDRawData &) | |
Copy constructor. | |
void | resize (size_t newsize) |
size_t | size () const |
Lenght of the data buffer in bytes. | |
~FEDRawData () | |
Dtor. | |
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 22 of file FEDRawData.h.
typedef std::vector<unsigned char> FEDRawData::Data |
Definition at line 25 of file FEDRawData.h.
typedef Data::iterator FEDRawData::iterator |
Definition at line 26 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 19 of file FEDRawData.cc.
References Exception.
:data_(newsize){ if (newsize%8!=0) throw cms::Exception("DataCorrupt") << "FEDRawData::resize: " << newsize << " is not a multiple of 8 bytes." << endl; }
FEDRawData::FEDRawData | ( | const FEDRawData & | in | ) |
FEDRawData::~FEDRawData | ( | ) |
const unsigned char * FEDRawData::data | ( | ) | const |
Return a const pointer to the beginning of the data buffer.
Definition at line 29 of file FEDRawData.cc.
References data_.
Referenced by sistrip::SpyIdentifyRunsModule::analyze(), BxTiming::analyze(), HcalDetDiagLaserMonitor::analyze(), EBRawDataTask::analyze(), DQMHcalPhiSymAlCaReco::analyze(), SiStripFEDCheckPlugin::analyze(), ESFEDIntegrityTask::analyze(), ESRawDataTask::analyze(), RawToText::analyze(), test::GlobalNumbersAnalysis::analyze(), PlaybackRawDataProvider::analyze(), EERawDataTask::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), SiStripFEDDumpPlugin::analyze(), SiStripCMMonitorPlugin::analyze(), HcalDetDiagNoiseMonitor::analyze(), EcalDumpRaw::analyze(), HcalMonitorModule::analyze(), EBHltTask::analyze(), EEHltTask::analyze(), SiPixelEDAClient::analyze(), L1TFED::analyze(), evf::EvFRecordInserter::analyze(), EcalHexDisplay::analyze(), HcalTBWriter::analyze(), HcalMonitorModule::CheckSubdetectorStatus(), SiStripAnalyser::checkTrackerFEDs(), PFJetAlgorithm::CleanUp(), L1Comparator::compareFedRawCollections(), sistrip::RawToDigiUnpacker::createDigis(), sistrip::SpyUnpacker::createDigis(), DTDigiToRaw::createFedBuffers(), CSCDigiToRaw::createFedBuffers(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), sistrip::RawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), sistrip::RawToClustersLazyUnpacker::fill(), DTDDUFileReader::fillRawData(), DTTFFEDSim::fillRawData(), DTROS25FileReader::fillRawData(), FUShmReader::fillRawData(), DTROS8FileReader::fillRawData(), DTSpyReader::fillRawData(), HcalEmptyEventFilter::filter(), HLTL1NumberFilter::filter(), HLTDTROMonitorFilter::filter(), HcalCalibTypeFilter::filter(), LaserAlignmentEventFilter::filter(), HLTHcalCalibTypeFilter::filter(), PixelDataFormatter::formatRawData(), sistrip::FEDBufferGenerator::generateBuffer(), MatacqProducer::getCalibTriggerType(), LaserSorter::getDetailedTriggerType(), MatacqProducer::getOrbitId(), DTROMonitorFilter::hltFilter(), EcalFEDErrorFilter::hltFilter(), HLTHcalNZSFilter::hltFilter(), SiStripDCSStatus::initialise(), MatacqTBDataFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), MatacqDataFormatter::interpretRawData(), PixelDataFormatter::interpretRawData(), ESUnpacker::interpretRawData(), TableDataFormatter::interpretRawData(), EcalSupervisorTBDataFormatter::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), LaserSorter::isDccEventEmpty(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), HcalPacker::pack(), CastorCtdcPacker::pack(), CastorPacker::pack(), BlockFormatter::print(), GctDigiToRaw::print(), DTTFFEDReader::process(), HcalNZSMonitor::processEvent(), L1GTEvmDigiToRaw::produce(), HcalTBSource::produce(), AlCaHcalNoiseProducer::produce(), SiStripRegFEDSelector::produce(), SubdetFEDSelector::produce(), CSCTFPacker::produce(), RPCUnpackingModule::produce(), ECALRegFEDSelector::produce(), L1GlobalTriggerEvmRawToDigi::produce(), DTDigiToRawModule::produce(), CSCTFUnpacker::produce(), RawDataCollectorModule::produce(), evf::EvFFEDSelector::produce(), ErrorStreamSource::produce(), GctRawToDigi::produce(), CSCDCCUnpacker::produce(), HcalCalibFEDSelector::produce(), sistrip::SpyEventSummaryProducer::produce(), RawDataCollectorByLabel::produce(), L1GTDigiToRaw::produce(), L1GtTextToRaw::produce(), EcalFEDWithCRCErrorProducer::produce(), LTCRawToDigi::produce(), L1GlobalTriggerRawToDigi::produce(), EcalRawToDigi::produce(), DTUnpackingModule::produce(), SiPixelFedFillerWordEventNumber::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), HcalTriggerPrimitiveAlgo::runFEFormatError(), RawDataFEDSelector::select(), sistrip::RawToDigiUnpacker::triggerFed(), HcalRawDataMonitor::unpack(), GctRawToDigi::unpack(), CastorUnpacker::unpack(), CastorDataIntegrityMonitor::unpack(), HcalEEUSMonitor::unpack(), CastorCtdcUnpacker::unpack(), HcalDataIntegrityTask::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), hcaltb::HcalTBSlowDataUnpacker::unpackMaps(), EcalUnpackerWorker::work(), FRDEventOutputModule< Consumer >::write(), and LaserSorter::writeFedBlock().
{return &data_[0];}
unsigned char * FEDRawData::data | ( | ) |
Return a pointer to the beginning of the data buffer.
Definition at line 31 of file FEDRawData.cc.
References data_.
{return &data_[0];}
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 33 of file FEDRawData.cc.
References data_, Exception, and size().
Referenced by PlaybackRawDataProvider::analyze(), PFJetAlgorithm::CleanUp(), CSCDigiToRaw::createFedBuffers(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), DTDDUFileReader::fillRawData(), DTTFFEDSim::fillRawData(), DTROS25FileReader::fillRawData(), FUShmReader::fillRawData(), DTROS8FileReader::fillRawData(), DTSpyReader::fillRawData(), sistrip::FEDBufferGenerator::generateBuffer(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), HcalPacker::pack(), CastorCtdcPacker::pack(), CastorPacker::pack(), HcalTBSource::produce(), L1GTEvmDigiToRaw::produce(), SiStripRegFEDSelector::produce(), AlCaHcalNoiseProducer::produce(), TextToRaw::produce(), SubdetFEDSelector::produce(), CSCTFPacker::produce(), GctDigiToRaw::produce(), ECALRegFEDSelector::produce(), RawDataCollectorModule::produce(), evf::EvFFEDSelector::produce(), ErrorStreamSource::produce(), HcalCalibFEDSelector::produce(), RawDataCollectorByLabel::produce(), L1GTDigiToRaw::produce(), L1GtTextToRaw::produce(), EcalFEDWithCRCErrorProducer::produce(), LmfSource::readEventWithinFile(), RawDataFEDSelector::select(), and LmfSource::setRunAndEventInfo().
{ if (size()==newsize) return; data_.resize(newsize); if (newsize%8!=0) throw cms::Exception("DataCorrupt") << "FEDRawData::resize: " << newsize << " is not a multiple of 8 bytes." << endl; }
size_t FEDRawData::size | ( | void | ) | const [inline] |
Lenght of the data buffer in bytes.
Definition at line 49 of file FEDRawData.h.
References data_.
Referenced by BxTiming::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), HcalDetDiagLaserMonitor::analyze(), EBRawDataTask::analyze(), SiPixelHLTSource::analyze(), ESFEDIntegrityTask::analyze(), SiStripFEDCheckPlugin::analyze(), DQMHcalPhiSymAlCaReco::analyze(), ESRawDataTask::analyze(), EERawDataTask::analyze(), test::GlobalNumbersAnalysis::analyze(), RawToText::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), SiPixelDaqInfo::analyze(), HcalDetDiagNoiseMonitor::analyze(), SiStripCMMonitorPlugin::analyze(), SiStripFEDDumpPlugin::analyze(), EBHltTask::analyze(), HcalMonitorModule::analyze(), EcalDumpRaw::analyze(), EEHltTask::analyze(), SiPixelEDAClient::analyze(), SiStripFEDMonitorPlugin::analyze(), L1TFED::analyze(), evf::EvFRecordInserter::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), HcalTBWriter::analyze(), HLTTrack::analyze(), EcalHexDisplay::analyze(), EcalSelectiveReadoutValidation::analyzeDataVolume(), HcalTBWriter::buildTree(), HcalMonitorModule::CheckSubdetectorStatus(), SiStripAnalyser::checkTrackerFEDs(), PFJetAlgorithm::CleanUp(), L1Comparator::compareFedRawCollections(), sistrip::RawToDigiUnpacker::createDigis(), sistrip::SpyUnpacker::createDigis(), CSCDigiToRaw::createFedBuffers(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), sistrip::RawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), sistrip::RawToClustersLazyUnpacker::fill(), HcalEmptyEventFilter::filter(), HLTDTROMonitorFilter::filter(), LaserAlignmentEventFilter::filter(), HcalCalibTypeFilter::filter(), HLTHcalCalibTypeFilter::filter(), MatacqProducer::getCalibTriggerType(), LaserSorter::getDetailedTriggerType(), MatacqProducer::getOrbitId(), LaserSorter::getOutputFedList(), DTROMonitorFilter::hltFilter(), EcalFEDErrorFilter::hltFilter(), HLTFEDSizeFilter::hltFilter(), HLTHcalNZSFilter::hltFilter(), SiStripDCSStatus::initialise(), MatacqTBDataFormatter::interpretRawData(), MatacqDataFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), PixelDataFormatter::interpretRawData(), ESUnpacker::interpretRawData(), TableDataFormatter::interpretRawData(), EcalSupervisorTBDataFormatter::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), LaserSorter::isDccEventEmpty(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), CastorCtdcPacker::pack(), HcalPacker::pack(), CastorPacker::pack(), BlockFormatter::print(), GctDigiToRaw::print(), BlockFormatter::PrintSizes(), DTTFFEDReader::process(), CastorDataIntegrityMonitor::processEvent(), HcalNZSMonitor::processEvent(), HcalDataIntegrityTask::processEvent(), HcalRawDataMonitor::processEvent(), HcalEEUSMonitor::processEvent_RawData(), ESDigiToRaw::produce(), L1GTEvmDigiToRaw::produce(), AlCaHcalNoiseProducer::produce(), SiStripRegFEDSelector::produce(), HcalRawToDigi::produce(), SubdetFEDSelector::produce(), EcalDCCTB07UnpackingModule::produce(), CSCTFPacker::produce(), ECALRegFEDSelector::produce(), RPCUnpackingModule::produce(), SiPixelDigiToRaw::produce(), L1GlobalTriggerEvmRawToDigi::produce(), CSCTFUnpacker::produce(), DTDigiToRawModule::produce(), EcalDCCTBUnpackingModule::produce(), evf::EvFFEDSelector::produce(), RawDataCollectorModule::produce(), CSCDCCUnpacker::produce(), ESRawToDigi::produce(), GctRawToDigi::produce(), sistrip::SpyEventSummaryProducer::produce(), HcalCalibFEDSelector::produce(), L1GTDigiToRaw::produce(), RawDataCollectorByLabel::produce(), sistrip::ExcludedFEDListProducer::produce(), EcalFEDWithCRCErrorProducer::produce(), L1GtTextToRaw::produce(), SiPixelFedFillerWordEventNumber::produce(), DTUnpackingModule::produce(), EcalRawToDigi::produce(), L1GlobalTriggerRawToDigi::produce(), LTCRawToDigi::produce(), CastorRawToDigi::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), resize(), HcalTriggerPrimitiveAlgo::runFEFormatError(), ecaldqm::SelectiveReadoutTask::runOnSource(), RawDataFEDSelector::select(), sistrip::RawToDigiUnpacker::triggerFed(), HcalRawDataMonitor::unpack(), GctRawToDigi::unpack(), CastorUnpacker::unpack(), CastorDataIntegrityMonitor::unpack(), HcalEEUSMonitor::unpack(), HcalDataIntegrityTask::unpack(), CastorCtdcUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), hcaltb::HcalTBSlowDataUnpacker::unpackMaps(), EcalUnpackerWorker::work(), FRDEventOutputModule< Consumer >::write(), and LaserSorter::writeFedBlock().
{return data_.size();}
Data FEDRawData::data_ [private] |
Definition at line 58 of file FEDRawData.h.