#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 20 of file FEDRawData.h.
typedef std::vector<unsigned char> FEDRawData::Data |
Definition at line 23 of file FEDRawData.h.
typedef Data::iterator FEDRawData::iterator |
Definition at line 24 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 BxTiming::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), HcalDetDiagLaserMonitor::analyze(), EBRawDataTask::analyze(), ESFEDIntegrityTask::analyze(), SiStripFEDCheckPlugin::analyze(), DQMHcalPhiSymAlCaReco::analyze(), ESRawDataTask::analyze(), EERawDataTask::analyze(), PlaybackRawDataProvider::analyze(), test::GlobalNumbersAnalysis::analyze(), RawToText::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), HcalDetDiagNoiseMonitor::analyze(), SiStripCMMonitorPlugin::analyze(), SiStripFEDDumpPlugin::analyze(), EBHltTask::analyze(), HcalMonitorModule::analyze(), EcalDumpRaw::analyze(), EEHltTask::analyze(), SiPixelEDAClient::analyze(), L1TFED::analyze(), evf::EvFRecordInserter::analyze(), HcalTBWriter::analyze(), EcalHexDisplay::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(), CSCValidation::doTimeMonitoring(), sistrip::RawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), sistrip::RawToClustersLazyUnpacker::fill(), DTDDUFileReader::fillRawData(), DTTFFEDSim::fillRawData(), DTROS25FileReader::fillRawData(), FUShmReader::fillRawData(), DTROS8FileReader::fillRawData(), DTSpyReader::fillRawData(), EcalFEDErrorFilter::filter(), HLTHcalNZSFilter::filter(), HLTL1NumberFilter::filter(), HLTDTROMonitorFilter::filter(), LaserAlignmentEventFilter::filter(), HcalCalibTypeFilter::filter(), DTROMonitorFilter::filter(), HLTHcalCalibTypeFilter::filter(), PixelDataFormatter::formatData(), sistrip::FEDBufferGenerator::generateBuffer(), MatacqProducer::getCalibTriggerType(), LaserSorter::getDetailedTriggerType(), MatacqProducer::getOrbitId(), 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(), DTTFFEDReader::process(), HcalNZSMonitor::processEvent(), HcalTBSource::produce(), L1GTEvmDigiToRaw::produce(), AlCaHcalNoiseProducer::produce(), SiStripRegFEDSelector::produce(), SubdetFEDSelector::produce(), CSCTFPacker::produce(), ECALRegFEDSelector::produce(), RPCUnpackingModule::produce(), L1GlobalTriggerEvmRawToDigi::produce(), CSCTFUnpacker::produce(), DTDigiToRawModule::produce(), evf::EvFFEDSelector::produce(), RawDataCollectorModule::produce(), CSCDCCUnpacker::produce(), GctRawToDigi::produce(), ErrorStreamSource::produce(), HcalCalibFEDSelector::produce(), L1GTDigiToRaw::produce(), RawDataCollectorByLabel::produce(), EcalFEDWithCRCErrorProducer::produce(), L1GtTextToRaw::produce(), SiPixelFedFillerWordEventNumber::produce(), DTUnpackingModule::produce(), EcalRawToDigi::produce(), L1GlobalTriggerRawToDigi::produce(), LTCRawToDigi::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), HcalTriggerPrimitiveAlgo::runFEFormatError(), RawDataFEDSelector::select(), sistrip::RawToDigiUnpacker::triggerFed(), HcalRawDataMonitor::unpack(), GctRawToDigi::unpack(), CastorUnpacker::unpack(), HcalEEUSMonitor::unpack(), HcalDataIntegrityTask::unpack(), CastorCtdcUnpacker::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBSlowDataUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), 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(), AlCaHcalNoiseProducer::produce(), SiStripRegFEDSelector::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 47 of file FEDRawData.h.
References data_.
Referenced by sistrip::SpyIdentifyRunsModule::analyze(), BxTiming::analyze(), HcalDetDiagLaserMonitor::analyze(), SiPixelHLTSource::analyze(), EBRawDataTask::analyze(), DQMHcalPhiSymAlCaReco::analyze(), SiStripFEDCheckPlugin::analyze(), ESFEDIntegrityTask::analyze(), ESRawDataTask::analyze(), test::GlobalNumbersAnalysis::analyze(), EERawDataTask::analyze(), RawToText::analyze(), HcalDetDiagTimingMonitor::analyze(), SiPixelDaqInfo::analyze(), HcalDetDiagPedestalMonitor::analyze(), SiStripFEDDumpPlugin::analyze(), SiStripCMMonitorPlugin::analyze(), HcalDetDiagNoiseMonitor::analyze(), EcalDumpRaw::analyze(), HcalMonitorModule::analyze(), EBHltTask::analyze(), EEHltTask::analyze(), SiPixelEDAClient::analyze(), DQMHcalPhiSymHLT::analyze(), L1TFED::analyze(), evf::EvFRecordInserter::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), HcalTBWriter::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(), CSCValidation::doTimeMonitoring(), sistrip::RawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), sistrip::RawToClustersLazyUnpacker::fill(), EcalFEDErrorFilter::filter(), HLTHcalNZSFilter::filter(), HLTDTROMonitorFilter::filter(), HcalCalibTypeFilter::filter(), LaserAlignmentEventFilter::filter(), HLTFEDSizeFilter::filter(), DTROMonitorFilter::filter(), HLTHcalCalibTypeFilter::filter(), MatacqProducer::getCalibTriggerType(), LaserSorter::getDetailedTriggerType(), MatacqProducer::getOrbitId(), LaserSorter::getOutputFedList(), 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(), BlockFormatter::PrintSizes(), DTTFFEDReader::process(), HcalNZSMonitor::processEvent(), HcalDataIntegrityTask::processEvent(), HcalRawDataMonitor::processEvent(), HcalEEUSMonitor::processEvent_RawData(), L1GTEvmDigiToRaw::produce(), ESDigiToRaw::produce(), HcalRawToDigi::produce(), SiStripRegFEDSelector::produce(), AlCaHcalNoiseProducer::produce(), SubdetFEDSelector::produce(), EcalDCCTB07UnpackingModule::produce(), CSCTFPacker::produce(), SiPixelDigiToRaw::produce(), RPCUnpackingModule::produce(), ECALRegFEDSelector::produce(), L1GlobalTriggerEvmRawToDigi::produce(), DTDigiToRawModule::produce(), CSCTFUnpacker::produce(), RawDataCollectorModule::produce(), evf::EvFFEDSelector::produce(), EcalDCCTBUnpackingModule::produce(), GctRawToDigi::produce(), ESRawToDigi::produce(), CSCDCCUnpacker::produce(), HcalCalibFEDSelector::produce(), RawDataCollectorByLabel::produce(), L1GTDigiToRaw::produce(), L1GtTextToRaw::produce(), EcalFEDWithCRCErrorProducer::produce(), LTCRawToDigi::produce(), L1GlobalTriggerRawToDigi::produce(), EcalRawToDigi::produce(), DTUnpackingModule::produce(), SiPixelFedFillerWordEventNumber::produce(), ScalersRawToDigi::produce(), CastorRawToDigi::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), resize(), HcalTriggerPrimitiveAlgo::runFEFormatError(), RawDataFEDSelector::select(), sistrip::RawToDigiUnpacker::triggerFed(), HcalRawDataMonitor::unpack(), GctRawToDigi::unpack(), CastorUnpacker::unpack(), HcalEEUSMonitor::unpack(), CastorCtdcUnpacker::unpack(), HcalDataIntegrityTask::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBSlowDataUnpacker::unpack(), hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), EcalUnpackerWorker::work(), FRDEventOutputModule< Consumer >::write(), and LaserSorter::writeFedBlock().
{return data_.size();}
Data FEDRawData::data_ [private] |
Definition at line 56 of file FEDRawData.h.