CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
FEDRawData Class Reference

#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. More...
 
unsigned char * data ()
 Return a pointer to the beginning of the data buffer. More...
 
 FEDRawData ()
 Default ctor. More...
 
 FEDRawData (size_t newsize)
 
 FEDRawData (const FEDRawData &)
 Copy constructor. More...
 
void resize (size_t newsize)
 
size_t size () const
 Lenght of the data buffer in bytes. More...
 
 ~FEDRawData ()
 Dtor. More...
 

Private Attributes

Data data_
 

Detailed Description

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.

Date:
2011/03/12 14:22:47
Revision:
1.7
Author
G. Bruno - CERN, EP Division
S. Argiro - CERN and INFN - Refactoring and Modifications to fit into CMSSW

Definition at line 22 of file FEDRawData.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

FEDRawData::FEDRawData ( )

Default ctor.

Definition at line 15 of file FEDRawData.cc.

16 {
17 }
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 edm::hlt::Exception.

19  :data_(newsize){
20  if (newsize%8!=0) throw cms::Exception("DataCorrupt") << "FEDRawData::resize: " << newsize << " is not a multiple of 8 bytes." << endl;
21 }
Data data_
Definition: FEDRawData.h:58
FEDRawData::FEDRawData ( const FEDRawData in)

Copy constructor.

Definition at line 23 of file FEDRawData.cc.

23  : data_(in.data_)
24 {
25 }
Data data_
Definition: FEDRawData.h:58
FEDRawData::~FEDRawData ( )

Dtor.

Definition at line 26 of file FEDRawData.cc.

27 {
28 }

Member Function Documentation

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 evf::EvFRecordInserter::analyze(), ESRawDataTask::analyze(), ESFEDIntegrityTask::analyze(), PlaybackRawDataProvider::analyze(), SiStripFEDDumpPlugin::analyze(), HcalTBWriter::analyze(), RawToText::analyze(), EBRawDataTask::analyze(), EERawDataTask::analyze(), BxTiming::analyze(), DQMHcalPhiSymAlCaReco::analyze(), test::GlobalNumbersAnalysis::analyze(), EcalDumpRaw::analyze(), HcalDetDiagNoiseMonitor::analyze(), EBHltTask::analyze(), EEHltTask::analyze(), SiPixelEDAClient::analyze(), EcalHexDisplay::analyze(), HcalMonitorModule::analyze(), ZDCMonitorModule::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), SiStripFEDCheckPlugin::analyze(), L1TFED::analyze(), HcalDigiMonitor::analyze(), SiStripCMMonitorPlugin::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), HcalDetDiagLaserMonitor::analyze(), HcalMonitorModule::CheckSubdetectorStatus(), ZDCMonitorModule::CheckSubdetectorStatus(), SiStripAnalyser::checkTrackerFEDs(), BlockFormatter::CleanUp(), L1Comparator::compareFedRawCollections(), sistrip::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::createDigis(), DTDigiToRaw::createFedBuffers(), CSCDigiToRaw::createFedBuffers(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), sistrip::RawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), sistrip::RawToClustersLazyUnpacker::fill(), DTROS8FileReader::fillRawData(), FUShmReader::fillRawData(), DTDDUFileReader::fillRawData(), DTROS25FileReader::fillRawData(), DTSpyReader::fillRawData(), DTTFFEDSim::fillRawData(), LaserAlignmentEventFilter::filter(), HLTDTROMonitorFilter::filter(), HLTL1NumberFilter::filter(), HLTHcalCalibTypeFilter::filter(), HcalEmptyEventFilter::filter(), HcalCalibTypeFilter::filter(), sistrip::SpyEventMatcherModule::findL1IDandAPVAddress(), PixelDataFormatter::formatRawData(), sistrip::FEDBufferGenerator::generateBuffer(), MatacqProducer::getCalibTriggerType(), LaserSorter::getDetailedTriggerType(), edm::DaqSource::getNextItemType(), MatacqProducer::getOrbitId(), DTROMonitorFilter::hltFilter(), HLTHcalNZSFilter::hltFilter(), EcalFEDErrorFilter::hltFilter(), SiStripDCSStatus::initialise(), EcalSupervisorTBDataFormatter::interpretRawData(), TableDataFormatter::interpretRawData(), MatacqTBDataFormatter::interpretRawData(), MatacqDataFormatter::interpretRawData(), ESUnpacker::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), PixelDataFormatter::interpretRawData(), LaserSorter::isDccEventEmpty(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), sistrip::SpyEventMatcher::mergeMatchingData(), CastorCtdcPacker::pack(), CastorPacker::pack(), HcalPacker::pack(), BlockFormatter::print(), GctDigiToRaw::print(), DTTFFEDReader::process(), HcalNZSMonitor::processEvent(), HcalRawDataMonitor::processEvent(), DTDigiToRawModule::produce(), evf::EvFFEDSelector::produce(), RawDataCollectorModule::produce(), RawDataCollectorByLabel::produce(), HcalCalibFEDSelector::produce(), DTUnpackingModule::produce(), CSCTFPacker::produce(), CSCDCCUnpacker::produce(), RPCUnpackingModule::produce(), SiPixelFedFillerWordEventNumber::produce(), HcalTBSource::produce(), CSCTFUnpacker::produce(), SubdetFEDSelector::produce(), SiStripRegFEDSelector::produce(), sistrip::SpyEventSummaryProducer::produce(), AlCaHcalNoiseProducer::produce(), ECALRegFEDSelector::produce(), LTCRawToDigi::produce(), ErrorStreamSource::produce(), EcalRawToDigi::produce(), EcalFEDWithCRCErrorProducer::produce(), GctRawToDigi::produce(), L1GTEvmDigiToRaw::produce(), L1GtTextToRaw::produce(), L1GlobalTriggerEvmRawToDigi::produce(), L1GTDigiToRaw::produce(), L1GlobalTriggerRawToDigi::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), HcalTriggerPrimitiveAlgo::runFEFormatError(), RawDataFEDSelector::select(), sistrip::RawToDigiUnpacker::triggerFed(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), CastorCtdcUnpacker::unpack(), CastorDataIntegrityMonitor::unpack(), CastorUnpacker::unpack(), HcalUnpacker::unpack(), HcalDataIntegrityTask::unpack(), HcalEEUSMonitor::unpack(), HcalRawDataMonitor::unpack(), GctRawToDigi::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), hcaltb::HcalTBSlowDataUnpacker::unpackMaps(), EcalUnpackerWorker::work(), FRDEventOutputModule< Consumer >::write(), and LaserSorter::writeFedBlock().

