#include <SiStripFEDBufferGenerator.h>
Public Member Functions | |
FEDDAQHeader & | daqHeader () |
FEDDAQTrailer & | daqTrailer () |
FEDBufferGenerator (const uint32_t l1ID=0, const uint16_t bxID=0, const std::vector< bool > &feUnitsEnabled=std::vector< bool >(FEUNITS_PER_FED, true), const std::vector< bool > &channelsEnabled=std::vector< bool >(FEDCH_PER_FED, true), const FEDReadoutMode readoutMode=READOUT_MODE_ZERO_SUPPRESSED, const FEDHeaderType headerType=HEADER_TYPE_FULL_DEBUG, const FEDBufferFormat bufferFormat=BUFFER_FORMAT_OLD_SLINK, const FEDDAQEventType evtType=DAQ_EVENT_TYPE_PHYSICS) | |
FEDFEHeader & | feHeader () |
void | generateBuffer (FEDRawData *rawDataObject, const FEDStripData &data, const uint16_t sourceID) const |
FEDBufferFormat | getBufferFormat () const |
uint16_t | getBXID () const |
bool | getChannelEnabled (const uint8_t internalFEDChannelNumber) const |
FEDDAQEventType | getDAQEventType () const |
bool | getFEUnitEnabled (const uint8_t internalFEUnitNumber) const |
FEDHeaderType | getHeaderType () const |
uint32_t | getL1ID () const |
FEDReadoutMode | getReadoutMode () const |
FEDBufferGenerator & | setBufferFormat (const FEDBufferFormat newBufferFormat) |
FEDBufferGenerator & | setBXID (const uint16_t newBXID) |
FEDBufferGenerator & | setChannelEnable (const uint8_t internalFEDChannelNumber, const bool enabled) |
FEDBufferGenerator & | setChannelEnables (const std::vector< bool > &channelsEnabled) |
FEDBufferGenerator & | setDAQEventType (const FEDDAQEventType newDAQEventType) |
FEDBufferGenerator & | setFEUnitEnable (const uint8_t internalFEUnitNumber, const bool enabled) |
FEDBufferGenerator & | setFEUnitEnables (const std::vector< bool > &feUnitsEnabled) |
FEDBufferGenerator & | setHeaderType (const FEDHeaderType newHeaderType) |
FEDBufferGenerator & | setL1ID (const uint32_t newL1ID) |
FEDBufferGenerator & | setReadoutMode (const FEDReadoutMode newReadoutMode) |
TrackerSpecialHeader & | trackerSpecialHeader () |
Static Private Member Functions | |
static size_t | bufferSizeInBytes (const FEDFEHeader &feHeader, const FEDBufferPayload &payload) |
static void | fillBuffer (uint8_t *pointerToStartOfBuffer, const FEDDAQHeader &daqHeader, const FEDDAQTrailer &daqTrailer, const TrackerSpecialHeader &tkSpecialHeader, const FEDFEHeader &feHeader, const FEDBufferPayload &payload) |
Private Attributes | |
std::vector< bool > | channelsEnabled_ |
FEDDAQHeader | defaultDAQHeader_ |
FEDDAQTrailer | defaultDAQTrailer_ |
std::auto_ptr< FEDFEHeader > | defaultFEHeader_ |
TrackerSpecialHeader | defaultTrackerSpecialHeader_ |
std::vector< bool > | feUnitsEnabled_ |
Definition at line 105 of file SiStripFEDBufferGenerator.h.
sistrip::FEDBufferGenerator::FEDBufferGenerator | ( | const uint32_t | l1ID = 0 , |
const uint16_t | bxID = 0 , |
||
const std::vector< bool > & | feUnitsEnabled = std::vector<bool>(FEUNITS_PER_FED,true) , |
||
const std::vector< bool > & | channelsEnabled = std::vector<bool>(FEDCH_PER_FED,true) , |
||
const FEDReadoutMode | readoutMode = READOUT_MODE_ZERO_SUPPRESSED , |
||
const FEDHeaderType | headerType = HEADER_TYPE_FULL_DEBUG , |
||
const FEDBufferFormat | bufferFormat = BUFFER_FORMAT_OLD_SLINK , |
||
const FEDDAQEventType | evtType = DAQ_EVENT_TYPE_PHYSICS |
||
) |
Definition at line 357 of file SiStripFEDBufferGenerator.cc.
References defaultFEHeader_, and Exception.
|
inlinestaticprivate |
Definition at line 405 of file SiStripFEDBufferGenerator.h.
References sistrip::FEDBufferPayload::lengthInBytes(), and sistrip::FEDFEHeader::lengthInBytes().
Referenced by fillBuffer(), and generateBuffer().
|
inline |
Definition at line 385 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_(), and generateBuffer().
|
inline |
Definition at line 390 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
inline |
Definition at line 400 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
staticprivate |
Definition at line 484 of file SiStripFEDBufferGenerator.cc.
References bufferSizeInBytes(), sistrip::calculateFEDBufferCRC(), sistrip::FEDBufferPayload::data(), sistrip::FEDDAQHeader::data(), sistrip::FEDDAQTrailer::data(), sistrip::TrackerSpecialHeader::data(), sistrip::FEDFEHeader::data(), mps_fire::i, sistrip::FEDBufferPayload::lengthInBytes(), sistrip::FEDFEHeader::lengthInBytes(), sistrip::FEDDAQTrailer::setCRC(), sistrip::FEDDAQTrailer::setEventLengthIn64BitWords(), and sistrip::TrackerSpecialHeader::wasSwapped().
Referenced by generateBuffer().
void sistrip::FEDBufferGenerator::generateBuffer | ( | FEDRawData * | rawDataObject, |
const FEDStripData & | data, | ||
const uint16_t | sourceID | ||
) | const |
Definition at line 449 of file SiStripFEDBufferGenerator.cc.
References bufferSizeInBytes(), channelsEnabled_, daqHeader(), FEDRawData::data(), defaultDAQHeader_, defaultDAQTrailer_, defaultFEHeader_, defaultTrackerSpecialHeader_, patPFMETCorrections_cff::enabled, sistrip::FEDCH_PER_FED, sistrip::FEDCH_PER_FEUNIT, sistrip::FEUNITS_PER_FED, feUnitsEnabled_, fillBuffer(), sistrip::FEDBufferPayload::getFELength(), getReadoutMode(), jetCorrFactors_cfi::payload, FEDRawData::resize(), sistrip::TrackerSpecialHeader::setFEEnableForFEUnit(), and sistrip::FEDDAQHeader::setSourceID().
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
inline |
Definition at line 339 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
inline |
Definition at line 324 of file SiStripFEDBufferGenerator.h.
bool sistrip::FEDBufferGenerator::getChannelEnabled | ( | const uint8_t | internalFEDChannelNumber | ) | const |
Definition at line 386 of file SiStripFEDBufferGenerator.cc.
References channelsEnabled_, and Exception.
|
inline |
Definition at line 344 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
bool sistrip::FEDBufferGenerator::getFEUnitEnabled | ( | const uint8_t | internalFEUnitNumber | ) | const |
Definition at line 375 of file SiStripFEDBufferGenerator.cc.
References Exception, and feUnitsEnabled_.
|
inline |
Definition at line 334 of file SiStripFEDBufferGenerator.h.
|
inline |
Definition at line 319 of file SiStripFEDBufferGenerator.h.
|
inline |
Definition at line 329 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer().
|
inline |
Definition at line 373 of file SiStripFEDBufferGenerator.h.
References setBufferFormat().
Referenced by setBufferFormat().
|
inline |
Definition at line 355 of file SiStripFEDBufferGenerator.h.
References setBXID().
Referenced by setBXID().
FEDBufferGenerator & sistrip::FEDBufferGenerator::setChannelEnable | ( | const uint8_t | internalFEDChannelNumber, |
const bool | enabled | ||
) |
Definition at line 412 of file SiStripFEDBufferGenerator.cc.
References channelsEnabled_, patPFMETCorrections_cff::enabled, and Exception.
FEDBufferGenerator & sistrip::FEDBufferGenerator::setChannelEnables | ( | const std::vector< bool > & | channelsEnabled | ) |
Definition at line 437 of file SiStripFEDBufferGenerator.cc.
References channelsEnabled_, Exception, and sistrip::FEDCH_PER_FED.
|
inline |
Definition at line 379 of file SiStripFEDBufferGenerator.h.
FEDBufferGenerator & sistrip::FEDBufferGenerator::setFEUnitEnable | ( | const uint8_t | internalFEUnitNumber, |
const bool | enabled | ||
) |
Definition at line 399 of file SiStripFEDBufferGenerator.cc.
References patPFMETCorrections_cff::enabled, Exception, and feUnitsEnabled_.
FEDBufferGenerator & sistrip::FEDBufferGenerator::setFEUnitEnables | ( | const std::vector< bool > & | feUnitsEnabled | ) |
Definition at line 425 of file SiStripFEDBufferGenerator.cc.
References Exception, sistrip::FEUNITS_PER_FED, and feUnitsEnabled_.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
inline |
Definition at line 367 of file SiStripFEDBufferGenerator.h.
References setHeaderType().
Referenced by sistrip::DigiToRaw::createFedBuffers_(), and setHeaderType().
|
inline |
Definition at line 349 of file SiStripFEDBufferGenerator.h.
References setL1ID().
Referenced by sistrip::DigiToRaw::createFedBuffers_(), and setL1ID().
|
inline |
Definition at line 361 of file SiStripFEDBufferGenerator.h.
References setReadoutMode().
Referenced by sistrip::DigiToRaw::createFedBuffers_(), sistrip::DigiToRaw::DigiToRaw(), and setReadoutMode().
|
inline |
Definition at line 395 of file SiStripFEDBufferGenerator.h.
Referenced by sistrip::DigiToRaw::createFedBuffers_().
|
private |
Definition at line 168 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer(), getChannelEnabled(), setChannelEnable(), and setChannelEnables().
|
private |
Definition at line 163 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer().
|
private |
Definition at line 164 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer().
|
private |
Definition at line 166 of file SiStripFEDBufferGenerator.h.
Referenced by FEDBufferGenerator(), and generateBuffer().
|
private |
Definition at line 165 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer().
|
private |
Definition at line 167 of file SiStripFEDBufferGenerator.h.
Referenced by generateBuffer(), getFEUnitEnabled(), setFEUnitEnable(), and setFEUnitEnables().