CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 19 of file FEDRawData.h.

Member Typedef Documentation

typedef std::vector<unsigned char> FEDRawData::Data

Definition at line 21 of file FEDRawData.h.

typedef Data::iterator FEDRawData::iterator

Definition at line 22 of file FEDRawData.h.

Constructor & Destructor Documentation

FEDRawData::FEDRawData ( )

Default ctor.

Definition at line 14 of file FEDRawData.cc.

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

References Exception.

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

Copy constructor.

Definition at line 22 of file FEDRawData.cc.

22 : data_(in.data_) {}
Data data_
Definition: FEDRawData.h:52
FEDRawData::~FEDRawData ( )

Dtor.

Definition at line 23 of file FEDRawData.cc.

23 {}

Member Function Documentation

const unsigned char * FEDRawData::data ( ) const

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

Definition at line 24 of file FEDRawData.cc.

References data_.

Referenced by hcaldqm::DQTask::_getCalibType(), RawTask::_process(), SiPixelRawToClusterCUDA::acquire(), ESRawDataTask::analyze(), ESFEDIntegrityTask::analyze(), PlaybackRawDataProvider::analyze(), CSCFileDumper::analyze(), L1TMP7ZeroSupp::analyze(), HcalTBWriter::analyze(), RawToText::analyze(), BxTiming::analyze(), EcalHexDisplay::analyze(), EcalDumpRaw::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), DQMHcalPhiSymAlCaReco::analyze(), SiPixelRawDataErrorSource::analyze(), L1TFED::analyze(), SiStripFEDCheckPlugin::analyze(), CSCFileReader::buildEventFromRUIs(), BlockFormatter::CleanUp(), sistrip::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::createDigis(), DTDigiToRaw::createFedBuffers(), CSCDigiToRaw::createFedBuffers(), SRBlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), BlockFormatter::DigiToRaw(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), L1TStage2CaloLayer1::dqmAnalyze(), sistrip::RawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), FedRawDataInputSource::fillFEDRawDataCollection(), DaqFakeReader::fillFEDs(), DTNewROS8FileReader::fillRawData(), DTROS8FileReader::fillRawData(), DTDDUFileReader::fillRawData(), DTROS25FileReader::fillRawData(), DTSpyReader::fillRawData(), DTTFFEDSim::fillRawData(), DaqFakeReader::fillTCDSFED(), LaserAlignmentEventFilter::filter(), HLTDTROMonitorFilter::filter(), HLTL1NumberFilter::filter(), HcalEmptyEventFilter::filter(), HLTHcalCalibTypeFilter::filter(), HcalCalibTypeFilter::filter(), HCalFED::formatFEDdata(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), PixelDataFormatter::formatRawData(), GEMAMC13Status::GEMAMC13Status(), sistrip::FEDBufferGenerator::generateBuffer(), L1UpgradeTfMuonTreeProducer::getAlgoFwVersion(), MatacqProducer::getCalibTriggerType(), LaserSorter::getDetailedTriggerType(), LaserSorter::getOrbitFromDcc(), MatacqProducer::getOrbitId(), HLTHcalNZSFilter::hltFilter(), EcalFEDErrorFilter::hltFilter(), SiStripDCSStatus::initialise(), TableDataFormatter::interpretRawData(), EcalSupervisorTBDataFormatter::interpretRawData(), MatacqDataFormatter::interpretRawData(), MatacqTBDataFormatter::interpretRawData(), ESUnpacker::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), CTPPSPixelDataFormatter::interpretRawData(), PixelDataFormatter::interpretRawData(), LaserSorter::isDccEventEmpty(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), sistrip::SpyEventMatcher::mergeMatchingData(), CSCFileReader::nextEventFromFUs(), CastorPacker::pack(), CastorCtdcPacker::pack(), HcalPacker::pack(), sistrip::preconstructCheckFEDBuffer(), sistrip::preconstructCheckFEDBufferBase(), sistrip::preconstructCheckFEDSpyBuffer(), BlockFormatter::print(), GctDigiToRaw::print(), DTuROSRawToDigi::process(), DTTFFEDReader::process(), DTuROSDigiToRaw::process(), L1TTwinMuxRawToDigi::processFed(), SubdetFEDSelector::produce(), DTDigiToRawModule::produce(), RawDataCollectorByLabel::produce(), Phase2Tracker::Phase2TrackerCommissioningDigiProducer::produce(), HcalCalibFEDSelector::produce(), HcalTBSource::produce(), TotemTriggerRawToDigi::produce(), DTUnpackingModule::produce(), SiPixelFedFillerWordEventNumber::produce(), SiStripRegFEDSelector::produce(), RPCAMCRawToDigi::produce(), Phase2Tracker::Phase2TrackerDigiProducer::produce(), ECALRegFEDSelector::produce(), GEMDigiToRawModule::produce(), RPCUnpackingModule::produce(), sistrip::SpyEventSummaryProducer::produce(), RPCTwinMuxDigiToRaw::produce(), CSCTFUnpacker::produce(), GEMRawToDigiModule::produce(), RPCTwinMuxRawToDigi::produce(), LTCRawToDigi::produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector::produce(), TcdsRawToDigi::produce(), EcalFEDWithCRCErrorProducer::produce(), GctRawToDigi::produce(), EcalRawToDigi::produce(), L1GTEvmDigiToRaw::produce(), l1t::L1TRawToDigi::produce(), OnlineMetaDataRawToDigi::produce(), L1GTDigiToRaw::produce(), L1GtTextToRaw::produce(), L1GlobalTriggerEvmRawToDigi::produce(), omtf::OmtfPacker::produce(), omtf::OmtfUnpacker::produce(), AlCaHcalNoiseProducer::produce(), L1GlobalTriggerRawToDigi::produce(), L1TCaloLayer1RawToDigi::produce(), CSCDCCUnpacker::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), pps::RawDataUnpacker::run(), HcalTriggerPrimitiveAlgo::runFEFormatError(), RawDataFEDSelector::select(), FRDStreamSource::setRunAndEventInfo(), sistrip::RawToDigiUnpacker::triggerFed(), hcaltb::HcalTBQADCUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), CastorCtdcUnpacker::unpack(), CastorUnpacker::unpack(), ZdcUnpacker::unpack(), RctRawToDigi::unpack(), GctRawToDigi::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), hcaltb::HcalTBSlowDataUnpacker::unpackMaps(), HcalUnpacker::unpackUMNio(), HcalUnpacker::unpackUTCA(), HcalUnpacker::unpackVME(), FRDOutputModule::write(), RawEventOutputModuleForBU< Consumer >::write(), LaserSorter::writeEvent(), and LaserSorter::writeFedBlock().