29 {return &data_[0];}
Data data_
Definition: FEDRawData.h:58
unsigned char * FEDRawData::data ( )

Return a pointer to the beginning of the data buffer.

Definition at line 31 of file FEDRawData.cc.

References data_.

31 {return &data_[0];}
Data data_
Definition: FEDRawData.h:58
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_, edm::hlt::Exception, and size().

Referenced by Vispa.Gui.TextDialog.TextDialog::__init__(), Vispa.Plugins.ConfigEditor.ToolDialog.ToolDialog::__init__(), Vispa.Main.MainWindow.MainWindow::_loadIni(), PlaybackRawDataProvider::analyze(), BlockFormatter::CleanUp(), CSCDigiToRaw::createFedBuffers(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), DTROS8FileReader::fillRawData(), FUShmReader::fillRawData(), DTROS25FileReader::fillRawData(), DTDDUFileReader::fillRawData(), DTSpyReader::fillRawData(), DTTFFEDSim::fillRawData(), sistrip::FEDBufferGenerator::generateBuffer(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), CastorCtdcPacker::pack(), CastorPacker::pack(), HcalPacker::pack(), evf::EvFFEDSelector::produce(), RawDataCollectorModule::produce(), RawDataCollectorByLabel::produce(), HcalCalibFEDSelector::produce(), CSCTFPacker::produce(), HcalTBSource::produce(), SubdetFEDSelector::produce(), SiStripRegFEDSelector::produce(), AlCaHcalNoiseProducer::produce(), ECALRegFEDSelector::produce(), TextToRaw::produce(), GctDigiToRaw::produce(), ErrorStreamSource::produce(), EcalFEDWithCRCErrorProducer::produce(), L1GTEvmDigiToRaw::produce(), L1GtTextToRaw::produce(), L1GTDigiToRaw::produce(), LmfSource::readEventWithinFile(), RawDataFEDSelector::select(), LmfSource::setRunAndEventInfo(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

33  {
34  if (size()==newsize) return;
35 
36  data_.resize(newsize);
37 
38  if (newsize%8!=0) throw cms::Exception("DataCorrupt") << "FEDRawData::resize: " << newsize << " is not a multiple of 8 bytes." << endl;
39 }
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:49
Data data_
Definition: FEDRawData.h:58
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 evf::EvFRecordInserter::analyze(), ESRawDataTask::analyze(), ESFEDIntegrityTask::analyze(), SiStripFEDDumpPlugin::analyze(), HcalTBWriter::analyze(), RawToText::analyze(), EBRawDataTask::analyze(), EERawDataTask::analyze(), SiPixelDaqInfo::analyze(), BxTiming::analyze(), DQMHcalPhiSymAlCaReco::analyze(), test::GlobalNumbersAnalysis::analyze(), EcalDumpRaw::analyze(), HcalDetDiagNoiseMonitor::analyze(), EcalHexDisplay::analyze(), EBHltTask::analyze(), EEHltTask::analyze(), SiPixelEDAClient::analyze(), HLTTrack::analyze(), HcalMonitorModule::analyze(), ZDCMonitorModule::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), SiPixelHLTSource::analyze(), SiStripFEDCheckPlugin::analyze(), L1TFED::analyze(), SiStripFEDMonitorPlugin::analyze(), HcalDigiMonitor::analyze(), SiStripCMMonitorPlugin::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), HcalDetDiagLaserMonitor::analyze(), EcalSelectiveReadoutValidation::analyzeDataVolume(), HcalTBWriter::buildTree(), HcalMonitorModule::CheckSubdetectorStatus(), ZDCMonitorModule::CheckSubdetectorStatus(), SiStripAnalyser::checkTrackerFEDs(), BlockFormatter::CleanUp(), L1Comparator::compareFedRawCollections(), sistrip::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::createDigis(), CSCDigiToRaw::createFedBuffers(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), sistrip::RawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), sistrip::RawToClustersLazyUnpacker::fill(), LaserAlignmentEventFilter::filter(), HLTDTROMonitorFilter::filter(), HLTHcalCalibTypeFilter::filter(), HcalEmptyEventFilter::filter(), HcalCalibTypeFilter::filter(), sistrip::SpyEventMatcherModule::findL1IDandAPVAddress(), MatacqProducer::getCalibTriggerType(), LaserSorter::getDetailedTriggerType(), edm::DaqSource::getNextItemType(), MatacqProducer::getOrbitId(), LaserSorter::getOutputFedList(), DTROMonitorFilter::hltFilter(), HLTHcalNZSFilter::hltFilter(), HLTFEDSizeFilter::hltFilter(), EcalFEDErrorFilter::hltFilter(), SiStripDCSStatus::initialise(), EcalSupervisorTBDataFormatter::interpretRawData(), TableDataFormatter::interpretRawData(), MatacqTBDataFormatter::interpretRawData(), MatacqDataFormatter::interpretRawData(), ESUnpacker::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), PixelDataFormatter::interpretRawData(), LaserSorter::isDccEventEmpty(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), sistrip::SpyEventMatcher::mergeMatchingData(), CastorPacker::pack(), CastorCtdcPacker::pack(), HcalPacker::pack(), BlockFormatter::print(), GctDigiToRaw::print(), BlockFormatter::PrintSizes(), DTTFFEDReader::process(), CastorDataIntegrityMonitor::processEvent(), HcalNZSMonitor::processEvent(), HcalDataIntegrityTask::processEvent(), HcalRawDataMonitor::processEvent(), HcalEEUSMonitor::processEvent_RawData(), DTDigiToRawModule::produce(), evf::EvFFEDSelector::produce(), ESRawToDigi::produce(), RawDataCollectorModule::produce(), RawDataCollectorByLabel::produce(), HcalCalibFEDSelector::produce(), DTUnpackingModule::produce(), ESDigiToRaw::produce(), CSCDCCUnpacker::produce(), CSCTFPacker::produce(), RPCUnpackingModule::produce(), SiPixelFedFillerWordEventNumber::produce(), HcalRawToDigi::produce(), CastorRawToDigi::produce(), CSCTFUnpacker::produce(), sistrip::ExcludedFEDListProducer::produce(), SiPixelDigiToRaw::produce(), EcalDCCTBUnpackingModule::produce(), SubdetFEDSelector::produce(), EcalDCCTB07UnpackingModule::produce(), SiStripRegFEDSelector::produce(), sistrip::SpyEventSummaryProducer::produce(), AlCaHcalNoiseProducer::produce(), ECALRegFEDSelector::produce(), LTCRawToDigi::produce(), EcalRawToDigi::produce(), EcalFEDWithCRCErrorProducer::produce(), GctRawToDigi::produce(), L1GTEvmDigiToRaw::produce(), L1GtTextToRaw::produce(), L1GlobalTriggerEvmRawToDigi::produce(), L1GTDigiToRaw::produce(), L1GlobalTriggerRawToDigi::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), resize(), HcalTriggerPrimitiveAlgo::runFEFormatError(), ecaldqm::SelectiveReadoutTask::runOnSource(), RawDataFEDSelector::select(), sistrip::RawToDigiUnpacker::triggerFed(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), CastorCtdcUnpacker::unpack(), CastorDataIntegrityMonitor::unpack(), CastorUnpacker::unpack(), HcalDataIntegrityTask::unpack(), HcalUnpacker::unpack(), HcalEEUSMonitor::unpack(), HcalRawDataMonitor::unpack(), GctRawToDigi::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), hcaltb::HcalTBSlowDataUnpacker::unpackMaps(), EcalUnpackerWorker::work(), FRDEventOutputModule< Consumer >::write(), and LaserSorter::writeFedBlock().

49 {return data_.size();}
Data data_
Definition: FEDRawData.h:58

Member Data Documentation

Data FEDRawData::data_
private

Definition at line 58 of file FEDRawData.h.

Referenced by data(), resize(), and size().