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.

Author
G. Bruno - CERN, EP Division
S. Argiro - CERN and INFN - Refactoring and Modifications to fit into CMSSW

Definition at line 20 of file FEDRawData.h.

Member Typedef Documentation

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.

Constructor & Destructor Documentation

FEDRawData::FEDRawData ( )

Default ctor.

Definition at line 14 of file FEDRawData.cc.

15 {
16 }
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 18 of file FEDRawData.cc.

References edm::hlt::Exception.

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

Copy constructor.

Definition at line 22 of file FEDRawData.cc.

22  : data_(in.data_)
23 {
24 }
Data data_
Definition: FEDRawData.h:56
FEDRawData::~FEDRawData ( )

Dtor.

Definition at line 25 of file FEDRawData.cc.

26 {
27 }

Member Function Documentation

const unsigned char * FEDRawData::data ( ) const

Return a const pointer to the beginning of the data buffer.

Definition at line 28 of file FEDRawData.cc.

References data_.

Referenced by cuy.FindIssue::__init__(), evf::EvFRecordInserter::analyze(), PlaybackRawDataProvider::analyze(), ESRawDataTask::analyze(), ESFEDIntegrityTask::analyze(), SiStripFEDDumpPlugin::analyze(), HcalTBWriter::analyze(), RawToText::analyze(), DQMHcalPhiSymAlCaReco::analyze(), EcalDumpRaw::analyze(), test::GlobalNumbersAnalysis::analyze(), SiPixelEDAClient::analyze(), EcalHexDisplay::analyze(), HcalDetDiagNoiseMonitor::analyze(), BxTiming::analyze(), HcalMonitorModule::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), L1TFED::analyze(), SiStripFEDCheckPlugin::analyze(), SiStripCMMonitorPlugin::analyze(), HcalDigiMonitor::analyze(), HcalDetDiagTimingMonitor::analyze(), HcalDetDiagPedestalMonitor::analyze(), HcalDetDiagLaserMonitor::analyze(), HcalMonitorModule::CheckSubdetectorStatus(), TrackingAnalyser::checkTrackerFEDs(), SiStripAnalyser::checkTrackerFEDs(), BlockFormatter::CleanUp(), sistrip::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::createDigis(), DTDigiToRaw::createFedBuffers(), CSCDigiToRaw::createFedBuffers(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), sistrip::RawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), DaqFakeReader::fillFED1023(), FedRawDataInputSource::fillFEDRawDataCollection(), DaqFakeReader::fillFEDs(), DaqFakeReader::fillGTPFED(), 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(), MatacqProducer::getOrbitId(), DTROMonitorFilter::hltFilter(), HLTHcalNZSFilter::hltFilter(), EcalFEDErrorFilter::hltFilter(), SiStripDCSStatus::initialise(), EcalSupervisorTBDataFormatter::interpretRawData(), TableDataFormatter::interpretRawData(), MatacqTBDataFormatter::interpretRawData(), MatacqDataFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), CamacTBDataFormatter::interpretRawData(), ESUnpacker::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(), DTDigiToRawModule::produce(), evf::EvFFEDSelector::produce(), RawDataCollectorByLabel::produce(), HcalCalibFEDSelector::produce(), CSCDCCUnpacker::produce(), DTUnpackingModule::produce(), SiPixelFedFillerWordEventNumber::produce(), RPCUnpackingModule::produce(), HcalTBSource::produce(), SubdetFEDSelector::produce(), SiStripRegFEDSelector::produce(), CSCTFPacker::produce(), sistrip::SpyEventSummaryProducer::produce(), CSCTFUnpacker::produce(), ECALRegFEDSelector::produce(), LTCRawToDigi::produce(), AlCaHcalNoiseProducer::produce(), EcalRawToDigi::produce(), EcalFEDWithCRCErrorProducer::produce(), GctRawToDigi::produce(), L1GlobalTriggerEvmRawToDigi::produce(), L1GTEvmDigiToRaw::produce(), L1GtTextToRaw::produce(), L1GTDigiToRaw::produce(), L1GlobalTriggerRawToDigi::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), HcalTriggerPrimitiveAlgo::runFEFormatError(), RawDataFEDSelector::select(), FRDStreamSource::setRunAndEventInfo(), sistrip::RawToDigiUnpacker::triggerFed(), hcaltb::HcalTBQADCUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), CastorCtdcUnpacker::unpack(), CastorDataIntegrityMonitor::unpack(), CastorUnpacker::unpack(), HcalDataIntegrityTask::unpack(), HcalUnpacker::unpack(), HcalEEUSMonitor::unpack(), HcalRawDataMonitor::unpack(), GctRawToDigi::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), hcaltb::HcalTBSlowDataUnpacker::unpackMaps(), FRDEventOutputModule< Consumer >::write(), RawEventOutputModuleForBU< Consumer >::write(), and LaserSorter::writeFedBlock().

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

Return a pointer to the beginning of the data buffer.

Definition at line 30 of file FEDRawData.cc.

References data_.

Referenced by cuy.FindIssue::__init__().

30 {return &data_[0];}
Data data_
Definition: FEDRawData.h:56
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 32 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(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), DaqFakeReader::fillFED1023(), FedRawDataInputSource::fillFEDRawDataCollection(), DaqFakeReader::fillFEDs(), DaqFakeReader::fillGTPFED(), DTTFFEDSim::fillRawData(), sistrip::FEDBufferGenerator::generateBuffer(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), CastorCtdcPacker::pack(), CastorPacker::pack(), HcalPacker::pack(), evf::EvFFEDSelector::produce(), RawDataCollectorByLabel::produce(), HcalCalibFEDSelector::produce(), HcalTBSource::produce(), SubdetFEDSelector::produce(), CSCTFPacker::produce(), SiStripRegFEDSelector::produce(), ECALRegFEDSelector::produce(), TextToRaw::produce(), GctDigiToRaw::produce(), AlCaHcalNoiseProducer::produce(), EcalFEDWithCRCErrorProducer::produce(), L1GTEvmDigiToRaw::produce(), L1GtTextToRaw::produce(), L1GTDigiToRaw::produce(), LmfSource::readEventWithinFile(), RawDataFEDSelector::select(), FRDStreamSource::setRunAndEventInfo(), LmfSource::setRunAndEventInfo(), and Vispa.Gui.PortConnection.PointToPointConnection::updateConnection().

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

47 {return data_.size();}
Data data_
Definition: FEDRawData.h:56

Member Data Documentation

Data FEDRawData::data_
private

Definition at line 56 of file FEDRawData.h.

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