24 { return data_.data(); }
Data data_
Definition: FEDRawData.h:52
unsigned char * FEDRawData::data ( )

Return a pointer to the beginning of the data buffer.

Definition at line 26 of file FEDRawData.cc.

References data_.

26 { return data_.data(); }
Data data_
Definition: FEDRawData.h:52
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 28 of file FEDRawData.cc.

References data_, Exception, and size().

Referenced by PlaybackRawDataProvider::analyze(), CSCFileReader::buildEventFromRUIs(), BlockFormatter::CleanUp(), CSCDigiToRaw::createFedBuffers(), SRBlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), BlockFormatter::DigiToRaw(), FedRawDataInputSource::fillFEDRawDataCollection(), DaqFakeReader::fillFEDs(), DTNewROS8FileReader::fillRawData(), DTROS8FileReader::fillRawData(), DTDDUFileReader::fillRawData(), DTROS25FileReader::fillRawData(), DTSpyReader::fillRawData(), DTTFFEDSim::fillRawData(), DaqFakeReader::fillTCDSFED(), HCalFED::formatFEDdata(), l1t::AMCDumpToRaw::formatRaw(), l1t::MP7BufferDumpToRaw::formatRaw(), sistrip::FEDBufferGenerator::generateBuffer(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), CSCFileReader::nextEventFromFUs(), CastorCtdcPacker::pack(), CastorPacker::pack(), HcalPacker::pack(), DTuROSDigiToRaw::process(), RawDataCollectorByLabel::produce(), SubdetFEDSelector::produce(), HcalCalibFEDSelector::produce(), HcalTBSource::produce(), SiStripRegFEDSelector::produce(), ECALRegFEDSelector::produce(), GEMDigiToRawModule::produce(), RPCTwinMuxDigiToRaw::produce(), GctDigiToRaw::produce(), TextToRaw::produce(), EcalFEDWithCRCErrorProducer::produce(), L1GTEvmDigiToRaw::produce(), L1GTDigiToRaw::produce(), L1GtTextToRaw::produce(), omtf::OmtfPacker::produce(), l1t::AMC13DumpToRaw::produce(), AlCaHcalNoiseProducer::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), LmfSource::readEventWithinFile(), RawDataFEDSelector::select(), FRDStreamSource::setRunAndEventInfo(), and LmfSource::setRunAndEventInfo().

