CMS 3D CMS Logo

FEDRawData Class Reference

Class representing the raw data for one FED. More...

#include <DataFormats/FEDRawData/interface/FEDRawData.h>

List of all members.

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

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
2005/10/18 13:28:12
Revision
1.6
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 15 of file FEDRawData.cc.

00016 {
00017 }

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 lat::endl(), and Exception.

00019                                     :data_(newsize){
00020   if (newsize%8!=0) throw cms::Exception("DataCorrupt") << "FEDRawData::resize: " << newsize << " is not a multiple of 8 bytes." << endl;
00021 }

FEDRawData::FEDRawData ( const FEDRawData in  ) 

Copy constructor.

Definition at line 23 of file FEDRawData.cc.

00023                                            : data_(in.data_)
00024 {
00025 }

FEDRawData::~FEDRawData (  ) 

Dtor.

Definition at line 26 of file FEDRawData.cc.

00027 {
00028 }


Member Function Documentation

unsigned char * FEDRawData::data (  ) 

Return a pointer to the beginning of the data buffer.

Definition at line 31 of file FEDRawData.cc.

References data_.

00031 {return &data_[0];}

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(), EBRawDataTask::analyze(), CSCFileDumper::analyze(), CSCOldGainAnalyzer::analyze(), CSCSaturationAnalyzer::analyze(), CSCscaAnalyzer::analyze(), SiStripFEDCheckPlugin::analyze(), EERawDataTask::analyze(), CnBAnalyzer::analyze(), PlaybackRawDataProvider::analyze(), SiStripFEDRawDataCheck::analyze(), test::GlobalNumbersAnalysis::analyze(), RawToText::analyze(), CSCGainAnalyzer::analyze(), CSCOldCrossTalkAnalyzer::analyze(), CSCCompThreshAnalyzer::analyze(), EBHltTask::analyze(), EEHltTask::analyze(), CSCNoiseMatrixAnalyzer::analyze(), SiPixelEDAClient::analyze(), SiStripFEDMonitorPlugin::analyze(), L1TFED::analyze(), CSCCrossTalkAnalyzer::analyze(), FEDRawDataAnalyzer::analyze(), EcalHexDisplay::analyze(), HcalTBWriter::analyze(), CSCCFEBConnectivityAnalyzer::analyze(), SiStripFEDMonitorPlugin::analyzeFED(), CSCFileReader::buildEventFromRUIs(), HcalMonitorModule::CheckSubdetectorStatus(), SiStripAnalyser::checkTrackerFEDs(), L1Comparator::compareFedRawCollections(), SiStripRawToDigiUnpacker::createDigis(), DTDigiToRaw::createFedBuffers(), CSCDigiToRaw::createFedBuffers(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), ESDataFormatter::DigiToRaw(), ESDataFormatter::DigiToRawTB(), SiStripRawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), DTDDUFileReader::fillRawData(), DTTFFEDSim::fillRawData(), CSCTFFileReader::fillRawData(), DTROS25FileReader::fillRawData(), FUShmReader::fillRawData(), DTROS8FileReader::fillRawData(), DTSpyReader::fillRawData(), TriggerTypeFilter::filter(), BxNumberFilter::filter(), PixelDataFormatter::formatData(), edm::DaqSource::getNextItemType(), SiStripFEDCheckPlugin::hasFatalError(), SiStripFEDCheckPlugin::hasNonFatalError(), MatacqTBDataFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), PixelDataFormatter::interpretRawData(), ESUnpacker::interpretRawData(), TableDataFormatter::interpretRawData(), EcalSupervisorTBDataFormatter::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), SiStripRawToDigiUnpacker::locateStartOfFedBuffer(), CSCHLTMonitorModule::monitorEvent(), CSCMonitorModule::monitorEvent(), CSCFileReader::nextEventFromFUs(), VisFEDRawDataCollectionTwig::onNewEvent(), HcalPacker::pack(), CastorPacker::pack(), BlockFormatter::print(), GctDigiToRaw::print(), DTTFFEDReader::process(), HcalDataFormatMonitor::processEvent(), L1GTEvmDigiToRaw::produce(), HcalTBSource::produce(), SiStripRegFEDSelector::produce(), TBRUInputSource::produce(), TextToRaw::produce(), SubdetFEDSelector::produce(), DAQEcalTBInputService::produce(), CSCTFPacker::produce(), EcalRawToDigiDev::produce(), ECALRegFEDSelector::produce(), GctDigiToRaw::produce(), RPCUnpackingModule::produce(), L1GlobalTriggerEvmRawToDigi::produce(), CSCTFUnpacker::produce(), DTDigiToRawModule::produce(), RawDataCollectorModule::produce(), CSCDCCUnpacker::produce(), ErrorStreamSource::produce(), L1GTDigiToRaw::produce(), L1GtTextToRaw::produce(), SiPixelFedFillerWordEventNumber::produce(), DTUnpackingModule::produce(), L1GlobalTriggerRawToDigi::produce(), LTCRawToDigi::produce(), ScalersRawToDigi::produce(), RPCPackingModule::rawData(), RPCFileReader::rpcDataFormatter(), SiStripRawToDigiUnpacker::triggerFed(), HcalExpertMonitor::unpack(), HcalDataFormatMonitor::unpack(), GctRawToDigi::unpack(), CastorUnpacker::unpack(), HcalEEUSMonitor::unpack(), HcalDataIntegrityTask::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBSlowDataUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), EcalUnpackerWorker::work(), and FRDEventOutputModule< Consumer >::write().