28  {
29  if (size() == newsize)
30  return;
31 
32  data_.resize(newsize);
33 
34  if (newsize % 8 != 0)
35  throw cms::Exception("DataCorrupt") << "FEDRawData::resize: " << newsize << " is not a multiple of 8 bytes."
36  << endl;
37 }
size_t size() const
Lenght of the data buffer in bytes.
Definition: FEDRawData.h:45
Data data_
Definition: FEDRawData.h:52
size_t FEDRawData::size ( void  ) const
inline

Lenght of the data buffer in bytes.

Definition at line 45 of file FEDRawData.h.

References data_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), hcaldqm::DQTask::_getCalibType(), RawTask::_process(), SiPixelRawToClusterCUDA::acquire(), ESRawDataTask::analyze(), ESFEDIntegrityTask::analyze(), CSCFileDumper::analyze(), L1TMP7ZeroSupp::analyze(), HcalTBWriter::analyze(), GEMPackingTester::analyze(), RawToText::analyze(), L1TdeStage2CaloLayer1::analyze(), BxTiming::analyze(), EcalHexDisplay::analyze(), EcalDumpRaw::analyze(), SiPixelHLTSource::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), SiPixelRawDataErrorSource::analyze(), DQMHcalPhiSymAlCaReco::analyze(), L1TFED::analyze(), SiStripFEDCheckPlugin::analyze(), SiStripFEDMonitorPlugin::analyze(), EcalSelectiveReadoutValidation::analyzeDataVolume(), HcalTBWriter::buildTree(), BlockFormatter::CleanUp(), sistrip::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::createDigis(), CSCDigiToRaw::createFedBuffers(), sistrip::DigiToRaw::createFedBuffers_(), SRBlockFormatter::DigiToRaw(), TCCBlockFormatter::DigiToRaw(), TowerBlockFormatter::DigiToRaw(), BlockFormatter::DigiToRaw(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), L1TStage2CaloLayer1::dqmAnalyze(), sistrip::RawToDigiUnpacker::dumpRawData(), TowerBlockFormatter::EndEvent(), LaserAlignmentEventFilter::filter(), HLTDTROMonitorFilter::filter(), HLTL1NumberFilter::filter(), HcalEmptyEventFilter::filter(), HLTHcalCalibTypeFilter::filter(), HcalCalibTypeFilter::filter(), GEMAMC13Status::GEMAMC13Status(), L1UpgradeTfMuonTreeProducer::getAlgoFwVersion(), MatacqProducer::getCalibTriggerType(), LaserSorter::getDetailedTriggerType(), LaserSorter::getOrbitFromDcc(), MatacqProducer::getOrbitId(), LaserSorter::getOutputFedList(), HLTFEDSizeFilter::hltFilter(), HLTHcalNZSFilter::hltFilter(), EcalFEDErrorFilter::hltFilter(), SiStripDCSStatus::initialise(), TableDataFormatter::interpretRawData(), EcalSupervisorTBDataFormatter::interpretRawData(), MatacqDataFormatter::interpretRawData(), MatacqTBDataFormatter::interpretRawData(), ESUnpacker::interpretRawData(), CamacTBDataFormatter::interpretRawData(), EcalTBDaqFormatter::interpretRawData(), EcalTB07DaqFormatter::interpretRawData(), CTPPSPixelDataFormatter::interpretRawData(), PixelDataFormatter::interpretRawData(), LaserSorter::isDccEventEmpty(), sistrip::RawToDigiUnpacker::locateStartOfFedBuffer(), sistrip::SpyEventMatcher::mergeMatchingData(), CastorCtdcPacker::pack(), CastorPacker::pack(), HcalPacker::pack(), sistrip::preconstructCheckFEDBufferBase(), BlockFormatter::print(), GctDigiToRaw::print(), BlockFormatter::PrintSizes(), DTuROSRawToDigi::process(), DTTFFEDReader::process(), L1TTwinMuxRawToDigi::processFed(), ESRawToDigi::produce(), SubdetFEDSelector::produce(), RawDataCollectorByLabel::produce(), DTDigiToRawModule::produce(), Phase2Tracker::Phase2TrackerCommissioningDigiProducer::produce(), HcalCalibFEDSelector::produce(), ESDigiToRaw::produce(), TotemTriggerRawToDigi::produce(), DTUnpackingModule::produce(), SiStripRegFEDSelector::produce(), CTPPSPixelRawToDigi::produce(), RPCAMCRawToDigi::produce(), SiPixelFedFillerWordEventNumber::produce(), Phase2Tracker::Phase2TrackerDigiProducer::produce(), EcalDCCTBUnpackingModule::produce(), EcalDCCTB07UnpackingModule::produce(), ECALRegFEDSelector::produce(), sistrip::ExcludedFEDListProducer::produce(), RPCUnpackingModule::produce(), sistrip::SpyEventSummaryProducer::produce(), HcalRawToDigi::produce(), CSCTFUnpacker::produce(), GEMRawToDigiModule::produce(), CastorRawToDigi::produce(), RPCTwinMuxRawToDigi::produce(), LTCRawToDigi::produce(), ScalersRawToDigi::produce(), dqmBmtfAlgoSelector::L1TBMTFAlgoSelector::produce(), TcdsRawToDigi::produce(), RctRawToDigi::produce(), EcalFEDWithCRCErrorProducer::produce(), GctRawToDigi::produce(), EcalRawToDigi::produce(), L1GTEvmDigiToRaw::produce(), l1t::L1TRawToDigi::produce(), OnlineMetaDataRawToDigi::produce(), L1GTDigiToRaw::produce(), L1GtTextToRaw::produce(), L1GlobalTriggerEvmRawToDigi::produce(), omtf::OmtfUnpacker::produce(), AlCaHcalNoiseProducer::produce(), L1GlobalTriggerRawToDigi::produce(), L1TCaloLayer1RawToDigi::produce(), CSCDCCUnpacker::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), RPCPackingModule::rawData(), LmfSource::readEventWithinFile(), resize(), pps::RawDataUnpacker::run(), TotemVFATRawToDigi::run(), HcalTriggerPrimitiveAlgo::runFEFormatError(), ecaldqm::SelectiveReadoutTask::runOnSource(), RawDataFEDSelector::select(), sistrip::RawToDigiUnpacker::triggerFed(), hcaltb::HcalTBQADCUnpacker::unpack(), HcalLaserUnpacker::unpack(), hcaltb::HcalTBTriggerDataUnpacker::unpack(), hcaltb::HcalTBSourcePositionDataUnpacker::unpack(), CastorCtdcUnpacker::unpack(), CastorUnpacker::unpack(), ZdcUnpacker::unpack(), RctRawToDigi::unpack(), GctRawToDigi::unpack(), HcalUnpacker::unpack(), hcaltb::HcalTBTDCUnpacker::unpackHits(), hcaltb::HcalTBSlowDataUnpacker::unpackMaps(), HcalUnpacker::unpackVME(), FRDOutputModule::write(), RawEventOutputModuleForBU< Consumer >::write(), LaserSorter::writeEvent(), and LaserSorter::writeFedBlock().

45 { return data_.size(); }
Data data_
Definition: FEDRawData.h:52

Member Data Documentation

Data FEDRawData::data_
private

Definition at line 52 of file FEDRawData.h.

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