00029 {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_, lat::endl(), Exception, and size().

Referenced by PlaybackRawDataProvider::analyze(), CSCFileReader::buildEventFromRUIs(), CSCDigiToRaw::createFedBuffers(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), DTDDUFileReader::fillRawData(), CSCTFFileReader::fillRawData(), DTTFFEDSim::fillRawData(), DTROS25FileReader::fillRawData(), FUShmReader::fillRawData(), DTROS8FileReader::fillRawData(), DTSpyReader::fillRawData(), SiStripRawToDigiUnpacker::locateStartOfFedBuffer(), CSCFileReader::nextEventFromFUs(), HcalPacker::pack(), CastorPacker::pack(), HcalTBSource::produce(), L1GTEvmDigiToRaw::produce(), TextToRaw::produce(), TBRUInputSource::produce(), SiStripRegFEDSelector::produce(), SubdetFEDSelector::produce(), DAQEcalTBInputService::produce(), CSCTFPacker::produce(), GctDigiToRaw::produce(), ECALRegFEDSelector::produce(), RawDataCollectorModule::produce(), ErrorStreamSource::produce(), L1GTDigiToRaw::produce(), and L1GtTextToRaw::produce().

00033                                       {
00034   if (size()==newsize) return;
00035 
00036   data_.resize(newsize);
00037 
00038   if (newsize%8!=0) throw cms::Exception("DataCorrupt") << "FEDRawData::resize: " << newsize << " is not a multiple of 8 bytes." << endl;
00039 }

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 BxTiming::analyze(), CSCOldGainAnalyzer::analyze(), CSCFileDumper::analyze(), SiPixelHLTSource::analyze(), EBRawDataTask::analyze(), CSCscaAnalyzer::analyze(), CSCSaturationAnalyzer::analyze(), SiStripFEDCheckPlugin::analyze(), CSCGainAnalyzer::analyze(), RawToText::analyze(), test::GlobalNumbersAnalysis::analyze(), SiStripFEDRawDataCheck::analyze(), CnBAnalyzer::analyze(), EERawDataTask::analyze(), CSCOldCrossTalkAnalyzer::analyze(), CSCCompThreshAnalyzer::analyze(), EBHltTask::analyze(), CSCNoiseMatrixAnalyzer::analyze(), EEHltTask::analyze(), SiStripFEDMonitorPlugin::analyze(), SiPixelEDAClient::analyze(), dqm::daq::FEDMonitor::analyze(), CSCCrossTalkAnalyzer::analyze(), L1TFED::analyze(), FEDRawDataAnalyzer::analyze(), EcalTrigPrimAnalyzerMIPs::analyze(), CSCCFEBConnectivityAnalyzer::analyze(), HcalTBWriter::analyze(), EcalHexDisplay::analyze(), SiStripFEDMonitorPlugin::analyzeFED(), HcalTBWriter::buildTree(), HcalMonitorModule::CheckSubdetectorStatus(), SiStripAnalyser::checkTrackerFEDs(), L1Comparator::compareFedRawCollections(), SiStripRawToDigiUnpacker::createDigis(), CSCDigiToRaw::createFedBuffers(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), SRBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), SiStripRawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), TriggerTypeFilter::filter(), BxNumberFilter::filter(), HLTFEDSizeFilter::filter(), edm::DaqSource::getNextItemType(), SiStripFEDCheckPlugin::hasFatalError(), SiStripFEDCheckPlugin::hasNonFatalError(), MatacqTBDataFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), PixelDataFormatter::interpretRawData(), ESUnpacker::interpretRawData(), TableDataFormatter::interpretRawData(), EcalSupervisorTBDataFormatter::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), SiStripRawToDigiUnpacker::locateStartOfFedBuffer(), CSCHLTMonitorModule::monitorEvent(), CSCMonitorModule::monitorEvent(), VisFEDRawDataCollectionTwig::onNewEvent(), HcalPacker::pack(), CastorPacker::pack(), BlockFormatter::print(), GctDigiToRaw::print(), BlockFormatter::PrintSizes(), DTTFFEDReader::process(), HcalDataFormatMonitor::processEvent(), HcalDataIntegrityTask::processEvent(), HcalExpertMonitor::processEvent_RawData(), HcalEEUSMonitor::processEvent_RawData(), L1GTEvmDigiToRaw::produce(), ESDigiToRaw::produce(), HcalRawToDigi::produce(), ESDigiToRawTB::produce(), SiStripRegFEDSelector::produce(), SubdetFEDSelector::produce(), EcalDCCTB07UnpackingModule::produce(), EcalRawToDigiDev::produce(), CSCTFPacker::produce(), SiPixelDigiToRaw::produce(), RPCUnpackingModule::produce(), ECALRegFEDSelector::produce(), L1GlobalTriggerEvmRawToDigi::produce(), DTDigiToRawModule::produce(), CSCTFUnpacker::produce(), RawDataCollectorModule::produce(), EcalDCCTBUnpackingModule::produce(), GctRawToDigi::produce(), ESRawToDigi::produce(), CSCDCCUnpacker::produce(), L1GTDigiToRaw::produce(), L1GtTextToRaw::produce(), LTCRawToDigi::produce(), L1GlobalTriggerRawToDigi::produce(), DTUnpackingModule::produce(), SiPixelFedFillerWordEventNumber::produce(), ScalersRawToDigi::produce(), CastorRawToDigi::produce(), RPCPackingModule::rawData(), resize(), SiStripRawToDigiUnpacker::triggerFed(), HcalExpertMonitor::unpack(), GctRawToDigi::unpack(), HcalDataFormatMonitor::unpack(), CastorUnpacker::unpack(), HcalEEUSMonitor::unpack(), HcalDataIntegrityTask::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBSlowDataUnpacker::unpack(), hcaltb::HcalTBQADCUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), EcalUnpackerWorker::work(), and FRDEventOutputModule< Consumer >::write().

00047 {return data_.size();}


Member Data Documentation

Data FEDRawData::data_ [private]

Definition at line 56 of file FEDRawData.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:20:51 2009 for CMSSW by  doxygen 1.5.4